-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
androidenv: fix autopatching toolchains #216142
androidenv: fix autopatching toolchains #216142
Conversation
e57733e
to
d4f134e
Compare
|
d4f134e
to
2a14c00
Compare
Sorry for breaking this. The reason for the change is that autoPatchelf won't work on mac. I think we can make both linux and mac work by either:
|
How exactly does it break it? |
On mac it gives this error |
You know you can just link to a diff on GitHub? Also, you can add highlights to a diff by writing My question would be, which steps are necessary on Macos? Because those could just be extracted out into a separate phase that would the be called by |
Also, if the issue is just missing patchelf, why not just include it? nixpkgs/pkgs/development/mobile/androidenv/ndk-bundle/default.nix Lines 12 to 13 in 2a14c00
Maybe I'm missing something, but what's stopping us from just doing: nativeBuildInputs = [ makeWrapper autoPatchelfHook ]; |
macOS executables aren't in ELF format, so |
autoPatchelfhook can't be built on mac. I missed one of the elf sections, here's an updated diff efe9215. AFAIK, all of the other patches should still be done on mac. |
2a14c00
to
bf628ce
Compare
71533ae
to
0d6f6fe
Compare
Use of binaries from NDK `toolchains` has been broken by following PR: * NixOS#195752 I'm splitting the patchInstructions to run the ELF patching only on Linux. Signed-off-by: Jakub Sokołowski <jakub@status.im>
0d6f6fe
to
93e9aac
Compare
@SuperSandro2000 any chance we could get this merged? |
Description of changes
Use of binaries from NDK
toolchains
has been broken by following PR:I'm splitting the
patchInstructions
to run the ELF patching only on Linux.Related to another fix of bug introduced by #195752:
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/
)