emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62433: closed ([PATCH] gnu: jpegoptim: fix riscv64 cross-build.)


From: GNU bug Tracking System
Subject: bug#62433: closed ([PATCH] gnu: jpegoptim: fix riscv64 cross-build.)
Date: Sun, 04 Jun 2023 12:30:05 +0000

Your message dated Sun, 4 Jun 2023 15:29:38 +0300
with message-id <ZHyDsk_zC7fw0_yg@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@gnu.org.)


-- 
62433: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62433
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- 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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#62433] [PATCH] gnu: jpegoptim: fix riscv64 cross-build. Date: Sun, 4 Jun 2023 15:29:38 +0300
Thanks. Patch pushed!

-- 
Efraim Flashner   <efraim@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

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]