From 95dd640b7e1290695781e6a6a9b8850a7013b81f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Sep 2025 09:21:52 +0300 Subject: [PATCH] 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 --- gnu/packages/image.scm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 5be5465a174..8a2886906d6 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -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 ")))))) + '((add-after 'unpack 'fix-atomic + (lambda _ + (substitute* "lib/jxl/enc_xyb.cc" + (("#include \"lib/jxl/enc_xyb.h\"" a) + (string-append a "\n#include "))))))) ((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)