Compare commits

..

No commits in common. "35bdc1449d3979b1ab0b66a49e70a37b57a4f902" and "75e99d11a2dc7393735fce0476f8fed90e963f54" have entirely different histories.

4 changed files with 3 additions and 59 deletions

BIN
IO-Compress-2.100.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,37 +0,0 @@
From bd25cda1ae716cda021f1a5936462ba4ed666b40 Mon Sep 17 00:00:00 2001
From: dongyuzhen <dongyuzhen@h-partners.com>
Date: Fri, 24 May 2024 10:39:00 +0800
Subject: [PATCH] fix test case failure
The patching of zlib in openEuler with upstream bug fixes aligns its functionality with newer versions of zlib. However, the version number of zlib within openEuler remains unchanged, indicating the older version. Consequently, the test cases for perl-IO-Compress, which rely on the zlib version number to determine expected outcomes, will fail. To address this, perl-IO-Compress must be updated to accommodate the changes in zlib and remove the versioning-based checks from its test suite.
This bugfix commit for zlib in openEuler resulted in a change in its function behavior:
https://gitee.com/src-openeuler/zlib/pulls/46
---
t/cz-03zlib-v1.t | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/t/cz-03zlib-v1.t b/t/cz-03zlib-v1.t
index 73d7b89..3e5302e 100755
--- a/t/cz-03zlib-v1.t
+++ b/t/cz-03zlib-v1.t
@@ -704,14 +704,7 @@ EOM
# Z_STREAM_END returned by 1.12.2, Z_DATA_ERROR for older zlib
# always Z_STREAM_ENDin zlib_ng
- if (ZLIB_VERNUM >= ZLIB_1_2_12_0 || Compress::Raw::Zlib::is_zlibng)
- {
- cmp_ok $status, '==', Z_STREAM_END ;
- }
- else
- {
- cmp_ok $status, '==', Z_DATA_ERROR ;
- }
+ cmp_ok $status, '==', Z_STREAM_END ;
ok $Z . $GOT eq $goodbye ;
}
--
2.33.0

View File

@ -1,20 +1,17 @@
# Run time expensive tests
%bcond_with long_tests
%bcond_without long_tests
# Run optional test
%bcond_with perl_IO_Compress_enables_optional_test
%{?perl_default_filter}
Name: perl-IO-Compress
Version: 2.201
Release: 3
Version: 2.100
Release: 1
Summary: Read and write compressed data
License: GPL+ or Artistic
URL: https://metacpan.org/release/IO-Compress
Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/IO-Compress-%{version}.tar.gz
Patch0: fix-test-case-failure.patch
BuildArch: noarch
# Module Build
BuildRequires: coreutils findutils make perl-generators perl-interpreter
@ -72,7 +69,6 @@ Man pages and other related documents.
%prep
%setup -q -n IO-Compress-%{version}
%patch0 -p1
# Remove spurious exec permissions
chmod -c -x lib/IO/Uncompress/{Adapter/Identity,RawInflate}.pm
@ -113,21 +109,6 @@ make test COMPRESS_ZLIB_RUN_%{?with_long_tests:ALL}%{!?with_long_tests:MOST}=1
%{_mandir}/man3/IO::Uncompress::*.3*
%changelog
* Tue May 28 2024 dongyuzhen <dongyuzhen@h-partners.com> - 2.201-3
- add patch description
* Fri May 24 2024 dongyuzhen <dongyuzhen@h-partners.com> - 2.201-2
- fix test case failure
* Wed Nov 02 2022 dongyuzhen <dongyuzhen@h-partners.com> - 2.201-1
- upgrade version to 2.201
* Tue Jan 11 2022 tianwei <tianwei12@huawei.com> - 2.101-2
- skip long tests for check
* Tue Dec 21 2021 yuanxin <yuanxin24@huawei.com> - 2.101-1
- update version to 2.101
* Tue Apr 06 2021 SimpleUpdate Robot <tc@openeuler.org> - 2.100-1
- Upgrade to version 2.100