pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gzip: use upstream patch instead of compiler flag



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Sun Jun 14 20:09:47 2026 +0200
Changeset:	582f9b1ba16499b24733e70396378777cbd7f63f

Modified Files:
	gzip/Makefile
	gzip/distinfo
Added Files:
	gzip/patches/patch-lib_utimens.h

Log Message:
gzip: use upstream patch instead of compiler flag

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=582f9b1ba16499b24733e70396378777cbd7f63f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gzip/Makefile                    |  3 ---
 gzip/distinfo                    |  1 +
 gzip/patches/patch-lib_utimens.h | 19 +++++++++++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diffs:
diff --git a/gzip/Makefile b/gzip/Makefile
index dc9bdc7988..623f89e2f2 100644
--- a/gzip/Makefile
+++ b/gzip/Makefile
@@ -16,7 +16,4 @@ MAKE_FLAGS+=	manlinks=so
 INFO_FILES=	yes
 CHECK_PERMS=	no	# can't depend on checkperms; its distfile is gzipped
 
-# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81231
-CFLAGS+=	-Wno-implicit-function-declaration
-
 .include "../../mk/bsd.pkg.mk"
diff --git a/gzip/distinfo b/gzip/distinfo
index 03a9abf43b..678f095478 100644
--- a/gzip/distinfo
+++ b/gzip/distinfo
@@ -3,3 +3,4 @@ $NetBSD: distinfo,v 1.13 2022/04/08 06:24:00 wiz Exp $
 BLAKE2s (gzip-1.14.tar.gz) = 5de6cb26d527288b50752441a56f4665fde652ea3460ee0b238ebe1b8ac98b44
 SHA512 (gzip-1.14.tar.gz) = 65db6f01d982a976c431d33e9725dab84fcb991c9603cb2a492a2d578a58f9ac03a14ade4b91af49e9e877d81afec61dea563cf1e599f5b2eee2087613a2d368
 Size (gzip-1.14.tar.gz) = 1369513 bytes
+SHA1 (patch-lib_utimens.h) = fba5ec8e9fcb87642247a68ee6a4568a00d4f413
diff --git a/gzip/patches/patch-lib_utimens.h b/gzip/patches/patch-lib_utimens.h
new file mode 100644
index 0000000000..11f25ac760
--- /dev/null
+++ b/gzip/patches/patch-lib_utimens.h
@@ -0,0 +1,19 @@
+$NetBSD$
+
+* lib/utimens.h [HAVE_UTIMENS || HAVE_LUTIMENS]: Include <sys/stat.h>
+instead of <sys/time.h> for the declarations of these functions on
+NetBSD.
+
+https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81231
+
+--- lib/utimens.h.orig	2026-06-14 18:08:28.940590875 +0000
++++ lib/utimens.h
+@@ -25,7 +25,7 @@
+ #include <time.h>
+ 
+ #if HAVE_UTIMENS || HAVE_LUTIMENS
+-# include <sys/time.h>
++# include <sys/stat.h>
+ #endif
+ 
+ #ifdef __cplusplus


Home | Main Index | Thread Index | Old Index