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
libical: fix cross-compilation #98818
Conversation
We could very easily add this wherever gobject-introspection is non-essential (since it doesn't cross compile right now). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me for now.
(I didn't check that builds)
Yeah this is fine with me. |
Unfortunately, I just realized that the machine I was testing this on had binfmt_misc configured, and part of the libical's glib build process compiles an executable that generates code during the build. The build fails on machines that cannot execute host arch binaries. I'm looking into fixing this upstream, or alternatively we could disable glib support when cross-compiling as well. |
Ugh that it does that without gobject-introspection. Upstream should indeed fix that, but I'm fine skipping glib too. |
092ccfe
to
26d5bfa
Compare
I created an upstream PR to fix the glib issue, and added it to this PR: libical/libical#439 @ofborg build pkgsCross.armv7l-hf-multiplatform.libical |
gobject-introspection cannot be cross-compiled, so disable it when cross-compiling. The glib bindings attempt to run a binary compiled for the host during the build, so add a patch that allows the binary to be provided by buildPackages.libical.
26d5bfa
to
56ef82d
Compare
The patch has been merged upstream. |
Motivation for this change
gobject-introspection cannot be cross-compiled, so disable it (and vala support, which depends on it) when cross-compiling.
cc @jtojnar @dtzWill
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)