[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
126/244: gnu: tcsh: Fix riscv64 cross-compilation.
From: |
guix-commits |
Subject: |
126/244: gnu: tcsh: Fix riscv64 cross-compilation. |
Date: |
Wed, 12 Apr 2023 08:48:46 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit d496165edf475b87c906fe815c042cdb18583c25
Author: Z572 <873216071@qq.com>
AuthorDate: Thu Mar 30 20:32:29 2023 +0800
gnu: tcsh: Fix riscv64 cross-compilation.
* gnu/packages/shells.scm (tcsh): fix riscv64 cross-build.
[arguments]<#:phase>: Add 'update-config-scripts' phase for riscv64.
[native-inputs]: Add CONFIG for riscv64.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/shells.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index c2b08afbe9..1ffe4ce5d8 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -20,6 +20,7 @@
;;; Copyright © 2021, 2022 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2021, 2022 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2022 Andrew Tropin <andrew@trop.in>
+;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -398,7 +399,10 @@ written by Paul Haahr and Byron Rakitzis.")
(patch-flags '("-p0"))))
(build-system gnu-build-system)
(native-inputs
- (list autoconf perl))
+ (append (if (target-riscv64?)
+ (list config)
+ '())
+ (list autoconf perl)))
(inputs
(list ncurses))
(arguments
@@ -412,6 +416,18 @@ written by Paul Haahr and Byron Rakitzis.")
"CC_FOR_GETHOST=\"gcc\""))
#t)))
'())
+ ,@(if (target-riscv64?)
+ ;; TODO: remove after commit
+ ;; 3c33503f9aec4412dc1a95927a8c5c357c7b851e or 6.24.00
+ `((add-after 'unpack 'update-config-scripts
+ (lambda* (#:key native-inputs inputs #:allow-other-keys)
+ (for-each (lambda (file)
+ (install-file
+ (search-input-file
+ (or native-inputs inputs)
+ (string-append "/bin/" file)) "."))
+ '("config.guess" "config.sub")))))
+ '())
(add-before 'check 'patch-test-scripts
(lambda _
;; Take care of pwd
- 88/244: gnu: r-ggpp: Update to 0.5.2., (continued)
- 88/244: gnu: r-ggpp: Update to 0.5.2., guix-commits, 2023/04/12
- 92/244: gnu: r-prodlim: Update to 2023.03.31., guix-commits, 2023/04/12
- 96/244: gnu: r-flextable: Update to 0.9.1., guix-commits, 2023/04/12
- 89/244: gnu: r-ggvenn: Update to 0.1.10., guix-commits, 2023/04/12
- 103/244: gnu: r-parameters: Update to 0.20.3., guix-commits, 2023/04/12
- 86/244: gnu: r-numbat: Update to 1.3.0., guix-commits, 2023/04/12
- 109/244: gnu: r-projpred: Update to 2.5.0., guix-commits, 2023/04/12
- 113/244: gnu: r-readtext: Update to 0.82., guix-commits, 2023/04/12
- 117/244: gnu: r-lattice: Update to 0.21-8., guix-commits, 2023/04/12
- 121/244: gnu: r-rsqlite: Update to 2.3.1., guix-commits, 2023/04/12
- 126/244: gnu: tcsh: Fix riscv64 cross-compilation.,
guix-commits <=
- 125/244: gnu: Add avfs., guix-commits, 2023/04/12
- 129/244: environment: Add '--nesting'., guix-commits, 2023/04/12
- 127/244: gnu: janet: Update to 1.27.0., guix-commits, 2023/04/12
- 134/244: news: Add 'de' translation., guix-commits, 2023/04/12
- 138/244: po: Do not auto-translate cross-references to other manuals., guix-commits, 2023/04/12
- 21/244: gnu: Add python-treelib., guix-commits, 2023/04/12
- 32/244: gnu: a2ps: Update to 4.15.3., guix-commits, 2023/04/12
- 48/244: gnu: python-debian: Update to 0.1.49., guix-commits, 2023/04/12
- 49/244: gnu: python-boolean.py: Update to 4.0., guix-commits, 2023/04/12
- 52/244: gnu: emacs-eat: Update to 0.7., guix-commits, 2023/04/12