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 bootstrap tools: fix tests on ppc64 #104742
Conversation
Alternatively we could refactor bintools-wrapper dynamicLinker a bit so it could be used here as well. This would have the benefit of fixing some other platforms we may wish to bootstrap to in the future. |
The binutils-wrapper should probable be aware of this detail as otherwise a bunch of packages that rely on that information will not work. I am not sure if you can already us it for the bootstrap tool tho.. |
Hmm, I was thinking it was not possible to use |
525c47a
to
55507f8
Compare
55507f8
to
1f36209
Compare
Passing tests on x86_64 and ppc64le, but I don't have an aarch64 machine to test on. |
The dynamic loader on powerpc64 is called ld64.so.2 rather than ld-linux.so.*, and was not matched by the existing pattern. We reuse the dynamicLinker name from binutils to match a wider set of platforms and to avoid specifying this information in two places.
1f36209
to
9682c1d
Compare
Also tested on i686-linux (via --argstr localSystem and --extra-platforms) and aarch64-linux (on a RPi4). |
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.
Nice.
The dynamic loader on powerpc64 is called ld64.so.* rather than ld-linux.so.*, and was not matched by the existing pattern.
Please let me know if there's a more generic way to determine the interpreter name, as it's probably not desirable to add special cases here for all the possible names.cc @CrystalGamma
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)