From: Z572 via Guix-patches via <guix-patches@gnu.org>
To: 62433@debbugs.gnu.org
Subject: [bug#62433] [PATCH] gnu: jpegoptim: fix riscv64 cross-build.
Date: Sat, 25 Mar 2023 12:51:34 +0800 [thread overview]
Message-ID: <tencent_CD7438CBAD4A706A95369B525BB34AFE6209@qq.com> (raw)
* gnu/packages/image.scm (jpegoptim): 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 | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 81cdcd778e..3148ddee3c 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -526,8 +526,24 @@ (define-public jpegoptim
(base32 "06f6d08xvmsiki4mc1qs985gsjqmsxx793a93b72y25q84wbg9x9"))))
(build-system gnu-build-system)
(inputs (list libjpeg-turbo))
+ (native-inputs
+ (if (target-riscv64?)
+ (list config)
+ '()))
(arguments
- '(#:tests? #f)) ; no tests
+ `(#:tests? #f ; no tests
+ ,@(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)) "./tools"))
+ '("config.guess" "config.sub"))))))
+ '())))
(synopsis "Optimize JPEG images")
(description
"jpegoptim provides lossless optimization (based on optimizing
--
2.39.2
next reply other threads:[~2023-03-25 4:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-25 4:51 Z572 via Guix-patches via [this message]
2023-06-04 12:29 ` bug#62433: [PATCH] gnu: jpegoptim: fix riscv64 cross-build 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_CD7438CBAD4A706A95369B525BB34AFE6209@qq.com \
--to=guix-patches@gnu.org \
--cc=62433@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).