-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
abuild: put findutils in nativeBuildInputs explicitly #177682
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems sensible to me. Other packages may run into this as well, maybe. But in general I'd expect (hope?) build scripts to be somewhat conservative in what tooling features they expect.
@ofborg build abuild |
This is a general gripe that I have with nixpkgs' busybox expression. It is the reason why I submitted #161007. A long-term fix would be to have busybox's symlinks moved to a separate derivation. So the outpath of The idea here is:
|
Another possibility would be for
This won't avoid problems, but it will make their root cause obvious when they arise. |
Should target |
Ok. I will draftify, then change branch, then undraftify. I figured out that is the trick to prevent mass-pinging people when changing the base branch. |
Done. Note that if #177789 works as expected (still verifying it -- needs global rebuild) and is merged then this PR not necessary, although it might still be a good idea from a hygiene perspective (packages really should not be fooling I should know if #177789 works in about six hours or so. |
PR #168413 causes `setup.sh` to invoke `find`; this broke abuild, because when `setup.sh` runs for abuild, $busybox/bin/find appears earlier in `$PATH` than `$findutils/bin/find`. Let's fix this by explicitly adding `findutils` to `nativeBuildInputs`, which causes its `find` to appear earlier in the `$PATH`.
#177789 is a better solution; it covers all packages rather than just this one. |
Description of changes
PR #168413 causes
setup.sh
to invokefind
; this broke abuild, because whensetup.sh
runs for abuild,$busybox/bin/find
appears earlier in$PATH
than$findutils/bin/find
.Let's fix this by explicitly adding
findutils
tonativeBuildInputs
, which causes itsfind
to appear earlier in the$PATH
.I am still waiting for my build at staging (97c4382) to get caught up.Edit: build completed, no failures.However I was able to reproduce the problem that this fixes, and also verify that it is fixed, on my own local tree which is roughly 22.05 plus #168413 plus some other stuff.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes