pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/postgresql81 Make my life easier and push th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dac12ba7c194
branches:  trunk
changeset: 522058:dac12ba7c194
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Dec 01 20:10:18 2006 +0000

description:
Make my life easier and push the tsearch2 patches out. The package itself
needs some more work though.

diffstat:

 databases/postgresql81/distinfo               |   6 +++-
 databases/postgresql81/files/Makefile.libtool |   6 +++-
 databases/postgresql81/patches/patch-aj       |  30 +++++++++++++++++++++
 databases/postgresql81/patches/patch-ak       |  30 +++++++++++++++++++++
 databases/postgresql81/patches/patch-al       |  30 +++++++++++++++++++++
 databases/postgresql81/patches/patch-am       |  38 +++++++++++++++++++++++++++
 6 files changed, 138 insertions(+), 2 deletions(-)

diffs (187 lines):

diff -r cefd7047ba05 -r dac12ba7c194 databases/postgresql81/distinfo
--- a/databases/postgresql81/distinfo   Fri Dec 01 17:29:44 2006 +0000
+++ b/databases/postgresql81/distinfo   Fri Dec 01 20:10:18 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2006/10/18 16:31:24 adam Exp $
+$NetBSD: distinfo,v 1.4 2006/12/01 20:10:18 joerg Exp $
 
 SHA1 (postgresql-8.1.5.tar.bz2) = 6d819ad4e2344db1eac2aaab13f8034820ac8868
 RMD160 (postgresql-8.1.5.tar.bz2) = 02a8aab23e424b5006b24bf884d6920c4818f907
@@ -12,3 +12,7 @@
 SHA1 (patch-ag) = 402d5d211af99efdfa35677299c97e91e14ed85d
 SHA1 (patch-ah) = 10ff8958ff2085fb03d1661a361e218ae5869b06
 SHA1 (patch-ai) = 04820f37d7147576a6a9ab7d82e4682c61573330
+SHA1 (patch-aj) = 17c2efa6729801a2f524de68d885a98a8f1fc5f5
+SHA1 (patch-ak) = 3009e020dc5f9397846dd3339c2bdd15269bb332
+SHA1 (patch-al) = e0c66263910f302e5b92416d5103b701e8a4e87c
+SHA1 (patch-am) = a857d1499ea39c5f999bb614c1d45bcea23f1cc9
diff -r cefd7047ba05 -r dac12ba7c194 databases/postgresql81/files/Makefile.libtool
--- a/databases/postgresql81/files/Makefile.libtool     Fri Dec 01 17:29:44 2006 +0000
+++ b/databases/postgresql81/files/Makefile.libtool     Fri Dec 01 20:10:18 2006 +0000
@@ -4,7 +4,7 @@
 #    Common rules for buildling libtool archives
 #
 # IDENTIFICATION
-#    $NetBSD: Makefile.libtool,v 1.1.1.1 2006/03/20 14:45:49 uebayasi Exp $
+#    $NetBSD: Makefile.libtool,v 1.2 2006/12/01 20:10:18 joerg Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -21,9 +21,13 @@
 ifneq (,$(findstring src/pl/,$(subdir)))
 shmodule       = yes
 else
+ifneq (,$(findstring contrib/,$(subdir)))
+shmodule       = yes
+else
 shmodule       = no
 endif
 endif
+endif
 
 # Fix dependencies in some makefiles that assume the target matches
 # %.o so that when built for libtool, the target matches the corresponding
