gzip: upgrade 1.14 -> 1.15
PATCH 1/1 gzip: upgrade 1.14 -> 1.15
Upstream release notes:
** Bug fixes
gzip no longer can mistakenly remove the wrong file if some other process simultaneously renames a gzip destination's ancestor. [bug present since the beginning]
gzip -d no longer rejects PKZIP signatures, local header, and data descriptors. These can appear in well-formed streamed zip files. [bug present since the beginning]
gzip diagnostics now quote file names containing unusual characters. [bug present since the beginning]
A use of uninitialized memory on some malformed inputs has been fixed. [bug present since the beginning]
A buffer overflow has been fixed when decompressing an .lzh file after decompressing a .Z file.
[bug present since the beginning]
When decompressing an .lzh file, the output is no longer corrupted when an internal bit buffer is not properly cleared. [bug present since the beginning]
When decompressing an .lzh file after another .lzh file, the output is no longer corrupted by the previous file's decoding table. [bug present since the beginning]
gzip --synchronous no longer fails to synchronize unreadable parent directories on platforms like GNU/Linux that have O_PATH, or to synchronize any parent directories on platforms like FreeBSD that have O_SEARCH but not O_PATH.
[bug introduced in gzip-1.7]
On old-fashioned or limited platforms lacking mktemp, gzexe, zdiff and znew no longer have a race when creating a temporary file. [bug present since the beginning]
** Changes in behavior
gzip no longer insists on the "C" locale; instead, it follows the typical practice of using the locale specified by the environment. This change, which is needed for file name quoting, can affect the format of floating-point numbers output by gzip's -l and -v options. Diagnostics are still in English, though.
gzip -l now reports "-Inf%" instead of "0.0%" for the infinite compression ratio of an empty file.
znew's -P option is now ignored, with a warning. It was present only to improve performance, and its implementation had too many bugs to be worth supporting.
Drop two CVE patches that were backports.
Add a patch from upstream to fix the build for aarch64.
Consolidate patches into a single directory instead of split between gzip-{PV}/ and files/.
---
...id-failure-to-build-on-linux-aarch64.patch | 44 ++++++++++
.../{gzip-1.14 => files}/wrong-path-fix.patch | 0
.../gzip/gzip-1.14/CVE-2026-41991.patch | 86 -------------------
.../gzip/gzip-1.14/CVE-2026-41992.patch | 64 --------------
.../gzip/{gzip_1.14.bb => gzip_1.15.bb} | 5 +-
5 files changed, 46 insertions(+), 153 deletions(-)
create mode 100644 meta/recipes-extended/gzip/files/0001-build-avoid-failure-to-build-on-linux-aarch64.patch
rename meta/recipes-extended/gzip/{gzip-1.14 => files}/wrong-path-fix.patch (100%)
delete mode 100644 meta/recipes-extended/gzip/gzip-1.14/CVE-2026-41991.patch
delete mode 100644 meta/recipes-extended/gzip/gzip-1.14/CVE-2026-41992.patch
rename meta/recipes-extended/gzip/{gzip_1.14.bb => gzip_1.15.bb} (90%)meta/recipes-extended/gzip/files/0001-build-avoid-failure-to-build-on-linux-aarch64.patch new file +44 -0
@@ -0,0 +1,44 @@ +From b4ed8e73401968bcad749afb0e636dd3ec205ca7 Mon Sep 17 00:00:00 2001 +From: Jim Meyering <[email protected]> +Date: Mon, 21 Sep 2026 01:42:18 -0700 +Subject: [PATCH] build: avoid failure to build on linux aarch64 +X-ARM-No-Footer: NoDisclaimer + +* gzip.c: Include gzip.h only after all system headers. +gzip.h's "head" definition affected a subsequent signal.h- +included system struct member named "head". +Reported by Adam Sampson in https://bugs.gnu.org/81904 + +Upstream-Status: Backport [gzip b4ed8e73401968bcad749afb0e636dd3ec205ca7] +Signed-off-by: Ross Burton <[email protected]> +--- + gzip.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/gzip.c b/gzip.c +index 220f6fc..6c0af7f 100644 +--- a/gzip.c ++++ b/gzip.c +@@ -58,7 +58,6 @@ static char const license_msg[] = + + #include "tailor.h" + +-#include "gzip.h" + #include "lzw.h" + #include "revision.h" + #include "version.h" +@@ -99,6 +98,11 @@ static char const license_msg[] = + # include <utimens.h> + #endif + ++/* Include this only after all system headers. Otherwise, its definition ++ of "head" conflicts with member names in linux-headers 7.2.6's ++ asm/sigcontext.h pulled in via <signal.h>. */ ++#include "gzip.h" ++ + #ifndef MAX_PATH_LEN + # define MAX_PATH_LEN 1024 /* max pathname length */ + #endif +-- +2.43.0 +
meta/recipes-extended/gzip/files/wrong-path-fix.patch renamed from meta/recipes-extended/gzip/gzip-1.14/wrong-path-fix.patch +0 -0
meta/recipes-extended/gzip/gzip-1.14/CVE-2026-41991.patch deleted +0 -86
86 lines not on this page · raw message
meta/recipes-extended/gzip/gzip-1.14/CVE-2026-41992.patch deleted +0 -64
64 lines not on this page · raw message
meta/recipes-extended/gzip/gzip_1.15.bb renamed from meta/recipes-extended/gzip/gzip_1.14.bb +2 -3
@@ -6,8 +6,7 @@ LICENSE = "GPL-3.0-or-later" SRC_URI = "${GNU_MIRROR}/gzip/${BP}.tar.gz \ file://run-ptest \ - file://CVE-2026-41992.patch \ - file://CVE-2026-41991.patch \ + file://0001-build-avoid-failure-to-build-on-linux-aarch64.patch \ " SRC_URI:append:class-target = " file://wrong-path-fix.patch"
@@ -42,4 +41,4 @@ do_install_ptest() { ${B}/tests/Makefile > ${D}${PTEST_PATH}/src/tests/Makefile } -SRC_URI[sha256sum] = "613d6ea44f1248d7370c7ccdeee0dd0017a09e6c39de894b3c6f03f981191c6b" +SRC_URI[sha256sum] = "545886cf57fa88a65e967fbf705903d7fcb2567c82c7342493e82e8d7b1a210b"
Signature · 1 line
2.43.0