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
python3: improve cross-compilation of extension modules, fixes #91171 #91178
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Upstream PR! |
This is not really a regression compilers don't work outside the |
Doesn't mean we need to enforce that shortcoming when we can avoid it. |
It should be easy enough to whatever one wants to use instead of |
This should no longer be needed with python3 because it's now set correctly in the interpreter. Note that the build currently fails with and without this change.
Exactly. So, as it is now cross-compiling pycryptodome succeeds. I also tried btrfs-progs because it exports LDSHARED, but unfortunately that package fails to build with and without the patch in this PR. |
There is a report that btrfs-progs cross-compiles now as of #50925 (comment) |
@GrahamcOfBorg build pkgsCross.aarch64-multiplatform.python3Packages.pycryptodome |
Fixes #91171.
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)