GNU bug report logs - #62433
[PATCH] gnu: jpegoptim: fix riscv64 cross-build.

Previous Next

Package: guix-patches;

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

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#62433: closed ([PATCH] gnu: jpegoptim: fix riscv64 cross-build.)
Date: Sun, 04 Jun 2023 12:30:05 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 4 Jun 2023 15:29:38 +0300
with message-id <ZHyDsk_zC7fw0_yg <at> 3900XT>
and subject line Re: [bug#62433] [PATCH] gnu: jpegoptim: fix riscv64 cross-build.
has caused the debbugs.gnu.org bug report #62433,
regarding [PATCH] gnu: jpegoptim: fix riscv64 cross-build.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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)]
From: Z572 <873216071 <at> qq.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: jpegoptim: fix riscv64 cross-build.
Date: Sat, 25 Mar 2023 12:51:34 +0800
* 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



[Message part 3 (message/rfc822, inline)]
From: Efraim Flashner <efraim <at> flashner.co.il>
To: Z572 <873216071 <at> qq.com>
Cc: 62433-done <at> debbugs.gnu.org
Subject: Re: [bug#62433] [PATCH] gnu: jpegoptim: fix riscv64 cross-build.
Date: Sun, 4 Jun 2023 15:29:38 +0300
[Message part 4 (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)]

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.