New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux-libre_latest: update automatically; fix build #75741
Conversation
8c90627
to
76ca15d
Compare
I believe this is handled completely differently. These updates scripts are usually only ran by humans. |
Oh, you’re right. :( |
76ca15d
to
b8617f3
Compare
I think this is still worth a shot. By the time a new kernel series is in Nixpkgs, it should already be supported by Linux-libre I think because they start work on new kernels during the RCs. |
It seems good to me @alyssais, but I'm not sure about adding to |
Also ❤️ for the kernel in NixOS being integrated so expectantly @NeQuissimus. |
Absolutely, hence the request for a review from @NeQuissimus. fwiw, I don’t think the kernel maintainers have any responsibility for ensuring Linux-libre build after updating it — this is just something that needs to be done at the same time. The alternative would be I write a bot to do it, which would just be more annoying for everyone I suspect. |
update-libre.sh doesn't commit by default so that it can be used as an updateScript, where I don't think auto-committing is the norm. The generated commit messages say "linux-libre_latest" rather than "linux-libre", because even though linux-libre will also be rebuilt, it's linux-libre_latest that is more likely to need it.
This doesn't actually update the kernel, just the linux-libre deblobbing scripts, but it should mean that automatic updaters keep the deblobbing scripts up to date. So even if deblobbing scripts for a new kernel version are not available immediately after release, they should be updated automatically soon enough once available.
b8617f3
to
36dcc8f
Compare
I'll put it this way: |
That sounds good to me. |
Pushed a tiny fixup I noticed just after merging: d770ae1 |
Backported the linux-libre scripts update in c337a74.
|
Motivation for this change
Alternative to #74726.
This should mean that Linux-libre is updated whenever @NeQuissimus updates the kernel, AND whenever update scripts are run — I think r-ryantm does this?
Between these two scenarios, I’m hoping this should be run often enough that the libre kernels almost always build, even when new kernel series are added in Nixpkgs before Linux-libre supports them.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)