Skip 'pack' tests on F40+
On Fedora 40+ and RHEL 10+, we're using zlib-ng rather than zlib for compression. As a result, all of the pack tests fail due to checking the hashes of the packed data against static values that were created with zlib. https://github.com/libgit2/libgit2/issues/6728 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
2eec21cac2
commit
7ec90df943
@ -59,6 +59,15 @@ find examples -name ".gitignore" -delete -print
|
||||
# Don't run "online" tests
|
||||
sed -i '/-sonline/s/^/#/' tests/libgit2/CMakeLists.txt
|
||||
|
||||
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
|
||||
# On Fedora 40+ and RHEL 10+, we're using zlib-ng rather than
|
||||
# zlib for compression. As a result, all of the pack tests fail
|
||||
# due to checking the hashes of the packed data against static
|
||||
# values that were created with zlib.
|
||||
# https://github.com/libgit2/libgit2/issues/6728
|
||||
sed -i 's/-xonline/-xonline -xpack/' tests/libgit2/CMakeLists.txt
|
||||
%endif
|
||||
|
||||
# Remove bundled libraries (except libxdiff)
|
||||
pushd deps
|
||||
find . -maxdepth 1 -not -name xdiff -exec rm -rf {} ';'
|
||||
|
Loading…
Reference in New Issue
Block a user