Fix Zlib test failures on s390x due to HW acceleration

Related: RHEL-36189
This commit is contained in:
Vít Ondruch 2024-05-21 10:19:42 +02:00
parent 9ad85ebe74
commit 9a169138d5
1 changed files with 17 additions and 1 deletions

View File

@ -22,7 +22,7 @@
%endif
%global release 142
%global release 143
%{!?release_string:%define release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
# The RubyGems library has to stay out of Ruby directory tree, since the
@ -892,6 +892,18 @@ MSPECOPTS=""
# Avoid `hostname' dependency.
%{!?with_hostname:MSPECOPTS="-P 'Socket.gethostname returns the host name'"}
# Provide workaround for s390x zlib errors in tests on RHEL 8.
# The library works, but there seems to be chip acceleration used
# resulting in failing asserts against hardcoded values that were
# created for a different algorithm than is the default on that platform.
# Fix taken from:
# https://github.com/ruby/zlib/commit/280a1b5905d752af25e9f09e6511388cb4260eb2
%ifarch s390x
# Force chip acceleration off.
# https://www.ibm.com/docs/en/linux-on-systems?topic=o-applications-2
export DFLTCC=0
%endif
# Some infra allows DNS resolution but then does not allow
# connection to proceed, let's ignore it altogether for now.
# Our expectation is that there is no network connectivity outside
@ -1376,6 +1388,10 @@ DISABLE_TESTS="$DISABLE_TESTS -n !/TestBundledCA/"
%changelog
* Tue May 21 2024 Vít Ondruch <vondruch@redhat.com> - 3.0.7-143
- Fix Zlib test failures on s390x due to HW acceleration
Related: RHEL-36189
* Mon May 13 2024 Jun Aruga <jaruga@redhat.com> - 3.0.7-142
- Upgrade to Ruby 3.0.7.
Resolves: RHEL-36189