-
-
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
python3Packages.pynacl: fix cross compilation #135447
Conversation
f1b93fb
to
a6ca2c5
Compare
Should this go in staging? It seems to be that many packages rely on this library. |
Under 500 is fine for master. |
So cffi should always be in nativePropa..? |
I won't have time this week for doing a larger PR, but what are my options for doing a large scale PR? Find every mention and fix it manually? Find every wrong declaration and open a tracking issue, pinging the maintainers? Or can I fully automate it, including testing? |
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 19 packages marked as broken and skipped:
11 packages failed to build and already failed to build on hydra master:
1 package failed to build and are new build failure:
229 packages built:
|
Thats okay. It is only cross compile which is not super important at this point in time.
Or most cases where it is wrong and is easily fixed. We can either leave comments on more complex cases or leave them untouched for now.
I think we can do one treewide commit or one commit per package in one PR. I don't think we need to wait for maintainer feedback. If there are other issues which prevent the package from cross compiling it might be good to do a separate PR. |
@SuperSandro2000 I've opened a tree-wide PR (#142301), and also discovered an issue with how I did this PR |
Follow the approach of NixOS#135447 and move the cffi package from propagatedBuildInputs to propagatedNativeBuildInputs. Also disable passing the -msse2 flag to the compiler when cross-compiling. This is a conservative approach that mirrors that in the argon2-cffi package.
Motivation for this change
Closes #135149
Similar PR's should probably be created for every other derivation that also lists
cffi
in such a cross-compiling unfriendly way.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)