pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/flex - Remove compat files. Upstream ships them ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a5e678752108
branches:  trunk
changeset: 650149:a5e678752108
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Apr 19 00:05:44 2015 +0000

description:
- Remove compat files. Upstream ships them now in lib.
- Fix build of compat library. Needs to use libtool objects (.lo) since
  linking is done with libtool.

diffstat:

 devel/flex/distinfo                      |   7 ++---
 devel/flex/patches/patch-aa              |  37 --------------------------------
 devel/flex/patches/patch-ab              |  11 +--------
 devel/flex/patches/patch-ac              |  31 --------------------------
 devel/flex/patches/patch-lib_Makefile.in |  25 +++++++++++++++++++++
 5 files changed, 29 insertions(+), 82 deletions(-)

diffs (147 lines):

diff -r fa59ee9a1bfd -r a5e678752108 devel/flex/distinfo
--- a/devel/flex/distinfo       Sat Apr 18 22:56:19 2015 +0000
+++ b/devel/flex/distinfo       Sun Apr 19 00:05:44 2015 +0000
@@ -1,10 +1,9 @@
-$NetBSD: distinfo,v 1.18 2014/08/23 07:46:38 obache Exp $
+$NetBSD: distinfo,v 1.19 2015/04/19 00:05:44 tnn Exp $
 
 SHA1 (flex-2.5.39.tar.xz) = 415e82bb0dc9b1713fc4802a9db2274cd8d2909a
 RMD160 (flex-2.5.39.tar.xz) = b5c9555d1fe48086d96475cf41ca800e8138514d
 Size (flex-2.5.39.tar.xz) = 1347436 bytes
 SHA1 (patch-Makefile.am) = 7828c75f891db84b3be1719808b76542a24fdd74
-SHA1 (patch-aa) = 938335a9071be62f534bad8e785003318816fd38
-SHA1 (patch-ab) = 1a2b83af62151ccc09ad0bf74e0ff84d9a97d53f
-SHA1 (patch-ac) = 27ac026f8a180b49523933c5d70db0237e8dc095
+SHA1 (patch-ab) = 44497cff83005702dfcb36d490746e47757ae299
 SHA1 (patch-ad) = b7fe34269e4425a7b3871278bb6a2b1e754c9045
+SHA1 (patch-lib_Makefile.in) = b76d7083939a6e6efd865b45c37023de5058c6f6
diff -r fa59ee9a1bfd -r a5e678752108 devel/flex/patches/patch-aa
--- a/devel/flex/patches/patch-aa       Sat Apr 18 22:56:19 2015 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-$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 fa59ee9a1bfd -r a5e678752108 devel/flex/patches/patch-ab
--- a/devel/flex/patches/patch-ab       Sat Apr 18 22:56:19 2015 +0000
+++ b/devel/flex/patches/patch-ab       Sun Apr 19 00:05:44 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.7 2014/08/23 07:46:38 obache Exp $
+$NetBSD: patch-ab,v 1.8 2015/04/19 00:05:44 tnn Exp $
 
 * XXX:
 * Prevent libfi to be linked with libintl.
@@ -6,15 +6,6 @@
 
 --- Makefile.in.orig   2014-03-26 18:58:57.000000000 +0000
 +++ Makefile.in
-@@ -165,7 +165,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)
- flex_DEPENDENCIES = lib/libcompat.la
- DEFAULT_INCLUDES = -I.@am__isrc@
 @@ -304,7 +304,7 @@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
  LIBICONV = @LIBICONV@
  LIBINTL = @LIBINTL@
diff -r fa59ee9a1bfd -r a5e678752108 devel/flex/patches/patch-ac
--- a/devel/flex/patches/patch-ac       Sat Apr 18 22:56:19 2015 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2008/05/21 12:54:32 tnn Exp $
-
---- /dev/null  2008-04-01 06:44:07.000000000 +0200
-+++ malloc.c
-@@ -0,0 +1,26 @@
-+/* rpl_malloc.c -- a replacement for malloc that don't accept 0 size
-+   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 3, 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
-+
-+#include <stdlib.h>
-+
-+void *
-+rpl_malloc(size_t size)
-+{
-+      if (!size)
-+              size++;
-+      return malloc(size);
-+}
diff -r fa59ee9a1bfd -r a5e678752108 devel/flex/patches/patch-lib_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/flex/patches/patch-lib_Makefile.in  Sun Apr 19 00:05:44 2015 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-lib_Makefile.in,v 1.1 2015/04/19 00:05:44 tnn Exp $
+
+The compat library is linked with libtool so we must use .lo objects
+consistently.
+
+--- lib/Makefile.in.orig       2014-03-26 18:58:56.000000000 +0000
++++ lib/Makefile.in
+@@ -70,7 +70,7 @@ CONFIG_HEADER = $(top_builddir)/config.h
+ CONFIG_CLEAN_FILES =
+ CONFIG_CLEAN_VPATH_FILES =
+ LTLIBRARIES = $(noinst_LTLIBRARIES)
+-libcompat_la_DEPENDENCIES = $(LIBOBJS)
++libcompat_la_DEPENDENCIES = $(LTLIBOBJS)
+ am_libcompat_la_OBJECTS = lib.lo
+ libcompat_la_OBJECTS = $(am_libcompat_la_OBJECTS)
+ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+@@ -244,7 +244,7 @@ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ noinst_LTLIBRARIES = libcompat.la
+ libcompat_la_SOURCES = lib.c
+-libcompat_la_LIBADD = $(LIBOBJS)
++libcompat_la_LIBADD = $(LTLIBOBJS)
+ all: all-am
+ 
+ .SUFFIXES:



Home | Main Index | Thread Index | Old Index