pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/flex Add GNU realloc.c, needed because of AC_FUN...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b5f534bc6c1
branches:  trunk
changeset: 538948:5b5f534bc6c1
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Feb 21 18:57:46 2008 +0000

description:
Add GNU realloc.c, needed because of AC_FUNC_REALLOC.
Will file a bug upstream.

diffstat:

 devel/flex/distinfo         |   4 +++-
 devel/flex/patches/patch-aa |  37 +++++++++++++++++++++++++++++++++++++
 devel/flex/patches/patch-ab |  13 +++++++++++++
 3 files changed, 53 insertions(+), 1 deletions(-)

diffs (70 lines):

diff -r 47429bab214e -r 5b5f534bc6c1 devel/flex/distinfo
--- a/devel/flex/distinfo       Thu Feb 21 18:26:05 2008 +0000
+++ b/devel/flex/distinfo       Thu Feb 21 18:57:46 2008 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.7 2008/02/21 18:26:05 tnn Exp $
+$NetBSD: distinfo,v 1.8 2008/02/21 18:57:46 tnn Exp $
 
 SHA1 (flex-2.5.34.tar.gz) = b82c6baaeebf0ec84504e5b16751930ae06583e6
 RMD160 (flex-2.5.34.tar.gz) = eecc06d453fc450c400beb4e72b50b3251e80b68
 Size (flex-2.5.34.tar.gz) = 1453805 bytes
+SHA1 (patch-aa) = 938335a9071be62f534bad8e785003318816fd38
+SHA1 (patch-ab) = 84e8f679973ffa298391bfe20215f5c6878ed65e
diff -r 47429bab214e -r 5b5f534bc6c1 devel/flex/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/flex/patches/patch-aa       Thu Feb 21 18:57:46 2008 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.3 2008/02/21 18:57:46 tnn Exp $
+
+--- /dev/null  2008-02-21 19:43:14.000000000 +0100
++++ realloc.c
+@@ -0,0 +1,32 @@
++/* rpl_realloc.c -- a replacement for broken realloc implementations
++   Copyright (C) 2001 Free Software Foundation, Inc.
++
++   This program is free software; you can redistribute it and/or modify
++   it under the terms of the GNU General Public License as published by
++   the Free Software Foundation; either version 2, or (at your option)
++   any later version.
++
++   This program is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++   GNU General Public License for more details.
++
++   You should have received a copy of the GNU General Public License
++   along with this program; if not, write to the Free Software Foundation,
++   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
++
++#include <stdlib.h>
++
++void *
++rpl_realloc(void *ptr, size_t size)
++{
++  if (!ptr)
++    return malloc(size);
++  if (!size)
++    {
++      if (ptr)
++        free(ptr);
++      return malloc(size);
++    }
++  return realloc(ptr, size);
++}
diff -r 47429bab214e -r 5b5f534bc6c1 devel/flex/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/flex/patches/patch-ab       Thu Feb 21 18:57:46 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.3 2008/02/21 18:57:46 tnn Exp $
+
+--- Makefile.in.orig   2008-02-21 19:44:15.000000000 +0100
++++ Makefile.in
+@@ -124,7 +124,7 @@ am_flex_OBJECTS = ccl.$(OBJEXT) dfa.$(OB
+       options.$(OBJEXT) scanopt.$(OBJEXT) buf.$(OBJEXT) \
+       tables.$(OBJEXT) tables_shared.$(OBJEXT) filter.$(OBJEXT) \
+       regex.$(OBJEXT)
+-flex_OBJECTS = $(am_flex_OBJECTS)
++flex_OBJECTS = $(am_flex_OBJECTS) $(LIBOBJS)
+ flex_LDADD = $(LDADD)
+ DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
+ depcomp = $(SHELL) $(top_srcdir)/depcomp



Home | Main Index | Thread Index | Old Index