gnu: guile-lib: Fix cross compilation.
authorChristopher Baines <mail@cbaines.net>
Tue, 23 Feb 2021 20:02:14 +0000 (20:02 +0000)
committerChristopher Baines <mail@cbaines.net>
Mon, 8 Mar 2021 22:01:25 +0000 (22:01 +0000)
commita0b24d5f8c5813329986b1bd690ed50b5308cc78
tree5eca8d168ff50564a0b1a7682c9aac8c64b40915
parent7a436517384b7a30d4e49bcd818aa9a1e70db443
gnu: guile-lib: Fix cross compilation.

These changes were sent upstream as
https://lists.gnu.org/archive/html/guile-devel/2021-02/msg00004.html

Without this change, the .go files are built for the host architecture, rather
than the target. I noticed this when cross building the
guix-build-coordinator (for which guile-lib is an input) to the Hurd.

* gnu/packages/guile-xyz.scm (guile-lib)[arguments]: Add
'patch-for-cross-compilation phase.
[native-inputs]: Add autoconf, automake and gettext.
(guile2.0-lib): Adjust to use alist-replace.
(guile2.2-lib): Adjust to use alist-replace.
gnu/packages/guile-xyz.scm