all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#70079] [PATCH] gnu: libjxl: Fix building on riscv64-linux.
@ 2024-03-29 17:01 Zheng Junjie
  2024-03-29 17:18   ` Z572 via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: Zheng Junjie @ 2024-03-29 17:01 UTC (permalink / raw)
  To: 70079

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 1790 bytes --]

* gnu/packages/image.scm (libjxl)
[arguments]: When target riscv64, add 'add-miss-atomic-include phase.

Change-Id: I554ae8d9d9bd982e7eb63ad4ecae176d2ba2372b
---
 gnu/packages/image.scm | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 6accf68ef0..35ee12d8f3 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -35,7 +35,7 @@
 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
 ;;; Copyright © 2022 ( <paren@disroot.org>
 ;;; Copyright © 2022-2023 Bruno Victal <mirai@makinata.eu>
-;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2023-2024 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;; Copyright © 2023 Artyom V. Poptsov <poptsov.artyom@gmail.com>
 ;;; Copyright © 2024 chris <chris@bumblehead.com>
@@ -2606,7 +2606,17 @@ (define-public libjxl
              "-DJPEGXL_FORCE_SYSTEM_BROTLI=true"
              "-DJPEGXL_FORCE_SYSTEM_LCMS2=true"
              "-DJPEGXL_FORCE_SYSTEM_HWY=true"
-             "-DJPEGXL_BUNDLE_LIBPNG=false")))
+             "-DJPEGXL_BUNDLE_LIBPNG=false")
+       ;; see https://github.com/libjxl/libjxl/pull/2211
+       ,@(if (target-riscv64?)
+             `(#:phases
+               (modify-phases %standard-phases
+                 (add-after 'unpack 'add-miss-atomic-include
+                   (lambda _
+                     (substitute* "lib/jxl/enc_xyb.cc"
+                       (("<algorithm>")
+                        "<algorithm>\n#include <atomic>"))))))
+             '())))
     (native-inputs
      (list asciidoc doxygen googletest pkg-config python))
     (inputs

base-commit: 37d31495c1c3c38d1b74e0c5b3ba279c1d99c7d5
-- 
2.41.0





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

* bug#70079: close
@ 2024-03-29 17:18   ` Z572 via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: Z572 via Guix-patches via @ 2024-03-29 17:18 UTC (permalink / raw)
  To: 70079-done

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


The same patch was sent before

https://issues.guix.gnu.org/68040

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

end of thread, other threads:[~2024-03-29 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-29 17:01 [bug#70079] [PATCH] gnu: libjxl: Fix building on riscv64-linux Zheng Junjie
2024-03-29 17:18 ` bug#70079: close Z572 via Guix-patches via
2024-03-29 17:18   ` Z572 via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.