From 89240070cb738d8792f863aa0ab107088201190c Mon Sep 17 00:00:00 2001 From: naddy Date: Tue, 3 Dec 2013 21:18:50 +0000 Subject: [PATCH] * timeb was already well deprecated on 4.4BSD * regen patches --- archivers/unzip/patches/patch-unix_Makefile | 16 ++++++++-------- archivers/unzip/patches/patch-unix_unxcfg_h | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 archivers/unzip/patches/patch-unix_unxcfg_h diff --git a/archivers/unzip/patches/patch-unix_Makefile b/archivers/unzip/patches/patch-unix_Makefile index cd470e6c1f4..72eaefce4b1 100644 --- a/archivers/unzip/patches/patch-unix_Makefile +++ b/archivers/unzip/patches/patch-unix_Makefile @@ -1,6 +1,6 @@ -$OpenBSD: patch-unix_Makefile,v 1.3 2004/06/24 21:35:15 sturm Exp $ ---- unix/Makefile.orig Mon Mar 1 10:37:24 2004 -+++ unix/Makefile Thu Jun 24 15:28:24 2004 +$OpenBSD: patch-unix_Makefile,v 1.4 2013/12/03 21:18:50 naddy Exp $ +--- unix/Makefile.orig Sun Jan 18 23:41:18 2009 ++++ unix/Makefile Tue Dec 3 21:58:13 2013 @@ -42,8 +42,8 @@ # such as -DDOSWILD). @@ -10,9 +10,9 @@ $OpenBSD: patch-unix_Makefile,v 1.3 2004/06/24 21:35:15 sturm Exp $ +#CC = cc# try using "gcc" target rather than changing this (CC and LD +#LD = $(CC)# must match, else "unresolved symbol: ___main" is possible) AS = as - LOC = $(LOCAL_UNZIP) + LOC = $(D_USE_BZ2) $(LOCAL_UNZIP) AF = $(LOC) -@@ -61,8 +61,8 @@ FL2 = $(LF2) +@@ -64,8 +64,8 @@ FL2 = $(LF2) # general-purpose stuff #CP = cp @@ -23,7 +23,7 @@ $OpenBSD: patch-unix_Makefile,v 1.3 2004/06/24 21:35:15 sturm Exp $ RM = rm -f CHMOD = chmod BINPERMS = 755 -@@ -449,19 +449,17 @@ svr4package: unzips +@@ -448,19 +448,17 @@ svr4package: unzips @echo " " install: $(MANS) @@ -53,8 +53,8 @@ $OpenBSD: patch-unix_Makefile,v 1.3 2004/06/24 21:35:15 sturm Exp $ uninstall: $(RM) $(INSTALLEDBIN) $(INSTALLEDMAN) -@@ -569,8 +567,6 @@ generic_shlib: unix_make - $(MAKE) objsdll CC=gcc CF="-O3 -Wall -I. -fPIC -DDLL -DUNIX $(LOC)" +@@ -597,8 +595,6 @@ generic_shlib: unix_make + $(MAKE) objsdll CC=gcc CFLAGS="-O3 -Wall -fPIC -DDLL" gcc -shared -Wl,-soname,libunzip.so.0 -o libunzip.so.0.4 $(OBJSDLL) $(RM) libunzip.so.0 libunzip.so - $(LN) -s libunzip.so.0.4 libunzip.so.0 diff --git a/archivers/unzip/patches/patch-unix_unxcfg_h b/archivers/unzip/patches/patch-unix_unxcfg_h new file mode 100644 index 00000000000..762322c8be5 --- /dev/null +++ b/archivers/unzip/patches/patch-unix_unxcfg_h @@ -0,0 +1,14 @@ +$OpenBSD: patch-unix_unxcfg_h,v 1.1 2013/12/03 21:18:50 naddy Exp $ +--- unix/unxcfg.h.orig Thu Apr 16 20:36:12 2009 ++++ unix/unxcfg.h Tue Dec 3 22:06:23 2013 +@@ -111,7 +111,9 @@ typedef struct stat z_stat; + + #ifdef BSD + # include +-# include ++# ifndef BSD4_4 ++# include ++# endif + # if (defined(_AIX) || defined(__GLIBC__) || defined(__GNU__)) + # include + # endif