[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/18: qt-build-system: Look up the interpreter in 'inputs'.
From: |
guix-commits |
Subject: |
05/18: qt-build-system: Look up the interpreter in 'inputs'. |
Date: |
Fri, 4 Jun 2021 17:29:22 -0400 (EDT) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 2ac898d7f84a5ee9dee841ff3957455cb28b0b2b
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Mon May 31 19:20:12 2021 +0200
qt-build-system: Look up the interpreter in 'inputs'.
* guix/build/qt-build-system.scm (wrap-all-programs): Pass
the shell interpreter from 'inputs' to 'wrap-program' using
'search-input-file'.
Partially-Fixes: <https://issues.guix.gnu.org/47869>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/build/qt-build-system.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/guix/build/qt-build-system.scm b/guix/build/qt-build-system.scm
index 762fd8a..ec7ceb3 100644
--- a/guix/build/qt-build-system.scm
+++ b/guix/build/qt-build-system.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2014, 2015, 2021 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2019, 2020 Hartmut Goebel <h.goebel@crazy-compilers.com>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -126,6 +127,12 @@ add a dependency of that output on Qt."
(((_ . dir) ...)
dir)))
+ ;; Do not require bash to be present in the package inputs
+ ;; even when there is nothing to wrap.
+ ;; Also, calculate (sh) only once to prevent some I/O.
+ (define %sh (delay (search-input-file inputs "bin/bash")))
+ (define (sh) (force %sh))
+
(define handle-output
(match-lambda
((output . directory)
@@ -135,7 +142,7 @@ add a dependency of that output on Qt."
(append (list directory)
input-directories))))
(when (not (null? vars-to-wrap))
- (for-each (cut apply wrap-program <> vars-to-wrap)
+ (for-each (cut apply wrap-program <> #:sh (sh) vars-to-wrap)
bin-list)))))))
(for-each handle-output outputs)
- branch core-updates updated (0fdf2cd -> d1827d5), guix-commits, 2021/06/04
- 01/18: utils: Allow overriding the shell interpreter in ‘wrap-program’., guix-commits, 2021/06/04
- 02/18: utils: Define ‘search-input-file’ procedure., guix-commits, 2021/06/04
- 03/18: glib-or-gtk-build-system: Look up the interpreter in 'inputs'., guix-commits, 2021/06/04
- 05/18: qt-build-system: Look up the interpreter in 'inputs'.,
guix-commits <=
- 11/18: gnu: gess: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 08/18: gnu: bats: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 10/18: gnu: prinseq: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 06/18: rakudo-build-system: Look up the interpreter in 'inputs'., guix-commits, 2021/06/04
- 04/18: python-build-system: Look up the interpreter in 'inputs'., guix-commits, 2021/06/04
- 07/18: gnu: carla: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 09/18: gnu: proteinortho: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 12/18: gnu: nanopolish: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 13/18: gnu: sieve-connect: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04
- 15/18: gnu: vpnc-scripts: Set #:guile argument of 'wrap-script'., guix-commits, 2021/06/04