From: Z572 via Guix-patches via <guix-patches@gnu.org>
To: 62432@debbugs.gnu.org
Subject: [bug#62432] [PATCH] gnu: libicns: fix riscv64 cross-build.
Date: Sat, 25 Mar 2023 12:50:59 +0800 [thread overview]
Message-ID: <tencent_9E72DB12A95A97CD8254E9ACB2BF641D9907@qq.com> (raw)
* gnu/packages/image.scm (libicns): fix riscv64 cross-build.
[arguments]: when target-riscv64, add phase to update-config-scripts
[native-inputs]: when target-riscv64, add config.
---
gnu/packages/image.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 0da990e63a..81cdcd778e 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -549,6 +549,22 @@ (define-public libicns
(base32
"1hjm8lwap7bjyyxsyi94fh5817xzqhk4kb5y0b7mb6675xw10prk"))))
(build-system gnu-build-system)
+ (arguments (if (target-riscv64?)
+ (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 (target-riscv64?)
+ (list config)
+ '()))
(inputs
(list libpng jasper))
(home-page "https://icns.sourceforge.io/")
--
2.39.2
next reply other threads:[~2023-03-25 4:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-25 4:50 Z572 via Guix-patches via [this message]
2023-04-03 11:04 ` [bug#62432] [PATCH] gnu: libicns: fix riscv64 cross-build 宋文武 via Guix-patches via
2023-06-04 12:29 ` bug#62432: " Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_9E72DB12A95A97CD8254E9ACB2BF641D9907@qq.com \
--to=guix-patches@gnu.org \
--cc=62432@debbugs.gnu.org \
--cc=873216071@qq.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).