-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
perlPackages.ModuleBuild: fix cross compilation #142349
perlPackages.ModuleBuild: fix cross compilation #142349
Conversation
@GrahamcOfBorg build pkgsCross.aarch64-multiplatform.perlPackages.ModuleBuild |
Build fails for me
|
Right, I missed something in commit - let me re-check 💪 |
Ok, so problem moves from not having to check postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
sed -i '/File::Temp/d' Build.PL
perl -MScalar::Util -E 'say qw(ok)'
''; We'd see this result:
(Apparently we can't load other dynamic modules like Also discovered alongside this is the cause why we're not seeing Back to this, I understand we're not doing the equivalent of
|
Yes, there's some underlying things that, given solved, will fix a lot of packages. |
@zakame, thanks for your debugging! |
Hey, sorry I was busy elsewhere - yeah I'm currently out of clues especially as I'm testing this on both x66_64 and aarch64. I'll review again and recreate for |
I'm still getting this problem.. Checking optional features... ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions I'm on NixOS 23.11 x86_64 |
Motivation for this change
Remove the need to test for an old
$Fille::Temp::VERSION
so we can cross-compile.Fixes #66741
Also please label for Hacktoberfest once accepted 🙏
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)