commit: 01843d06f296e38c3cfd015c933269e394c63c2a Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Mon Aug 11 18:10:09 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Aug 23 07:37:37 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01843d06
media-libs/libspng: skip broken tests due to newer libpng Bug: https://bugs.gentoo.org/956692 Signed-off-by: Alfred Wingate <parona <AT> 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 <AT> gentoo.org> media-libs/libspng/libspng-0.7.4.ebuild | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/media-libs/libspng/libspng-0.7.4.ebuild b/media-libs/libspng/libspng-0.7.4.ebuild index 604a2a049fac..8e0643c2cab6 100644 --- a/media-libs/libspng/libspng-0.7.4.ebuild +++ b/media-libs/libspng/libspng-0.7.4.ebuild @@ -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[@]} +}
