[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49025] [PATCH v4 core-updates 26/36] bash: Fix cross-compilation bu
From: |
Maxime Devos |
Subject: |
[bug#49025] [PATCH v4 core-updates 26/36] bash: Fix cross-compilation build error. |
Date: |
Sat, 19 Jun 2021 17:04:48 +0200 |
%build-inputs does not exist when cross-compiling,
so use this-package-input instead.
* gnu/packages/bash.scm
(bash)[arguments]<#:configure-flags>: Use this-package-input
instead of %build-inputs.
---
gnu/packages/bash.scm | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
index b3af873a66..d51ab26bc8 100644
--- a/gnu/packages/bash.scm
+++ b/gnu/packages/bash.scm
@@ -103,22 +103,25 @@ number/base32-hash tuples, directly usable in the
'patch-series' form."
1))
(define-public bash
- (let* ((cppflags (string-join '("-DDEFAULT_PATH_VALUE='\"/no-such-path\"'"
- "-DSTANDARD_UTILS_PATH='\"/no-such-path\"'"
- "-DNON_INTERACTIVE_LOGIN_SHELLS"
- "-DSSH_SOURCE_BASHRC")
- " "))
- (configure-flags
- #~`("--with-installed-readline"
- ,#$(string-append "CPPFLAGS=" cppflags)
- ,(string-append
- "LDFLAGS=-Wl,-rpath -Wl,"
- (assoc-ref %build-inputs "readline")
- "/lib"
- " -Wl,-rpath -Wl,"
- (assoc-ref %build-inputs "ncurses")
- "/lib")))
- (version "5.1"))
+ (let ((cppflags (string-join '("-DDEFAULT_PATH_VALUE='\"/no-such-path\"'"
+ "-DSTANDARD_UTILS_PATH='\"/no-such-path\"'"
+ "-DNON_INTERACTIVE_LOGIN_SHELLS"
+ "-DSSH_SOURCE_BASHRC")
+ " "))
+ (version "5.1"))
+ ;; Delay expansion to inside a lexical environment
+ ;; where this-package is bound.
+ (define-syntax configure-flags
+ (identifier-syntax
+ #~`("--with-installed-readline"
+ ,#$(string-append "CPPFLAGS=" cppflags)
+ ,(string-append
+ "LDFLAGS=-Wl,-rpath -Wl,"
+ ;; %build-inputs does not exist when cross-compiling,
+ ;; so use this-package-input instead.
+ #$(file-append (this-package-input "readline") "/lib")
+ " -Wl,-rpath -Wl,"
+ #$(file-append (this-package-input "ncurses") "/lib")))))
(package
(name "bash")
(source (origin
--
2.32.0
- [bug#49025] [PATCH v4 core-updates 36/36] meson: Support cross-compilation., (continued)
- [bug#49025] [PATCH v4 core-updates 36/36] meson: Support cross-compilation., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 12/36] libgcrypt: Fix cross-compilation build error., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 15/36] python: Fix reference to input when cross-compiling., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 16/36] openssl: Remove trailing #t from phases., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 18/36] openssl: Use G-exp machinery for referring to outputs., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 20/36] openssl: Move all man pages to separate output, not only man3., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 09/36] libgpg-error: Prevent silent miscompilation some systems., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 21/36] openssl: Find bin/env when cross-compiling., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 35/36] cross-base: Fix cross-compiler for i686-linux-gnu., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 33/36] tk: Do not use %build-inputs when cross-compiling., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 26/36] bash: Fix cross-compilation build error.,
Maxime Devos <=
- [bug#49025] [PATCH v4 core-updates 34/36] libelf: Use the cross-compiler when cross-compiling., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 25/36] bash: Make #:configure-flags a G-expression., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 32/36] tk: Make #:configure-flags a G-expression., Maxime Devos, 2021/06/19
- [bug#49025] [PATCH v4 core-updates 23/36] readline: Make #:configure-flags a G-expression., Maxime Devos, 2021/06/19