Bug#1026753: libio-compress-perl: FTBFS: dh_auto_test: error: make -j8 test TEST_VERBOSE=1 returned exit code 2

gregor herrmann gregoa at debian.org
Fri Dec 23 16:06:38 GMT 2022


On Tue, 20 Dec 2022 20:27:02 +0100, gregor herrmann wrote:

> > > #     Failed test (t/cz-03zlib-v1.t at line 713)
> > > #          got: 1
> > > #     expected: -3
> > > # Looks like you failed 1 test of 471.
> > > t/cz-03zlib-v1.t ................ 
> > > 1..471
> 
> I think this has to do with zlib1g-dev 1:1.2.13.dfsg-1 and
> libcompress-raw-zlib-perl and (a bit)
> https://github.com/pmqs/Compress-Raw-Zlib/issues/20
> 
> If I rebuild libcompress-raw-zlib-perl (against zlib 1.2.13) and then
> rebuild libio-compress-perl, its tests pass.
> 
> 
> PS: This also reminds me that #1024179 in libcompress-raw-zlib-perl
> is still not closed.


And using the same patch as in #1024179 als make this test here pass:

#v+
--- a/t/cz-03zlib-v1.t
+++ b/t/cz-03zlib-v1.t
@@ -14,7 +14,8 @@
 use CompTestUtils;
 use Symbol;
 
-use constant ZLIB_1_2_12_0 => 0x12C0;
+use constant ZLIB_1_2_12_0 => '1.2.12';
+my $Zlib_ver = Compress::Raw::Zlib::zlib_version ;
 
 BEGIN
 {
@@ -704,7 +705,7 @@
 
     # 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)
+    if ($Zlib_ver gt ZLIB_1_2_12_0 || Compress::Raw::Zlib::is_zlibng)
     {
         cmp_ok $status, '==', Z_STREAM_END ;
     }
#v-

Does this make sense?


Cheers,
gregor


-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20221223/1050034a/attachment.sig>


More information about the pkg-perl-maintainers mailing list