unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62433] [PATCH] gnu: jpegoptim: fix riscv64 cross-build.
@ 2023-03-25  4:51 Z572 via Guix-patches via
  2023-06-04 12:29 ` bug#62433: " Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Z572 via Guix-patches via @ 2023-03-25  4:51 UTC (permalink / raw)
  To: 62433

* 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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#62433: [PATCH] gnu: jpegoptim: fix riscv64 cross-build.
  2023-03-25  4:51 [bug#62433] [PATCH] gnu: jpegoptim: fix riscv64 cross-build Z572 via Guix-patches via
@ 2023-06-04 12:29 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2023-06-04 12:29 UTC (permalink / raw)
  To: Z572; +Cc: 62433-done

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-04 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-25  4:51 [bug#62433] [PATCH] gnu: jpegoptim: fix riscv64 cross-build Z572 via Guix-patches via
2023-06-04 12:29 ` bug#62433: " Efraim Flashner

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).