Your message dated Mon, 17 Aug 2026 02:33:49 +0000
with message-id <[email protected]>
and subject line Bug#1137242: fixed in gzip 1.14-1
has caused the Debian Bug report #1137242,
regarding gzip: new autopkgtests for manpage-documented behavior
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1137242: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1137242
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gzip
Version: 1.14-1~exp2ubuntu1
Severity: wishlist
X-Debbugs-Cc: [email protected]

Dear Maintainer,

Right now, the autopkgtests for gzip are very simple, just a roundtrip 
compress/decompress
of an extremely trivial file. The attached patch (forwarding upstream from 
Ubuntu) adds a
some more tests for more advanced usage (mutlifile (re)compression and envar 
support).

-- System Information:
Debian Release: forky/sid
  APT prefers resolute-updates
  APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 
'resolute')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.0-15-generic (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gzip depends on:
ii  libc6  2.43-2ubuntu2

gzip recommends no packages.

Versions of packages gzip suggests:
ii  less  668-1build1

-- no debconf information
diff --git a/debian/tests/advanced-usage-gzip b/debian/tests/advanced-usage-gzip
new file mode 100755
index 0000000..867fc33
--- /dev/null
+++ b/debian/tests/advanced-usage-gzip
@@ -0,0 +1,63 @@
+#!/bin/bash
+
+# Tests the "advanced usage" section of the manpage, namely:
+# 1. compression of multiple files one after another (exit code 3 on failure)
+# 2. compression of multiple files at once (exit code 4 on failure)
+# 3. setting gzip parameters with environment variables (exit code 5 on 
failure)
+
+# Set command as an envvar so that this test can be used for other gzip 
implementations
+export ZIP=gzip
+export UNZIP=gunzip
+
+# Some nontrivial files
+export A=debian/changelog
+export B=ChangeLog
+
+
+# Test multi-file concatenation
+$ZIP -c $A > multi.gz
+$ZIP -c $B >> multi.gz
+
+cat $A $B > rawcat.txt
+$UNZIP -c multi.gz > multiout.txt
+
+if cmp -s rawcat.txt multiout.txt; then
+       echo "Multi-file concatenation passed."
+else
+       echo "ERROR: MULTI-FILE COMPRESSION FAILED"
+       exit 3
+fi
+
+# Test multi-file recompression
+# (does compressing together give equal results to compressing one at a time 
then recompressing?)
+cat $A $B | $ZIP > oneshot.gz
+$ZIP -cd multi.gz | $ZIP > remulti.gz
+
+if cmp -s oneshot.gz remulti.gz; then
+       echo "Multi-file recompression passed."
+else
+       echo "ERROR: MULTI-FILE RECOMPRESSION FAILED"
+       exit 4
+fi
+
+# Cleanup
+rm multi.gz rawcat.txt multiout.txt oneshot.gz remulti.gz
+
+# Test envvar reading (this is deprecated yet still well documented, so still 
merits an inclusion)
+# Will loop through compression levels 1 to 9 to verify
+
+FILE_FLAG="file_flag.gz"
+FILE_ENV="file_env.gz"
+
+for level in {1..9}; do
+    $ZIP -"$level" -c "$A" > "$FILE_FLAG"
+    GZIP=-"$level" $ZIP -c "$A" > "$FILE_ENV"
+
+    if ! cmp -s "$FILE_FLAG" "$FILE_ENV"; then
+        echo "ERROR: Env/Flag Mismatch detected at compression level -$level!" 
>&2
+        exit 5
+    fi
+
+    rm -f "$FILE_FLAG" "$FILE_ENV"
+done
+echo "GZIP envvar test passed."
diff --git a/debian/tests/control b/debian/tests/control
index ad73a0d..d4cc1cf 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,2 @@
-Tests: simple-gzip
+Tests: simple-gzip, advanced-usage-gzip
 Depends: gzip
diff --git a/debian/tests/simple-gzip b/debian/tests/simple-gzip
index 2f09030..c3e28c3 100755
--- a/debian/tests/simple-gzip
+++ b/debian/tests/simple-gzip
@@ -1,11 +1,59 @@
-#!/bin/sh
+#!/bin/bash
 
 set -e
 
+# Set command as an envvar so that this test can be used for other gzip 
implementations
+export ZIP=gzip
+export UNZIP=gunzip
+
+check_gzip_roundtrip() {
+    local file="$1"
+
+    if [[ ! -f "$file" ]]; then
+        echo "Error: file '$file' does not exist"
+        return 1
+    fi
+
+    local orig="${file}.orig"
+    local gz="${file}.gz"
+
+    cp "$file" "$orig" || return 1
+
+    $ZIP "$file" || {
+        echo "Error: compression failed"
+        rm -f "$orig"
+        return 1
+    }
+
+    $ZIP -l "$gz"
+
+    $UNZIP "$gz" || {
+        echo "Error: decompression failed"
+        rm -f "$orig"
+        return 1
+    }
+
+    if ! cmp -s "$file" "$orig"; then
+        echo "Error: decompressed file does not match original ($file)"
+        rm -f "$file" "$orig"
+        return 1
+    fi
+
+    echo "Success: decompressed file matches original ($file)"
+
+    rm -f "$file" "$orig"
+}
+
+# Test roundtrip compression of a few files
+
+# Trivial
 echo "Blablablablablablablablablablablablablabla" > bla.file
