guix_mirror_bot pushed a commit to branch ungrafting
in repository guix.
commit 2cfcb335f24c2031919d1ba9b02e159879653a80
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Thu Nov 19 21:25:08 2026 +0100
gnu: libavif: Workaround for build with libpng 1.6.59.
* gnu/packages/image.scm (libavif): Workaround for build with libpng 1.6.59.
[arguments]<#:phases>: Add 'patch-tests phase to disable failing test.
Signed-off-by: Andreas Enge <[email protected]>
Merges: guix/guix#12679
---
gnu/packages/image.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index fdcb18cb5db..f3be7a3a89f 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -3032,6 +3032,16 @@ This package can be used to create @code{favicon.ico}
files for web sites.")
"-DAVIF_BUILD_APPS=ON" "-DAVIF_BUILD_GDK_PIXBUF=ON")
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests
+ (lambda _
+ ;; The RgbColorTypeWithTrnsBeforePlte test of libavif 1.0.4 fails
+ ;; with libpng 1.6.59; disable that test.
+ ;; See also
+ ;; https://github.com/AOMediaCodec/libavif/pull/2635
+ ;; https://github.com/AOMediaCodec/libavif/pull/2637
+ (substitute* "tests/gtest/avifreadimagetest.cc"
+ (("EXPECT_EQ.image.*alphaPlane, nullptr" all)
+ (string-append "// " all)))))
(add-before 'configure 'patch-thumbnailer
(lambda _
(substitute* "contrib/gdk-pixbuf/avif.thumbnailer.in"