armbian / armbian/build

[Bug]: kernel source extraction algorithm error report

Open
#8,539 3 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Shell
Stars
5.4k
Forks
3.1k
Avg merge
1d 9h
Merged PRs (30d)
204

Description

### What happened?

What reasons force us to use alternative sources for the kernel?
[lib/functions/configuration/main-config.sh](https://github.com/armbian/build/blob/1056f8e4e4eab8344595172f312d6462e7577855/lib/functions/configuration/main-config.sh#L207-L224)
Obviously, for some reason, the https://git.kernel.org/ resource is not available to the user.

But this code will in any case make requests to an inaccessible resource:
[lib/functions/general/git-ref2info.sh](https://github.com/armbian/build/blob/1056f8e4e4eab8344595172f312d6462e7577855/lib/functions/general/git-ref2info.sh#L121-L123)
The build system just hung up at this point and reports nothing.
```bash
[🌱] Producing new & caching [ GIT_INFO_KERNEL ]
[🌱] Fetching SHA1 of 'tag' 'refs/heads/v6.12.41^{}' [ https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable ]
[🌱] SHA1 of tag refs/heads/v6.12.41^{} [ '' ]
[🌱] Failed to fetch SHA1 of 'tag' 'refs/heads/v6.12.41^{}' [ https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable ]
[🌱] Fetching SHA1 of 'tag' 'refs/heads/v6.12.41' [ https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable ]
[🌱] SHA1 of tag refs/heads/v6.12.41 [ '' ]
[🌱] Failed to fetch SHA1 of 'tag' 'refs/heads/v6.12.41' [ https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable ]
[🌱] Fetching SHA1 of 'tag' 'v6.12.41^{}' [ https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable ]
[🌱] SHA1 of tag v6.12.41^{} [ '8f5ff9784f3262e6e85c68d86f8b7931827f2983' ]
^C[🚸] Build interrupted [ Build interrupted by SIGINT ]
```

It looks like some kind of nonsense.

### How to reproduce?

This can be played if your IP address is blacklisted on the git.kernel.org

### Branch

main (main development branch)

### On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

### Are you building on Windows WSL2?

- [ ] Yes, my Ubuntu/Debian/OtherOS is running on WSL2

### Relevant log URL

_No response_

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.