pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/file Adding a patch to allow compiling with g...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/21e8bc0aec54
branches:  trunk
changeset: 556430:21e8bc0aec54
user:      sno <sno%pkgsrc.org@localhost>
date:      Sat Mar 21 20:55:58 2009 +0000

description:
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@

diffstat:

 sysutils/file/Makefile         |   6 +++++-
 sysutils/file/distinfo         |   3 ++-
 sysutils/file/patches/patch-ab |  30 ++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 2 deletions(-)

diffs (66 lines):

diff -r 4abbc0d86163 -r 21e8bc0aec54 sysutils/file/Makefile
--- a/sysutils/file/Makefile    Sat Mar 21 20:26:34 2009 +0000
+++ b/sysutils/file/Makefile    Sat Mar 21 20:55:58 2009 +0000
@@ -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 @@
 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 -r 4abbc0d86163 -r 21e8bc0aec54 sysutils/file/distinfo
--- a/sysutils/file/distinfo    Sat Mar 21 20:26:34 2009 +0000
+++ b/sysutils/file/distinfo    Sat Mar 21 20:55:58 2009 +0000
@@ -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 -r 4abbc0d86163 -r 21e8bc0aec54 sysutils/file/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/file/patches/patch-ab    Sat Mar 21 20:55:58 2009 +0000
@@ -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
+ 



Home | Main Index | Thread Index | Old Index