gnu: commencement: Ensure 'gnu-make-final' refers to the native 'pkg-config'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 7 Nov 2019 09:22:24 +0000 (10:22 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 7 Nov 2019 17:39:55 +0000 (18:39 +0100)
commit537b2daba9a5f0c17bde2203e6fb074a661d5b32
tree09049a8567d4104c02eeed4ee450abc6accb3edc
parent665467767577172db40eea510583dbf2faf56a58
gnu: commencement: Ensure 'gnu-make-final' refers to the native 'pkg-config'.

Fixes <https://bugs.gnu.org/38093>.

When running:

  guix build --target=arm-linux-gnueabihf -e '(@ (gnu packages base) coreutils)'

the '%current-target-system' parameter is set by the time the top-level
of (gnu packages commencement) is evaluated.  Consequently, we need to
ensure that the 'pkg-config' macro evaluates in a context where
'%current-target-system' is unset.

* gnu/packages/commencement.scm (gnu-make-final): Refer to '%pkg-config'
instead of 'pkg-config'.
* tests/guix-build.sh: Add test.
gnu/packages/commencement.scm
tests/guix-build.sh