[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
78/184: gnu: commencement: Ensure 'gnu-make-final' refers to the native
From: |
guix-commits |
Subject: |
78/184: gnu: commencement: Ensure 'gnu-make-final' refers to the native 'pkg-config'. |
Date: |
Wed, 27 Nov 2019 14:37:04 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome-updates
in repository guix.
commit 1407f46d5370e541db2d58bb93590bee1f7d7c12
Author: Ludovic Courtès <address@hidden>
Date: Thu Nov 7 10:22:24 2019 +0100
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 | 2 +-
tests/guix-build.sh | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index b022a0d..6a382c7 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2402,7 +2402,7 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a
\"$@\"~%"
;; PKG-CONFIG.
;; TODO: Fix that on the next rebuild cycle.
(let ((pkg-config (package
- (inherit pkg-config)
+ (inherit %pkg-config) ;the native pkg-config
(inputs `(("guile" ,guile-final)
,@(%boot5-inputs)))
(arguments
diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index 37666ff..52feda9 100644
--- a/tests/guix-build.sh
+++ b/tests/guix-build.sh
@@ -226,6 +226,10 @@ rmdir "$result"
# Cross building.
guix build coreutils --target=mips64el-linux-gnu --dry-run --no-substitutes
+# Likewise, but with '-e' (see <https://bugs.gnu.org/38093>).
+guix build --target=arm-linux-gnueabihf --dry-run \
+ -e '(@ (gnu packages base) coreutils)'
+
# Replacements.
drv1=`guix build guix --with-input=guile@2.0=guile@2.2 -d`
drv2=`guix build guix -d`
- 61/184: gnu: python-pyatspi: Update to 2.34.0., (continued)
- 61/184: gnu: python-pyatspi: Update to 2.34.0., guix-commits, 2019/11/27
- 56/184: gnu: gnome-online-accounts: Update to 3.32.1., guix-commits, 2019/11/27
- 29/184: gnu: gnome-clocks: Update to 3.32.0., guix-commits, 2019/11/27
- 42/184: gnu: cheese: Update to 3.32.1., guix-commits, 2019/11/27
- 58/184: gnu: grilo: Update to 0.3.10., guix-commits, 2019/11/27
- 60/184: gnu: nautilus: Update to 3.32.3., guix-commits, 2019/11/27
- 63/184: gnu: modem-manager: Update to 1.10.8., guix-commits, 2019/11/27
- 66/184: gnu: linux-libre@4.14: Update to 4.14.152., guix-commits, 2019/11/27
- 69/184: gnu: gnome-disk-utility: Don't create icon cache., guix-commits, 2019/11/27
- 73/184: gnu: epiphany: Don't build icon cache., guix-commits, 2019/11/27
- 78/184: gnu: commencement: Ensure 'gnu-make-final' refers to the native 'pkg-config'.,
guix-commits <=
- 85/184: gnu: lollypop: Update to 1.2.7., guix-commits, 2019/11/27
- 79/184: gnu: pkg-config: Memoize 'cross-pkg-config'., guix-commits, 2019/11/27
- 86/184: gnu: libdvdnav: Don't use NAME in source URI., guix-commits, 2019/11/27
- 90/184: gnu: hplip: Actually wrap binaries., guix-commits, 2019/11/27
- 94/184: gnu: gnumeric: Update to 1.12.46., guix-commits, 2019/11/27
- 95/184: gnu: goffice: Update to 0.10.46., guix-commits, 2019/11/27
- 100/184: gnu: r-plotly: Update to 4.9.1., guix-commits, 2019/11/27
- 98/184: gnu: r-polspline: Update to 1.1.17., guix-commits, 2019/11/27
- 111/184: gnu: Add delft-icon-theme., guix-commits, 2019/11/27
- 110/184: gnu: packages: Add rofi-pass., guix-commits, 2019/11/27