-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
gobject-introspection: fix cross-compilation #166199
Conversation
Currently pkgsCross.aarch64-multiplatform.gobject-introspection does not build due to breakage in (a) generating the docs and (b) generating the introspection data. There really isn't proper support in gobject-introspection for cross-compiles with -Dintrospection=true, just a collection of hacks in meson_options.txt that are rumored to be useful somehow. I have not been able to find any reports of people actually getting this to work. Let's disable the docs and introspection data for cross-compiles, since a build without docs or introspection is still very useful, and definitely more useful than no build at all.
And, gobject-introspection is not really designed to be used in cross compilations, in short, even if it build, we can not build packages that depends on it. Then what's the point of fixing it in the first place? |
We can. I am about to submit the patch that makes gtk3 cross-compile. Stay tuned. It's worth it. |
Some previous work on cross compiling gtk3 is at #148618, hope it helps. |
|
See #88222 for prior art |
Currently pkgsCross.aarch64-multiplatform.gobject-introspection does
not build due to breakage in (a) generating the docs and (b)
generating the introspection data.
There really isn't proper support in gobject-introspection for
cross-compiles with -Dintrospection=true, just a collection of hacks
in meson_options.txt that are rumored to be useful somehow. I ave
not been able to find any reports of people actually getting this to
work.
Let's disable the docs nd introspection data for cross-compiles,
since a build without docs or introspection is still very useful, and
definitely more useful than no build at all.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notesCurrently pkgsCross.aarch64-multiplatform.gobject-introspection does
not build due to breakage in (a) generating the docs and (b)
generating the introspection data.
There really isn't proper support in gobject-introspection for
cross-compiles with -Dintrospection=true, just a collection of hacks
in meson_options.txt that are rumored to be useful somehow. I have
not been able to find any reports of people actually getting this to
work.
Let's disable the docs and introspection data for cross-compiles,
since a build without docs or introspection is still very useful, and
definitely more useful than no build at all.