File: tests-version-skew.patch

package info (click to toggle)
libcompress-raw-zlib-perl 2.213-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,148 kB
  • sloc: ansic: 6,992; perl: 2,934; makefile: 11
file content (34 lines) | stat: -rw-r--r-- 1,213 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: avoid version skew issue in t/02zlib.t
 Avoid version comparison between build time and runtime version, as they
 might be different, and assume we always have >= 1.12.2 (true since
 bookworm).
Origin: vendor
Bug-Debian: https://bugs.debian.org/1024179
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2024-02-22

--- a/t/02zlib.t
+++ b/t/02zlib.t
@@ -489,7 +489,9 @@
 
     # Z_STREAM_END returned by 1.12.2, Z_DATA_ERROR for older zlib
     # ZLIB_NG has the fix for all versions
-    if (ZLIB_VERNUM >= ZLIB_1_2_12_0 ||  Compress::Raw::Zlib::is_zlibng)
+    # Debian: 1) avoid version skew compile time version and runtime version,
+    # and 2) we have >= 1.12.2 since bookworm
+    if (1)
     {
         cmp_ok $status, '==', Z_STREAM_END ;
     }
@@ -523,7 +525,9 @@
     $GOT = '';
     $status = $k->inflate($rest, $GOT);
     # Z_STREAM_END returned by 1.12.2, Z_DATA_ERROR for older zlib
-    if (ZLIB_VERNUM >= ZLIB_1_2_12_0 || Compress::Raw::Zlib::is_zlibng)
+    # Debian: 1) avoid version skew compile time version and runtime version,
+    # and 2) we have >= 1.12.2 since bookworm
+    if (1)
     {
         cmp_ok $status, '==', Z_STREAM_END ;
     }