public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH v2] core205: Ship gzip
@ 2026-09-24 16:33 Adolf Belka
  2026-09-24 16:33 ` [PATCH v2] gzip: Update to version 1.15 Adolf Belka
  0 siblings, 1 reply; 2+ messages in thread
From: Adolf Belka @ 2026-09-24 16:33 UTC (permalink / raw)
  To: development; +Cc: Adolf Belka

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/core/205/filelists/gzip | 1 +
 1 file changed, 1 insertion(+)
 create mode 120000 config/rootfiles/core/205/filelists/gzip

diff --git a/config/rootfiles/core/205/filelists/gzip b/config/rootfiles/core/205/filelists/gzip
new file mode 120000
index 000000000..aebcccd87
--- /dev/null
+++ b/config/rootfiles/core/205/filelists/gzip
@@ -0,0 +1 @@
+../../../common/gzip
\ No newline at end of file
-- 
2.55.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH v2] gzip: Update to version 1.15
  2026-09-24 16:33 [PATCH v2] core205: Ship gzip Adolf Belka
@ 2026-09-24 16:33 ` Adolf Belka
  0 siblings, 0 replies; 2+ messages in thread
From: Adolf Belka @ 2026-09-24 16:33 UTC (permalink / raw)
  To: development; +Cc: Adolf Belka

- This v2 version includes the patch to allow gzip-1.15 to build on aarch64
   Successful build confirmed on aarch64 builder.
- Update from version 1.14 to 1.15
- No change in rootfile
- Changelog
1.15
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.
Platforms no longer supported
  The following platforms (or earlier) are no longer supported because
   their old multibyte libraries do not work well enough: FreeBSD 4.11
   (2005), HP-UX 11.00 (1997), Minix 3.1.8 (2010), MS-Windows 8.1
   (2013) via mingw without UCRT.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 lfs/gzip                                      |  7 ++--
 ...id_failure_to_build_on_linux_aarch64.patch | 40 +++++++++++++++++++
 2 files changed, 44 insertions(+), 3 deletions(-)
 create mode 100644 src/patches/gzip-1.15_avoid_failure_to_build_on_linux_aarch64.patch

diff --git a/lfs/gzip b/lfs/gzip
index 8f036063d..73aea38e6 100644
--- a/lfs/gzip
+++ b/lfs/gzip
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2025  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2026  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -24,7 +24,7 @@
 
 include Config
 
-VER        = 1.14
+VER        = 1.15
 
 THISAPP    = gzip-$(VER)
 DL_FILE    = $(THISAPP).tar.xz
@@ -49,7 +49,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = 32f7241bd9f3b7f73a59905a5bc9abf4e360e787f692cbb00ad28d48abee52744846d10c07ce2f7aaa3e66bc4b6ab9cd4f1b8e98854bb7d1ec010ae0d5146932
+$(DL_FILE)_BLAKE2 = efa81df3df766502c5ffde551570b568c73d3b2ad0b2c76bd79b0ed5cea4deb5e0a3d803b942a078efdc4df9cde355863aadc51752498a9e7dec8737be559850
 
 install : $(TARGET)
 
@@ -79,6 +79,7 @@ $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+	cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/gzip-1.15_avoid_failure_to_build_on_linux_aarch64.patch
 	cd $(DIR_APP) && ./configure $(EXTRA_CONFIG)
 	cd $(DIR_APP) && make $(MAKETUNING)
 	cd $(DIR_APP) && make install
diff --git a/src/patches/gzip-1.15_avoid_failure_to_build_on_linux_aarch64.patch b/src/patches/gzip-1.15_avoid_failure_to_build_on_linux_aarch64.patch
new file mode 100644
index 000000000..fdcd6f391
--- /dev/null
+++ b/src/patches/gzip-1.15_avoid_failure_to_build_on_linux_aarch64.patch
@@ -0,0 +1,40 @@
+From b4ed8e73401968bcad749afb0e636dd3ec205ca7 Mon Sep 17 00:00:00 2001
+From: Jim Meyering <meyering@meta.com>
+Date: Mon, 21 Sep 2026 01:42:18 -0700
+Subject: [PATCH] build: avoid failure to build on linux aarch64
+
+* 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
+---
+ 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.55.0
+
-- 
2.55.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-24 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24 16:33 [PATCH v2] core205: Ship gzip Adolf Belka
2026-09-24 16:33 ` [PATCH v2] gzip: Update to version 1.15 Adolf Belka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox