media-libs/libspng: skip broken tests due to newer libpng

Bug: https://bugs.gentoo.org/956692
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43413
Closes: https://github.com/gentoo/gentoo/pull/43413
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2025-08-11 21:10:09 +03:00
committed by Sam James
parent a7a727bf69
commit 01843d06f2

View File

@@ -35,3 +35,23 @@ src_configure() {
meson_src_configure
}
src_test() {
local -a tests
tests=( $(meson test --list -C "${BUILD_DIR}") )
local -a skip_tests=(
# Incompatabilities with >=libpng-1.6.47
# bug #956692
ch1n3p04
ch2n3p08
)
for test_index in ${!tests[@]}; do
if [[ ${skip_tests[@]} =~ ${tests[${test_index}]} ]]; then
unset tests[${test_index}]
fi
done
meson_src_test ${tests[@]}
}