Repository navigation
python3Packages.libapparmor: fix cross compilation - #476808
Conversation
the previous code was supplying unspliced `python` (as a buildInput) and `setuptools` (as a nativeBuildInput) all from the same package set. in the case of `pkgsCross.aarch64-multiplatform.python3Packages.libapparmor`, that results in an aarch64 `setuptools` hook attempting to be run on the (x86_64) build machine. by going through `callPackage`, we can supply `pkgs.libapparmor` with spliced versions of these inputs that are suitable for either buildInputs/nativeBuildInputs/etc.
|
is this specifically caused by the use of |
i think there's nothing problematic with and yes: i expect there are other failing python packages that could be fixed with this same pattern. just searching for |
GrimmTheShrimp
left a comment
There was a problem hiding this comment.
Thats an interesting pattern i have never seen before, but it seems to work at least 🤷
Confirmed the exec format error and the fix, sorry i took so long getting to this
fixes
nix-build -A pkgsCross.aarch64-multiplatform.python3Packages.libapparmorthe previous code was supplying unspliced
python(as a buildInput) andsetuptools(as a nativeBuildInput) all from the same package set. in the case ofpkgsCross.aarch64-multiplatform.python3Packages.libapparmor, that results in an aarch64setuptoolshook attempting to be run on the (x86_64) build machine.by going through
callPackage, we can supplypkgs.libapparmorwith spliced versions of these inputs that are suitable for either buildInputs/nativeBuildInputs/etc.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.