Compare commits
10 Commits
75e99d11a2
...
35bdc1449d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35bdc1449d | ||
|
|
0e4a3d3eef | ||
|
|
ceabb763e6 | ||
|
|
5ec3cae8dd | ||
|
|
4764cab4f6 | ||
|
|
6b20ca5b39 | ||
|
|
5cb583463f | ||
|
|
f50c1b9061 | ||
|
|
1860ea1dbd | ||
|
|
a277487ae5 |
Binary file not shown.
BIN
IO-Compress-2.201.tar.gz
Normal file
BIN
IO-Compress-2.201.tar.gz
Normal file
Binary file not shown.
37
fix-test-case-failure.patch
Normal file
37
fix-test-case-failure.patch
Normal file
@ -0,0 +1,37 @@
|
||||
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
|
||||
|
||||
@ -1,17 +1,20 @@
|
||||
# Run time expensive tests
|
||||
%bcond_without long_tests
|
||||
%bcond_with long_tests
|
||||
# Run optional test
|
||||
%bcond_with perl_IO_Compress_enables_optional_test
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
Name: perl-IO-Compress
|
||||
Version: 2.100
|
||||
Release: 1
|
||||
Version: 2.201
|
||||
Release: 3
|
||||
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
|
||||
@ -69,6 +72,7 @@ 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
|
||||
@ -109,6 +113,21 @@ 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user