~ruther/guix-local

95dd640b7e1290695781e6a6a9b8850a7013b81f — Efraim Flashner 1 year, 1 month ago 9a8fb2c
gnu: libjxl: Fix building on some architectures.

This is a follow-up to 9a8fb2cfc4e6b5bbc0dd9d7236eff45d22384cc1.

* gnu/packages/image.scm (libjxl)[arguments]: Correctly add extra phases
when building for some architectures.

Change-Id: I09fc4980373509dabe12e414c13c2dd44fc4a734
1 files changed, 11 insertions(+), 11 deletions(-)

M gnu/packages/image.scm
M gnu/packages/image.scm => gnu/packages/image.scm +11 -11
@@ 2703,18 2703,18 @@ Format) file format decoder and encoder.")
       (modify-phases %standard-phases
         ,@(cond
             ((target-riscv64?)
              (add-after 'unpack 'fix-atomic
                (lambda _
                  (substitute* "lib/jxl/enc_xyb.cc"
                    (("#include \"lib/jxl/enc_xyb.h\"" a)
                     (string-append a "\n#include <atomic>"))))))
              '((add-after 'unpack 'fix-atomic
                  (lambda _
                    (substitute* "lib/jxl/enc_xyb.cc"
                      (("#include \"lib/jxl/enc_xyb.h\"" a)
                       (string-append a "\n#include <atomic>")))))))
             ((target-x86-32?)
              (add-after 'unpack 'loosen-test-parameter
                (lambda _
                  ;; This test fails likely due to a floating point
                  ;; rounding difference.
                  (substitute* "lib/jxl/color_management_test.cc"
                    (("8\\.7e-4") "8.7e-3")))))
              '((add-after 'unpack 'loosen-test-parameter
                  (lambda _
                    ;; This test fails likely due to a floating point
                    ;; rounding difference.
                    (substitute* "lib/jxl/color_management_test.cc"
                      (("8\\.7e-4") "8.7e-3"))))))
             (#t '()))
         (add-after 'install 'split
           (lambda* (#:key outputs #:allow-other-keys)