Skip to content

linux: move hexdump to nativeBuildInputs#324322

Merged
JohnRTitor merged 1 commit intoNixOS:stagingfrom
fpletz:pkgs/linux/vmlinuz.efi-hexdump
Jul 3, 2024
Merged

linux: move hexdump to nativeBuildInputs#324322
JohnRTitor merged 1 commit intoNixOS:stagingfrom
fpletz:pkgs/linux/vmlinuz.efi-hexdump

Conversation

@fpletz
Copy link
Member

@fpletz fpletz commented Jul 3, 2024

Description of changes

Trying to build vmlinuz.efi natively on aarch64 fails to find hexdump. This was introduced in #277975. Moving hexdump to nativeBuildInputs fixes the build.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Trying to build vmlinuz.efi natively on aarch64 fails to find hexdump.
This was introduced in NixOS#277975. Moving hexdump to nativeBuildInputs
fixes the build.
@fpletz fpletz requested review from JohnRTitor and jmbaur July 3, 2024 11:48
@github-actions github-actions bot added the 6.topic: kernel The Linux kernel label Jul 3, 2024
@fpletz fpletz requested review from RaitoBezarius and alyssais July 3, 2024 11:58
Copy link
Contributor

@jmbaur jmbaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jul 3, 2024
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 3, 2024
@JohnRTitor JohnRTitor merged commit 68a2988 into NixOS:staging Jul 3, 2024
@fpletz fpletz deleted the pkgs/linux/vmlinuz.efi-hexdump branch July 3, 2024 17:37
@jmbaur
Copy link
Contributor

jmbaur commented Jul 4, 2024

Would be nice to get this into staging-next so it gets merged into master at the same time as #277975!

@JohnRTitor
Copy link
Member

Feel free to cherry pick the changes.

@jmbaur
Copy link
Contributor

jmbaur commented Jul 4, 2024

Feel free to cherry pick the changes.

This will probably be fine given that #239721 just got merged to staging as well, so unlikely to cause problems for users anyways, unless they are opting in to using zboot kernel images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: kernel The Linux kernel 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments