From a3a61b68146f52970e6ddf66f637406d16275dc9 Mon Sep 17 00:00:00 2001 From: Rmys Date: Tue, 11 Nov 2025 12:29:13 +0300 Subject: [PATCH] xz zlib gzip zip rebuild --- system/base/zip/files/zip-3.0-time.patch | 11 +++++++++++ system/base/zip/files/zip-gnu89-build.patch | 15 +++++++++++++++ system/base/zip/pspec.xml | 2 ++ 3 files changed, 28 insertions(+) create mode 100644 system/base/zip/files/zip-3.0-time.patch create mode 100644 system/base/zip/files/zip-gnu89-build.patch diff --git a/system/base/zip/files/zip-3.0-time.patch b/system/base/zip/files/zip-3.0-time.patch new file mode 100644 index 00000000..f72fd16c --- /dev/null +++ b/system/base/zip/files/zip-3.0-time.patch @@ -0,0 +1,11 @@ +--- zip-2.31/unix/Makefile.time 2007-02-07 09:36:30.000000000 +0100 ++++ zip-2.31/unix/Makefile 2007-02-07 09:38:42.000000000 +0100 +@@ -24,7 +24,7 @@ + E = + + # probably can change this to 'install' if you have it +-INSTALL_PROGRAM = cp ++INSTALL_PROGRAM = cp -p + # probably can change this to 'install -d' if you have it + # XXX NextStep 3.3 and Openstep 4.x don't know about -p ! + INSTALL_D = mkdir -p diff --git a/system/base/zip/files/zip-gnu89-build.patch b/system/base/zip/files/zip-gnu89-build.patch new file mode 100644 index 00000000..65ee7a76 --- /dev/null +++ b/system/base/zip/files/zip-gnu89-build.patch @@ -0,0 +1,15 @@ +zip uses C89-only features, so it needs to be built in C89 mode. + +diff --git a/unix/Makefile b/unix/Makefile +index 86cf54bf0f56cea9..244390893eab5fc6 100644 +--- a/unix/Makefile ++++ b/unix/Makefile +@@ -202,7 +202,7 @@ generic: flags + eval $(MAKE) $(MAKEF) zips `cat flags` + + generic_gcc: +- $(MAKE) $(MAKEF) generic CC=gcc CPP="gcc -E" ++ $(MAKE) $(MAKEF) generic CC="gcc -std=gnu89" CPP="gcc -E" + + # AT&T 6300 PLUS (don't know yet how to allocate 64K bytes): + att6300nodir: diff --git a/system/base/zip/pspec.xml b/system/base/zip/pspec.xml index 9dd823d5..8d5eb5f9 100644 --- a/system/base/zip/pspec.xml +++ b/system/base/zip/pspec.xml @@ -18,6 +18,8 @@ zip-3.0-exec-shield.patch zip-3.0-format-security.patch zipnote.patch + zip-3.0-time.patch + zip-gnu89-build.patch