media-video/ffmpeg: skip tests that are picky about zlib for zlib-ng

At same time setup a placeholder variable to make it easy to skip
more tests in the future if needed given need to be all be gathered
in a single configure option. Will likely keep that there even no
longer need to skip anything.

A downside of --ignore-tests is that configure options are recorded
and users will see the whole list of test skips in ffmpeg invocations
(which will vary depending on which zlib it built against, not that
it actually changes the code).

Haven't verified the skip list for old ffmpeg versions, so it may
be skipping some not-yet-existing tests (does pass though).

Closes: https://bugs.gentoo.org/965737
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-11-06 08:28:43 -05:00
parent 297c7045b6
commit 1be575db34
6 changed files with 84 additions and 0 deletions

View File

@@ -447,6 +447,20 @@ multilib_src_configure() {
esac
fi
# skipping tests is handled at configure-time
local skip_tests=()
# zlib-ng is not bitexact w/ zlib producing mismatching md5sum (bug #965737)
has_version 'sys-libs/zlib-ng[compat]' &&
skip_tests+=(
lavf-{apng{,.png},gray16be.png,png,rgb48be.png}
mov-mp4-frag-flush
vsynth{1,2,3}-{flashsv,mpng,zlib}
)
(( ${#skip_tests[@]} )) &&
conf+=( --ignore-tests=$(IFS=,; echo "${skip_tests[*]}") )
# import options from FFMPEG_IUSE_MAP
local flag license mod v
local -A optmap=() licensemap=()

View File

@@ -447,6 +447,20 @@ multilib_src_configure() {
esac
fi
# skipping tests is handled at configure-time
local skip_tests=()
# zlib-ng is not bitexact w/ zlib producing mismatching md5sum (bug #965737)
has_version 'sys-libs/zlib-ng[compat]' &&
skip_tests+=(
lavf-{apng{,.png},gray16be.png,png,rgb48be.png}
mov-mp4-frag-flush
vsynth{1,2,3}-{flashsv,mpng,zlib}
)
(( ${#skip_tests[@]} )) &&
conf+=( --ignore-tests=$(IFS=,; echo "${skip_tests[*]}") )
# import options from FFMPEG_IUSE_MAP
local flag license mod v
local -A optmap=() licensemap=()

View File

@@ -505,6 +505,20 @@ multilib_src_configure() {
esac
fi
# skipping tests is handled at configure-time
local skip_tests=()
# zlib-ng is not bitexact w/ zlib producing mismatching md5sum (bug #965737)
has_version 'sys-libs/zlib-ng[compat]' &&
skip_tests+=(
lavf-{apng{,.png},gray16be.png,png,rgb48be.png}
mov-mp4-frag-flush
vsynth{1,2,3}-{flashsv,mpng,zlib}
)
(( ${#skip_tests[@]} )) &&
conf+=( --ignore-tests=$(IFS=,; echo "${skip_tests[*]}") )
# import options from FFMPEG_IUSE_MAP
local flag license mod v
local -A optmap=() licensemap=()

View File

@@ -519,6 +519,20 @@ multilib_src_configure() {
esac
fi
# skipping tests is handled at configure-time
local skip_tests=()
# zlib-ng is not bitexact w/ zlib producing mismatching md5sum (bug #965737)
has_version 'sys-libs/zlib-ng[compat]' &&
skip_tests+=(
lavf-{apng{,.png},gray16be.png,png,rgb48be.png}
mov-mp4-frag-flush
vsynth{1,2,3}-{flashsv,mpng,zlib}
)
(( ${#skip_tests[@]} )) &&
conf+=( --ignore-tests=$(IFS=,; echo "${skip_tests[*]}") )
# import options from FFMPEG_IUSE_MAP
local flag license mod v
local -A optmap=() licensemap=()

View File

@@ -515,6 +515,20 @@ multilib_src_configure() {
esac
fi
# skipping tests is handled at configure-time
local skip_tests=()
# zlib-ng is not bitexact w/ zlib producing mismatching md5sum (bug #965737)
has_version 'sys-libs/zlib-ng[compat]' &&
skip_tests+=(
lavf-{apng{,.png},gray16be.png,png,rgb48be.png}
mov-mp4-frag-flush
vsynth{1,2,3}-{flashsv,mpng,zlib}
)
(( ${#skip_tests[@]} )) &&
conf+=( --ignore-tests=$(IFS=,; echo "${skip_tests[*]}") )
# import options from FFMPEG_IUSE_MAP
local flag license mod v
local -A optmap=() licensemap=()

View File

@@ -520,6 +520,20 @@ multilib_src_configure() {
esac
fi
# skipping tests is handled at configure-time
local skip_tests=()
# zlib-ng is not bitexact w/ zlib producing mismatching md5sum (bug #965737)
has_version 'sys-libs/zlib-ng[compat]' &&
skip_tests+=(
lavf-{apng{,.png},gray16be.png,png,rgb48be.png}
mov-mp4-frag-flush
vsynth{1,2,3}-{flashsv,mpng,zlib}
)
(( ${#skip_tests[@]} )) &&
conf+=( --ignore-tests=$(IFS=,; echo "${skip_tests[*]}") )
# import options from FFMPEG_IUSE_MAP
local flag license mod v
local -A optmap=() licensemap=()