-
-
Notifications
You must be signed in to change notification settings - Fork 18k
Various strictDeps and cross fixes #142602
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
Conversation
7f7bf79 to
893afb1
Compare
d69c368 to
8b38aa9
Compare
|
with these changes im able to compile everything up to diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix
index 8fa30637049..cc21b152c12 100644
--- a/pkgs/stdenv/generic/make-derivation.nix
+++ b/pkgs/stdenv/generic/make-derivation.nix
@@ -69,7 +69,7 @@ in
, doInstallCheck ? config.doCheckByDefault or false
, # TODO(@Ericson2314): Make always true and remove
- strictDeps ? stdenv.hostPlatform != stdenv.buildPlatform
+ strictDeps ? true
, meta ? {}
, passthru ? {}
, pos ? # position used in error messages and for meta.position
@@ -310,7 +310,7 @@ else let
llvm-config = 'llvm-config-native'
'';
in [ "--cross-file=${crossFile}" ] ++ mesonFlags;
- } // lib.optionalAttrs (attrs.enableParallelBuilding or false) {
+ } // lib.optionalAttrs (attrs.enableParallelBuilding or true) {
enableParallelChecking = attrs.enableParallelChecking or true;
} // lib.optionalAttrs (hardeningDisable != [] || hardeningEnable != [] || stdenv.hostPlatform.isMusl) {
NIX_HARDENING_ENABLE = enabledHardeningOptions;dependency tree: https://gist.github.com/Artturin/d63a9007774f7cb7994a93acdfb69899 |
|
Weird, with |
|
with this PR sway successfully cross-compiles @Mindavi |
869e506 to
a9a4de5
Compare
* with aarch64-linux binfmt |
a9a4de5 to
673a491
Compare
checked output with diffoscope libnotify: make gobject-introspection conditional to fix binfmt cross-compile
checked with diffoscope
pango: fix binfmt cross-compile
neither gentoo or arch list them checked with diffoscope and there were no changes
output checked with diffoscope
there are no tests
libgudev: make gobject-introspection conditional to fix binfmt cross-compile
librsvg-aarch64-unknown-linux-gnu> error: linker `cc` not found librsvg-aarch64-unknown-linux-gnu> | librsvg-aarch64-unknown-linux-gnu> = note: No such file or directory (os error 2) librsvg-aarch64-unknown-linux-gnu> error: could not compile `librsvg` due to previous error librsvg-aarch64-unknown-linux-gnu> make[2]: *** [Makefile:1572: /build/librsvg-2.52.0/target/aarch64-unknown-linux-gnu/release/rsvg-convert] Error 101
adding python3 to nativeBuildInputs is not enough as it still uses the aarch64 python for the build
zlib has to be in nativeBuildInputs too because its run during the build, i think.
11c6bad to
04e17c1
Compare
yes but i'd like to do that in a separate pr after this is merged |
|
I looked through every file and didn't see any obvious code smell. If anything major breaks we will notice it in the staging cycle. Here goes nothing. |
Motivation for this change
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)