[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu: libatasmart: Fix cross-compiling to riscv64-linux.
From: |
guix-commits |
Subject: |
06/08: gnu: libatasmart: Fix cross-compiling to riscv64-linux. |
Date: |
Wed, 27 Mar 2024 08:47:33 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit d9e693df75ffb8f0333c990d947540261613f72b
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Sat Mar 23 00:44:20 2024 +0800
gnu: libatasmart: Fix cross-compiling to riscv64-linux.
* gnu/packages/freedesktop.scm (libatasmart)
[native-inputs]: When cross compiling to riscv64-linux-gnu, add config.
[arguments]: When target riscv64-linux-gnu, add update-config phase.
Change-Id: I491c43a6ce2c3fc3aed43ecab9d4a2ab251038bb
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/freedesktop.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 8a4f490be2..5518d38af5 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1525,7 +1525,25 @@ formats.")
"138gvgdwk6h4ljrjsr09pxk1nrki4b155hqdzyr8mlk3bwsfmw31"))))
(build-system gnu-build-system)
(native-inputs
- (list pkg-config))
+ (append (if (and (%current-target-system)
+ (target-riscv64?))
+ (list config)
+ '())
+ (list pkg-config)))
+ (arguments
+ (if (and (%current-target-system)
+ (target-riscv64?))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'update-config
+ (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))
"build-aux"))
+ '("config.guess" "config.sub"))))))
+ '()))
(inputs
(list eudev))
(home-page "https://0pointer.de/blog/projects/being-smart.html")
- branch master updated (232796ce60 -> e9a547d2c5), guix-commits, 2024/03/27
- 03/08: gnu: moonfish: Improve description., guix-commits, 2024/03/27
- 02/08: gnu: moonfish: Update to 0-2.fb2cb4f., guix-commits, 2024/03/27
- 05/08: gnu: slock: Fix cross-compiling., guix-commits, 2024/03/27
- 04/08: gnu: icewm: Update to 3.4.6., guix-commits, 2024/03/27
- 07/08: gnu: endless-sky: Update to 0.10.6., guix-commits, 2024/03/27
- 01/08: gnu: diffoscope: Update to 261., guix-commits, 2024/03/27
- 06/08: gnu: libatasmart: Fix cross-compiling to riscv64-linux.,
guix-commits <=
- 08/08: gnu: wesnoth: Update to 1.18.0., guix-commits, 2024/03/27