L p R n d n schreef op vr 17-12-2021 om 12:51 [+0000]: > > Hello guix, > > Trying to cross-compile glib to aarch64with: > > guix build --target=aarch64-linux-gnu glib > > I get this error: > > `Unbound variable: %outputs > > I suppose the glib’s definition needs to be adapted to Guix’s new > style > which was merged a few days ago? >
Actually, glib's build system (meson-build-system) did not support cross-compilation at all before the merge. Cross-compilation support was added on that branch, but glib's package broke later, presumably in <https://git.savannah.gnu.org/cgit/guix.git/commit/?id=f22f6fc3b6cc6382df3246d192a40a3951b48c37>. The fix would be to replace to wrap the configure flags in a #~, instead of a ´,replace (assoc-ref %outputs "bin") by #$output:bin and adjust the configure flags of glib-with-documentation to use #~ and #$ instead of ´ and ,. To avoid rebuilds, some (if (%current-target-system) #~#$output:bin #~(assoc-ref %outputs "bin")) may be needed. Greetings, Maxime.