diff -r cefd7047ba05 -r dac12ba7c194 databases/postgresql81/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql81/patches/patch-aj   Fri Dec 01 20:10:18 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-aj,v 1.1 2006/12/01 20:10:18 joerg Exp $
+
+--- contrib/tsearch2/snowball/Makefile.orig    2005-10-18 01:30:48.000000000 +0000
++++ contrib/tsearch2/snowball/Makefile
+@@ -1,6 +1,6 @@
+ # $PostgreSQL: pgsql/contrib/tsearch2/snowball/Makefile,v 1.8 2005/10/18 01:30:48 tgl Exp $
+ 
+-SUBOBJS = english_stem.o api.o russian_stem.o utilities.o
++SUBOBJS = english_stem.lo api.lo russian_stem.lo utilities.lo
+ 
+ EXTRA_CLEAN = SUBSYS.o $(SUBOBJS)
+ 
+@@ -14,13 +14,14 @@ subdir = contrib/tsearch2/snowball
+ top_builddir = ../../..
+ include $(top_builddir)/src/Makefile.global
+ include $(top_srcdir)/contrib/contrib-global.mk
++include $(top_srcdir)/src/Makefile.shlib
+ endif
+ 
+ override CFLAGS += $(CFLAGS_SL)
+ 
+-all: SUBSYS.o
++all: libSUBSYS.la
+ 
+-SUBSYS.o: $(SUBOBJS)
+-      $(LD) $(LDREL) $(LDOUT) $@ $^
++libSUBSYS.la: $(SUBOBJS)
++      libtool --mode=link ${CC} -o libSUBSYS.la ${SUBOBJS}
+ 
+ 
diff -r cefd7047ba05 -r dac12ba7c194 databases/postgresql81/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql81/patches/patch-ak   Fri Dec 01 20:10:18 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ak,v 1.1 2006/12/01 20:10:18 joerg Exp $
+
+--- contrib/tsearch2/ispell/Makefile.orig      2006-10-25 12:46:42.000000000 +0000
++++ contrib/tsearch2/ispell/Makefile
+@@ -1,6 +1,6 @@
+ # $PostgreSQL: pgsql/contrib/tsearch2/ispell/Makefile,v 1.9 2005/10/18 01:30:48 tgl Exp $
+ 
+-SUBOBJS = spell.o regis.o 
++SUBOBJS = spell.lo regis.lo 
+ 
+ EXTRA_CLEAN = SUBSYS.o $(SUBOBJS)
+ 
+@@ -14,13 +14,12 @@ subdir = contrib/tsearch2/ispell
+ top_builddir = ../../..
+ include $(top_builddir)/src/Makefile.global
+ include $(top_srcdir)/contrib/contrib-global.mk
++include $(top_srcdir)/src/Makefile.shlib
+ endif
+ 
+ override CFLAGS += $(CFLAGS_SL)
+ 
+-all: SUBSYS.o
+-
+-SUBSYS.o: $(SUBOBJS)
+-      $(LD) $(LDREL) $(LDOUT) $@ $^
+-
++all: libSUBSYS.la
+ 
++libSUBSYS.la: $(SUBOBJS)
++      libtool --mode=link ${CC} -o libSUBSYS.la ${SUBOBJS}
diff -r cefd7047ba05 -r dac12ba7c194 databases/postgresql81/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql81/patches/patch-al   Fri Dec 01 20:10:18 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-al,v 1.1 2006/12/01 20:10:18 joerg Exp $
+
+--- contrib/tsearch2/wordparser/Makefile.orig  2005-10-18 01:30:49.000000000 +0000
++++ contrib/tsearch2/wordparser/Makefile
+@@ -1,6 +1,6 @@
+ # $PostgreSQL: pgsql/contrib/tsearch2/wordparser/Makefile,v 1.8 2005/10/18 01:30:49 tgl Exp $
+ 
+-SUBOBJS =  parser.o deflex.o
++SUBOBJS =  parser.lo deflex.lo
+ 
+ EXTRA_CLEAN = SUBSYS.o $(SUBOBJS) parser.c
+ 
+@@ -14,6 +14,7 @@ subdir = contrib/tsearch2/wordparser
+ top_builddir = ../../..
+ include $(top_builddir)/src/Makefile.global
+ include $(top_srcdir)/contrib/contrib-global.mk
++include $(top_srcdir)/src/Makefile.shlib
+ endif
+ 
+ override CFLAGS += $(CFLAGS_SL)
+@@ -27,7 +28,7 @@ else
+       @$(missing) flex $< $@
+ endif
+ 
+-SUBSYS.o: $(SUBOBJS)
+-      $(LD) $(LDREL) $(LDOUT) $@ $^
++libSUBSYS.la: $(SUBOBJS)
++      libtool --mode=link ${CC} -o libSUBSYS.la ${SUBOBJS}
+ 
+ 
diff -r cefd7047ba05 -r dac12ba7c194 databases/postgresql81/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql81/patches/patch-am   Fri Dec 01 20:10:18 2006 +0000
@@ -0,0 +1,38 @@
+$NetBSD: patch-am,v 1.1 2006/12/01 20:10:18 joerg Exp $
+
+--- contrib/tsearch2/Makefile.orig     2005-09-27 17:13:11.000000000 +0000
++++ contrib/tsearch2/Makefile
+@@ -8,7 +8,7 @@ OBJS = dict_ex.o dict.o snmap.o stopword
+        tsvector_op.o rank.o ts_stat.o
+ 
+ SUBDIRS     := snowball ispell wordparser
+-SUBDIROBJS  := $(SUBDIRS:%=%/SUBSYS.o)
++SUBDIROBJS  := $(SUBDIRS:%=%/libSUBSYS.la)
+ 
+ OBJS  += $(SUBDIROBJS)
+ 
+@@ -20,7 +20,7 @@ DOCS = README.tsearch2
+ REGRESS = tsearch2
+ 
+ SHLIB_LINK += $(filter -lm, $(LIBS))
+-
++shmodule=yes
+ 
+ ifdef USE_PGXS
+ PGXS := $(shell pg_config --pgxs)
+@@ -30,13 +30,14 @@ subdir = contrib/tsearch2
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+ include $(top_srcdir)/contrib/contrib-global.mk
++include $(top_srcdir)/src/Makefile.shlib
+ endif
+ 
+ 
+ $(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ;
+ 
+ $(SUBDIRS:%=%-recursive):
+-      $(MAKE) -C $(subst -recursive,,$@) SUBSYS.o
++      $(MAKE) -C $(subst -recursive,,$@) libSUBSYS.la
+ 
+ tsearch2.sql: tsearch.sql.in
+       sed -e 's,MODULE_PATHNAME,$$libdir/$(MODULE_big),g' $< >$@



Home | Main Index | Thread Index | Old Index