[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/42: gnu: guix: Cross-build workaround: Run native guile for version.
From: |
guix-commits |
Subject: |
04/42: gnu: guix: Cross-build workaround: Run native guile for version. |
Date: |
Sat, 25 Apr 2020 13:45:00 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 4c7c89f97a0d49bc678251bf3ab452dcab85522a
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Fri Apr 24 11:21:48 2020 +0200
gnu: guix: Cross-build workaround: Run native guile for version.
We need to take some care here, the native guile is not necessarily always
the
same version as the host guile.
* gnu/packages/package-management.scm (guix)[arguments]: Do not attempt to
run
host guile for getting effective-version; resort to native guile.
---
gnu/packages/package-management.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/package-management.scm
b/gnu/packages/package-management.scm
index 52092df..0dc5b10 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -247,11 +247,13 @@ $(prefix)/etc/init.d\n")))
(setenv "SHELL" (which "sh"))
#t))
(add-after 'install 'wrap-program
- (lambda* (#:key inputs outputs #:allow-other-keys)
+ (lambda* (#:key inputs native-inputs outputs
#:allow-other-keys)
;; Make sure the 'guix' command finds GnuTLS,
;; Guile-JSON, and Guile-Git automatically.
(let* ((out (assoc-ref outputs "out"))
- (guile (assoc-ref inputs "guile"))
+ (guile ,@(if (%current-target-system)
+ '((assoc-ref native-inputs
"guile"))
+ '((assoc-ref inputs "guile"))))
(gcrypt (assoc-ref inputs "guile-gcrypt"))
(json (assoc-ref inputs "guile-json"))
(sqlite (assoc-ref inputs "guile-sqlite3"))
- branch wip-hurd-vm created (now e460289), guix-commits, 2020/04/25
- 03/42: gnu: guix: Indent `copy-bootstrap-guile' code., guix-commits, 2020/04/25
- 01/42: gnu: guix: Apply courage for the Hurd., guix-commits, 2020/04/25
- 02/42: gnu: guix: Do not copy bootstrap-guile when cross-compiling., guix-commits, 2020/04/25
- 06/42: gnu: guix: Use gnutls-3.6.13 when cross-compiling., guix-commits, 2020/04/25
- 05/42: gnu: guix: Cross-build fixup for wrap-program., guix-commits, 2020/04/25
- 08/42: gnu: guix: Update to eeb87326d8., guix-commits, 2020/04/25
- 04/42: gnu: guix: Cross-build workaround: Run native guile for version.,
guix-commits <=
- 09/42: vm: Make the device node procedure a parameter., guix-commits, 2020/04/25
- 13/42: gnu: Add dde-sources., guix-commits, 2020/04/25
- 10/42: gnu: hurd: Build DDE libraries., guix-commits, 2020/04/25
- 14/42: gnu: Add netdde., guix-commits, 2020/04/25
- 17/42: system: hurd: Add less, which to %base-packages/hurd., guix-commits, 2020/04/25
- 18/42: system: hurd: Add /etc/group., guix-commits, 2020/04/25
- 15/42: gnu: hurd: Add NFS support., guix-commits, 2020/04/25
- 21/42: services: Add hurd-ttys-service-type., guix-commits, 2020/04/25
- 24/42: services: hurd: Add dummy syslog., guix-commits, 2020/04/25
- 11/42: gnu: hurd: Fix references to /bin/w., guix-commits, 2020/04/25