diff options
| author | Zheng Junjie <873216071@qq.com> | 2024-12-24 01:13:20 +0800 |
|---|---|---|
| committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2025-01-25 01:05:27 +0800 |
| commit | 0d133fdd7342020f4aa78441698f34d877c678d8 (patch) | |
| tree | fb4781b6d159e6d5803285f101b629b94c77ba51 /gnu/packages/bash.scm | |
| parent | 104904196c835e97e01afbb5714bb54b970c7314 (diff) | |
gnu: bash: Fix build to loongarch64.
* gnu/packages/bash.scm (bash)[native-inputs]: When target is loongarch64, Add
config.
[arguments]: When target is loongarch64, Add update-config-scripts phase.
Change-Id: Icadaace85a62582fcb0724dda8f5067d22257cd6
Diffstat (limited to 'gnu/packages/bash.scm')
| -rw-r--r-- | gnu/packages/bash.scm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 642a4059852..ef530522ecb 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm | |||
| @@ -28,6 +28,7 @@ | |||
| 28 | (define-module (gnu packages bash) | 28 | (define-module (gnu packages bash) |
| 29 | #:use-module ((guix licenses) #:prefix license:) | 29 | #:use-module ((guix licenses) #:prefix license:) |
| 30 | #:use-module (gnu packages) | 30 | #:use-module (gnu packages) |
| 31 | #:use-module (gnu packages autotools) | ||
| 31 | #:use-module (gnu packages base) | 32 | #:use-module (gnu packages base) |
| 32 | #:use-module (gnu packages bootstrap) | 33 | #:use-module (gnu packages bootstrap) |
| 33 | #:use-module (gnu packages compression) | 34 | #:use-module (gnu packages compression) |
| @@ -150,6 +151,9 @@ number/base32-hash tuples, directly usable in the 'patch-series' form." | |||
| 150 | (outputs '("out" | 151 | (outputs '("out" |
| 151 | "doc" ;1.7 MiB of HTML and extra files | 152 | "doc" ;1.7 MiB of HTML and extra files |
| 152 | "include")) ;headers used by extensions | 153 | "include")) ;headers used by extensions |
| 154 | (native-inputs (if (target-loongarch64?) | ||
| 155 | (list config) | ||
| 156 | '())) | ||
| 153 | (inputs (list readline ncurses)) ;TODO: add texinfo | 157 | (inputs (list readline ncurses)) ;TODO: add texinfo |
| 154 | (arguments | 158 | (arguments |
| 155 | `(;; When cross-compiling, `configure' incorrectly guesses that job | 159 | `(;; When cross-compiling, `configure' incorrectly guesses that job |
| @@ -219,7 +223,18 @@ number/base32-hash tuples, directly usable in the 'patch-series' form." | |||
| 219 | "/Makefile.inc") | 223 | "/Makefile.inc") |
| 220 | (("^INSTALL =.*") | 224 | (("^INSTALL =.*") |
| 221 | "INSTALL = install -c\n")) | 225 | "INSTALL = install -c\n")) |
| 222 | #t)))))) | 226 | #t))) |
| 227 | ,@(if (target-loongarch64?) | ||
| 228 | `((add-after 'unpack 'update-config-scripts | ||
| 229 | (lambda* (#:key inputs native-inputs #:allow-other-keys) | ||
| 230 | ;; Replace outdated config.guess and config.sub. | ||
| 231 | (for-each (lambda (file) | ||
| 232 | (install-file | ||
| 233 | (search-input-file | ||
| 234 | (or native-inputs inputs) | ||
| 235 | (string-append "/bin/" file)) "./support")) | ||
| 236 | '("config.guess" "config.sub"))))) | ||
| 237 | '())))) | ||
| 223 | 238 | ||
| 224 | (native-search-paths | 239 | (native-search-paths |
| 225 | (list (search-path-specification ;new in 4.4 | 240 | (list (search-path-specification ;new in 4.4 |
