diff options
author | sno <sno@pkgsrc.org> | 2009-03-21 20:55:58 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2009-03-21 20:55:58 +0000 |
commit | fc65f837ca25393f698becb7aceef7e07ef7b669 (patch) | |
tree | 19f5e8c41929717316b44a8b59b65814a8de3ea6 | |
parent | 7c7eca00d60d049f727dcbe809fb27730bf1ccea (diff) | |
download | pkgsrc-fc65f837ca25393f698becb7aceef7e07ef7b669.tar.gz |
Adding a patch to allow compiling with gcc incompatible compilers
and enabling LINUX_COMPAT on AIX (file-5.00 requires it, because it
allocates 0 bytes)
Oked by he@
-rw-r--r-- | sysutils/file/Makefile | 6 | ||||
-rw-r--r-- | sysutils/file/distinfo | 3 | ||||
-rw-r--r-- | sysutils/file/patches/patch-ab | 30 |
3 files changed, 37 insertions, 2 deletions
diff --git a/sysutils/file/Makefile b/sysutils/file/Makefile index 735711e4f6d..fa837c57810 100644 --- a/sysutils/file/Makefile +++ b/sysutils/file/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2009/03/10 23:30:00 he Exp $ +# $NetBSD: Makefile,v 1.21 2009/03/21 20:55:58 sno Exp $ DISTNAME= file-5.00 CATEGORIES= sysutils @@ -29,6 +29,10 @@ TEST_TARGET= check BUILDLINK_TRANSFORM+= rename:-Wextra:-W .endif +.if ${LOWER_OPSYS} == "aix" +CFLAGS+= -D_LINUX_SOURCE_COMPAT +.endif + .include "../../devel/zlib/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/file/distinfo b/sysutils/file/distinfo index ff7bf7f7350..bdfa45cb9c5 100644 --- a/sysutils/file/distinfo +++ b/sysutils/file/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.10 2009/03/10 23:30:00 he Exp $ +$NetBSD: distinfo,v 1.11 2009/03/21 20:55:58 sno Exp $ SHA1 (file-5.00.tar.gz) = e58033dfefa44782aa34155751ce88c86c4c1244 RMD160 (file-5.00.tar.gz) = 840170735f4b7478093da46fee521df9b1082bdc Size (file-5.00.tar.gz) = 600905 bytes SHA1 (patch-aa) = 10af71d97693e50d99533c15b6461d5ce680ca5f +SHA1 (patch-ab) = 614f3be95bf9f79a91de94b8579d8b6953f17cfe diff --git a/sysutils/file/patches/patch-ab b/sysutils/file/patches/patch-ab new file mode 100644 index 00000000000..eca94092749 --- /dev/null +++ b/sysutils/file/patches/patch-ab @@ -0,0 +1,30 @@ +$NetBSD: patch-ab,v 1.1 2009/03/21 20:55:58 sno Exp $ + +If $gcc is unset, original comparisation fails badly +regardless 'if test = no' or 'if test "" = no' + +--- configure.orig 2009-02-03 20:16:11.000000000 +0000 ++++ configure 2009-03-11 07:34:46.000000000 +0000 +@@ -23934,17 +23934,17 @@ + fi + else + +-if test $GCC = no; then +- WARNINGS= +- { echo "$as_me:$LINENO: result: no" >&5 +-echo "${ECHO_T}no" >&6; } +-else ++if test "$GCC" = yes; then + { echo "$as_me:$LINENO: result: yes" >&5 + echo "${ECHO_T}yes" >&6; } + WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ + -Wmissing-declarations -Wredundant-decls -Wnested-externs \ + -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ + -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter" ++else ++ WARNINGS= ++ { echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6; } + fi + fi + |