-cp bla.file bla.file.orig
-gzip bla.file
-gzip -l bla.file.gz
-gunzip bla.file.gz
-cmp bla.file bla.file.orig
-rm bla.file bla.file.orig
+check_gzip_roundtrip bla.file
+
+# Largeish file, bad compression ratio
+dd if=/dev/urandom of=random_data.bin bs=1M count=10 status=none
+check_gzip_roundtrip random_data.bin
+
+# Largeish file, good compression ratio
+cp debian/changelog changelog_f
+check_gzip_roundtrip changelog_f

--- End Message ---
--- Begin Message ---
Source: gzip
Source-Version: 1.14-1
Done: Milan Kupcevic <[email protected]>

We believe that the bug you reported is fixed in the latest version of
gzip, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Milan Kupcevic <[email protected]> (supplier of updated gzip package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 16 Aug 2026 21:14:53 -0400
Source: gzip
Architecture: source
Version: 1.14-1
Distribution: sid
Urgency: medium
Maintainer: Milan Kupcevic <[email protected]>
Changed-By: Milan Kupcevic <[email protected]>
Closes: 513754 1137242 1141442 1141443
Changes:
 gzip (1.14-1) sid; urgency=medium
 .
   [ Milan Kupcevic ]
   * new upstream release
     - gzexe, zdiff, zgrep: Switch scripts from using `type` to
     `command -v` to support non-XSI, closes: #513754
   * cherry-pick upstream uninitialized read fix
   * d/p/CVE-2026-41991-a.patch, d/p/CVE-2026-41991-b.patch: use -C if
     lacking mktemp, closes: #1141442, CVE-2026-41991
   * d/p/CVE-2026-41992.patch: gzip: don’t mishandle .lzh after .Z,
     closes: #1141443, CVE-2026-41992
   * d/control: comply to standards version 4.7.4
 .
   [ Grayson Wolf ]
   * add more complex autopkgtest scripts, closes: #1137242
 .
 gzip (1.14-1~exp2) experimental; urgency=medium
 .
   * d/rules: configure set /bin/sh and grep; autoreconf cleanup
 .
 gzip (1.14-1~exp1) experimental; urgency=medium
 .
   * new upstream release
 .
 gzip (1.13.56~e549-1~exp1) experimental; urgency=medium
 .
   * new upstream release
   * d/patches: quilt refresh
   * d/copyright: update
   * d/rules: use debhelper leverage
   * d/control: comply to standards version 4.7.2
   * d/patches/disable-Werror.patch: drop
Checksums-Sha1:
 069e4182547a4721f4c6493ed681fea29c98ba99 1908 gzip_1.14-1.dsc
 2c4407eec3693261616b7e93524d82a187222104 22540 gzip_1.14-1.debian.tar.xz
 c316bb9a31481b986622d589da16a910b8e4836c 5983 gzip_1.14-1_amd64.buildinfo
Checksums-Sha256:
 8c02e8f12a2f9f45db2fe4de1a65900f47311c2d1e49f839b00172d9c420ef03 1908 
gzip_1.14-1.dsc
 f3e0edcb4092dbcf62ff0b7ac068fddb4ba7b644c55edf005b25415f9d9ce628 22540 
gzip_1.14-1.debian.tar.xz
 7343425201cca344aa5396dac2b3f37bb1aa0f8e0e59fc2547703b7f483e34ca 5983 
gzip_1.14-1_amd64.buildinfo
Files:
 516cc7357bbd0bcfd3134417dd261c7b 1908 utils required gzip_1.14-1.dsc
 66c7b0b60b823b3b6cde7abb662e5e02 22540 utils required gzip_1.14-1.debian.tar.xz
 fe885667f28ef226379927544a740d24 5983 utils required 
gzip_1.14-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQHFBAEBCgAvFiEEVkf/m69krCYf+z+G6e1ngbRVCQ4FAmqCbvoRHG1pbGFuQGRl
Ymlhbi5vcmcACgkQ6e1ngbRVCQ56DgwAyGcHYaF1vUAC9oZm4jo4QIOgpfhk/CXS
Ie32KgRKuuHKQy/pRvEvi6V0cOvUO6rqm5qozz11zJsrotrTzJoPcpNDdYQgCaik
tts5rCqiCOQ16RbjLPj/8ATaWzMQwciLpKgv+PbaNVXeph6eSMfuK8MporIYTSpb
FqLn6WElBFU5XjwLfM27qjO/UBeLfP3FmKEH6R7KxxO6eOi+35qcu0MKMYs+3bSE
zDDDwtXuSoviQpKM+P0XgaspTYM4nt1uynm41LHQu12UXi40bcafDBvXnFrRLkpT
pDkpvd+7SZxhIFxjyqw5dK9qsm2XjnTDyyqY7WrDZRbmpmgoQysKmVU5d+P/CEFJ
EaonVh/dsYmU42YWQ5al9XcQodlQes1/vGYe1F8X99y7IovXlPwI2dfxwVXA6m84
4uh+pQKituqIIsJ6wdhsEY/BD9B95oED2TkV+J48wTXVI+69uxKM0uN3+pGCiXjK
F78M4k+S2YyULOiu/pE3EB/ZC04LHpCo
=aewa
-----END PGP SIGNATURE-----

Attachment: pgpE3Swm8ghkH.pgp
Description: PGP signature


--- End Message ---

Reply via email to