GNU bug report logs -
#62433
[PATCH] gnu: jpegoptim: fix riscv64 cross-build.
Previous Next
Reported by: Z572 <873216071 <at> qq.com>
Date: Sat, 25 Mar 2023 04:52:03 UTC
Severity: normal
Tags: patch
Done: Efraim Flashner <efraim <at> flashner.co.il>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#62433: [PATCH] gnu: jpegoptim: fix riscv64 cross-build.
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 62433 <at> debbugs.gnu.org.
--
62433: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62433
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Thanks. Patch pushed!
--
Efraim Flashner <efraim <at> flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
* 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
This bug report was last modified 1 year and 356 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.