pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gawk Fix build under darwin anf gcc4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c0e7a111943
branches:  trunk
changeset: 498956:9c0e7a111943
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Tue Sep 06 14:29:17 2005 +0000

description:
Fix build under darwin anf gcc4
Patches taken from darwinports (thanks toby)

diffstat:

 lang/gawk/distinfo         |   4 +++-
 lang/gawk/patches/patch-ac |  22 ++++++++++++++++++++++
 lang/gawk/patches/patch-ad |  12 ++++++++++++
 3 files changed, 37 insertions(+), 1 deletions(-)

diffs (55 lines):

diff -r 31a52434e48d -r 9c0e7a111943 lang/gawk/distinfo
--- a/lang/gawk/distinfo        Tue Sep 06 14:23:40 2005 +0000
+++ b/lang/gawk/distinfo        Tue Sep 06 14:29:17 2005 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.16 2005/09/05 16:58:22 wiz Exp $
+$NetBSD: distinfo,v 1.17 2005/09/06 14:29:17 tonio Exp $
 
 SHA1 (gawk-3.1.5.tar.bz2) = 0d5694461f1c32f1eae41a1c0d7ba0939b47e369
 RMD160 (gawk-3.1.5.tar.bz2) = 8eae0f173fcb344f97d811fa5bb5fd390a76b886
 Size (gawk-3.1.5.tar.bz2) = 1756783 bytes
 SHA1 (patch-ab) = 39a98bd71349e2eb7ac7c6bb67cb2b8617fda6bd
+SHA1 (patch-ac) = 0880bfab2202fd9cdca64f2082af1d7741e5a9a1
+SHA1 (patch-ad) = 9f0eda730720deefaba2f0a62362997dc95e003f
diff -r 31a52434e48d -r 9c0e7a111943 lang/gawk/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gawk/patches/patch-ac        Tue Sep 06 14:29:17 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.8 2005/09/06 14:29:17 tonio Exp $
+
+--- hard-locale.h.orig 2005-05-11 17:28:16.000000000 +0200
++++ hard-locale.h
+@@ -22,6 +22,8 @@
+    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
+ 
+ 
++static ptr_t xmalloc PARAMS ((size_t n));
++
+ /* Return nonzero if the current CATEGORY locale is hard, i.e. if you
+    can't get away with assuming traditional C or POSIX behavior.  */
+ static int
+@@ -40,8 +42,6 @@ hard_locale (int category)
+       if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0)
+       hard = 0;
+ # else
+-      static ptr_t xmalloc PARAMS ((size_t n));
+-
+       char *locale = xmalloc (strlen (p) + 1);
+       strcpy (locale, p);
+ 
diff -r 31a52434e48d -r 9c0e7a111943 lang/gawk/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gawk/patches/patch-ad        Tue Sep 06 14:29:17 2005 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.3 2005/09/06 14:29:17 tonio Exp $
+
+--- dfa.c.orig 2005-07-26 20:07:43.000000000 +0200
++++ dfa.c
+@@ -122,7 +122,6 @@ extern void free();
+ static void dfamust PARAMS ((struct dfa *dfa));
+ 
+ static ptr_t xcalloc PARAMS ((size_t n, size_t s));
+-static ptr_t xmalloc PARAMS ((size_t n));
+ static ptr_t xrealloc PARAMS ((ptr_t p, size_t n));
+ #ifdef DEBUG
+ static void prtok PARAMS ((token t));



Home | Main Index | Thread Index | Old Index