aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Junjie <873216071@qq.com>2023-03-25 12:50:59 +0800
committerEfraim Flashner <efraim@flashner.co.il>2023-06-04 15:28:20 +0300
commit4f3e5548fcc2c0bbd9a5ecaf76a4fc63d2439aa3 (patch)
tree90d5709779464a747ab796f308f89d21a18611c1
parent713da38002511f87b9bfc28a669df02d9c9b46fe (diff)
downloadguix-4f3e5548fcc2c0bbd9a5ecaf76a4fc63d2439aa3.tar.gz
guix-4f3e5548fcc2c0bbd9a5ecaf76a4fc63d2439aa3.zip
gnu: libicns: Fix cross-compiling to riscv64.
* gnu/packages/image.scm (libicns)[arguments]: When cross-compiling to riscv64, add phase to update-config-scripts. [native-inputs]: When cross-compiling to riscv64, add config. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/image.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index d1330d17f7..830989da78 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -595,6 +595,25 @@ maximum quality factor.")
(base32
"1hjm8lwap7bjyyxsyi94fh5817xzqhk4kb5y0b7mb6675xw10prk"))))
(build-system gnu-build-system)
+ (arguments
+ (if (and (target-riscv64?)
+ (%current-target-system))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (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"))))) )
+ '()))
+ (native-inputs
+ (if (and (target-riscv64?)
+ (%current-target-system))
+ (list config)
+ '()))
(inputs
(list libpng jasper))
(home-page "https://icns.sourceforge.io/")