pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases Allow PostgreSQL 7.4 to build on DragonFly. ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2b1446464c89
branches:  trunk
changeset: 502719:2b1446464c89
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Nov 08 16:40:38 2005 +0000

description:
Allow PostgreSQL 7.4 to build on DragonFly. Bump revision of -lib,
since the PLIST changed. Don't define errno manually in contrib/,
depend on errno.h to do so. Explicitly include errno.h in some places.

diffstat:

 databases/postgresql74-client/Makefile  |  15 ++++++++++++++-
 databases/postgresql74-contrib/Makefile |  15 ++++++++++++++-
 databases/postgresql74-lib/Makefile     |  20 +++++++++++++++++---
 databases/postgresql74-lib/PLIST        |   3 ++-
 databases/postgresql74-server/Makefile  |  15 ++++++++++++++-
 databases/postgresql74/distinfo         |  11 ++++++++---
 databases/postgresql74/patches/patch-aa |  14 ++++++++++----
 databases/postgresql74/patches/patch-ac |  12 ++++++++++--
 databases/postgresql74/patches/patch-ah |  21 +++++++++++++++++++++
 databases/postgresql74/patches/patch-ai |  14 ++++++++++++++
 databases/postgresql74/patches/patch-aj |  13 +++++++++++++
 databases/postgresql74/patches/patch-ak |  13 +++++++++++++
 databases/postgresql74/patches/patch-al |  20 ++++++++++++++++++++
 13 files changed, 170 insertions(+), 16 deletions(-)

diffs (truncated from 341 to 300 lines):

diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74-client/Makefile
--- a/databases/postgresql74-client/Makefile    Tue Nov 08 16:39:47 2005 +0000
+++ b/databases/postgresql74-client/Makefile    Tue Nov 08 16:40:38 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2005/07/15 18:27:48 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2005/11/08 16:40:38 joerg Exp $
 
 PKGNAME=               postgresql74-client-${BASE_VERS}
 PKGREVISION=           # empty
@@ -18,6 +18,19 @@
 
 BUILD_DIRS=            ${WRKSRC}/src/bin
 
+pre-configure:
+       ${TOUCH} ${WRKSRC}/src/template/dragonfly
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.c \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.c
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/include/port/freebsd.h \
+               ${WRKSRC}/src/include/port/dragonfly.h
+       ${CP} ${WRKSRC}/src/makefiles/Makefile.freebsd \
+               ${WRKSRC}/src/makefiles/Makefile.dragonfly
+
 pre-build:
        ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${WRKSRC}/src/backend && \
        ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74-contrib/Makefile
--- a/databases/postgresql74-contrib/Makefile   Tue Nov 08 16:39:47 2005 +0000
+++ b/databases/postgresql74-contrib/Makefile   Tue Nov 08 16:40:38 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2005/09/28 14:31:06 rillig Exp $
+# $NetBSD: Makefile,v 1.8 2005/11/08 16:40:38 joerg Exp $
 
 PKGNAME=               postgresql74-contrib-${BASE_VERS}
 PKGREVISION=           # empty
@@ -14,6 +14,19 @@
 
 BUILD_DIRS=            ${WRKSRC}/contrib
 
+pre-configure:
+       ${TOUCH} ${WRKSRC}/src/template/dragonfly
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.c \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.c
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/include/port/freebsd.h \
+               ${WRKSRC}/src/include/port/dragonfly.h
+       ${CP} ${WRKSRC}/src/makefiles/Makefile.freebsd \
+               ${WRKSRC}/src/makefiles/Makefile.dragonfly
+
 pre-build:
        ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${WRKSRC}/src/backend && \
        ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74-lib/Makefile
--- a/databases/postgresql74-lib/Makefile       Tue Nov 08 16:39:47 2005 +0000
+++ b/databases/postgresql74-lib/Makefile       Tue Nov 08 16:40:38 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2005/07/15 18:27:48 jlam Exp $
+# $NetBSD: Makefile,v 1.20 2005/11/08 16:40:39 joerg Exp $
 
 PKGNAME=               postgresql74-lib-${BASE_VERS}
-PKGREVISION=           1
+PKGREVISION=           2
 SVR4_PKGNAME=          pstgl
 COMMENT=               PostgreSQL database headers and libraries
 
@@ -25,7 +25,7 @@
 # As told by Josh Berkus
 .include "../../mk/pthread.buildlink3.mk"
 .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native" \
-       && ${OPSYS} != "NetBSD"
+       && ${OPSYS} != "NetBSD" && ${OPSYS} != "DragonFly"
 CONFIGURE_ARGS+=       --enable-thread-safety
 .endif
 
@@ -44,6 +44,20 @@
 .if (${OPSYS} == "SunOS")
        ${TOUCH} ${BUILDLINK_DIR}/include/crypt.h
 .endif
+
+pre-configure:
+       ${TOUCH} ${WRKSRC}/src/template/dragonfly
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.c \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.c
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/include/port/freebsd.h \
+               ${WRKSRC}/src/include/port/dragonfly.h
+       ${CP} ${WRKSRC}/src/makefiles/Makefile.freebsd \
+               ${WRKSRC}/src/makefiles/Makefile.dragonfly
+
 do-install:
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV}           \
                ${MAKE_PROGRAM} -C src/include install
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74-lib/PLIST
--- a/databases/postgresql74-lib/PLIST  Tue Nov 08 16:39:47 2005 +0000
+++ b/databases/postgresql74-lib/PLIST  Tue Nov 08 16:40:38 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2005/06/30 01:50:11 wiz Exp $
+@comment $NetBSD: PLIST,v 1.6 2005/11/08 16:40:39 joerg Exp $
 bin/ecpg
 bin/pg_config
 include/ecpg_informix.h
@@ -238,6 +238,7 @@
 include/postgresql/server/port/cygwin.h
 include/postgresql/server/port/darwin.h
 include/postgresql/server/port/dgux.h
+include/postgresql/server/port/dragonfly.h
 include/postgresql/server/port/freebsd.h
 include/postgresql/server/port/hpux.h
 include/postgresql/server/port/irix5.h
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74-server/Makefile
--- a/databases/postgresql74-server/Makefile    Tue Nov 08 16:39:47 2005 +0000
+++ b/databases/postgresql74-server/Makefile    Tue Nov 08 16:40:38 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/08/23 11:48:47 rillig Exp $
+# $NetBSD: Makefile,v 1.18 2005/11/08 16:40:39 joerg Exp $
 
 PKGNAME=               postgresql74-server-${BASE_VERS}
 PKGREVISION=           # empty
@@ -61,6 +61,19 @@
        ${TOUCH} ${BUILDLINK_DIR}/include/crypt.h
 .endif
 
+pre-configure:
+       ${TOUCH} ${WRKSRC}/src/template/dragonfly
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.c \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.c
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/include/port/freebsd.h \
+               ${WRKSRC}/src/include/port/dragonfly.h
+       ${CP} ${WRKSRC}/src/makefiles/Makefile.freebsd \
+               ${WRKSRC}/src/makefiles/Makefile.dragonfly
+
 pre-build:
        ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${WRKSRC}/src/backend && \
        ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} \
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74/distinfo
--- a/databases/postgresql74/distinfo   Tue Nov 08 16:39:47 2005 +0000
+++ b/databases/postgresql74/distinfo   Tue Nov 08 16:40:38 2005 +0000
@@ -1,12 +1,17 @@
-$NetBSD: distinfo,v 1.18 2005/06/30 01:50:10 wiz Exp $
+$NetBSD: distinfo,v 1.19 2005/11/08 16:40:38 joerg Exp $
 
 SHA1 (postgresql-7.4.8.tar.bz2) = a565ff14e1a3b58a151b219bcffcf53dfc62ec41
 RMD160 (postgresql-7.4.8.tar.bz2) = 3ee8c70e0506e2a49bae20bc2282391513ee9d65
 Size (postgresql-7.4.8.tar.bz2) = 10235413 bytes
-SHA1 (patch-aa) = 626b4b4bf0d47913072399535c55d413b90675a4
+SHA1 (patch-aa) = a7d3a63bbef3ae0ad5086fe6a8915be67731deb9
 SHA1 (patch-ab) = f44a544c56452bad197a88cb827e88624c54656c
-SHA1 (patch-ac) = 81ef677cc5d196762b6cc3c3e38dee4a37e75ac2
+SHA1 (patch-ac) = 8104ac7631dd8566eb455e479dd59da058b68c8f
 SHA1 (patch-ad) = fae5e82e0943ea982c9d3aace290b56c6a7629f9
 SHA1 (patch-ae) = f0e0ad98ebdc972e7c40afd805fbb0d909d5ef3b
 SHA1 (patch-af) = 7373db75fda125b980f2ead990719798c0d22a48
 SHA1 (patch-ag) = a983f23b5e47a4c2f31ba284ff3db51b53cf8414
+SHA1 (patch-ah) = 1a9b565bf3a004da5fa33081bc3675cb938e7e5f
+SHA1 (patch-ai) = 158382638ee3380930d6c9fd9b6381e973ccedc2
+SHA1 (patch-aj) = 629e38a0ca475834fb0bf1e03cc4efdfca4fb6ce
+SHA1 (patch-ak) = 12b4227149ebe4a3516b342c0931de78e3498b2e
+SHA1 (patch-al) = 9c4b963c9f727c78c364f76e5146a4eeb1412638
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74/patches/patch-aa
--- a/databases/postgresql74/patches/patch-aa   Tue Nov 08 16:39:47 2005 +0000
+++ b/databases/postgresql74/patches/patch-aa   Tue Nov 08 16:40:38 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2004/12/18 15:59:55 jlam Exp $
+$NetBSD: patch-aa,v 1.3 2005/11/08 16:40:38 joerg Exp $
 
 --- src/Makefile.shlib.orig    2003-10-19 21:34:33.000000000 -0400
 +++ src/Makefile.shlib
@@ -11,16 +11,22 @@
      LINK.shared               = $(COMPILER) -shared -Wl,-x,-soname,$(soname)
    else
      shlib             := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
-@@ -126,7 +126,7 @@ ifeq ($(PORTNAME), netbsd)
+@@ -125,8 +125,13 @@ ifeq ($(PORTNAME), netbsd)
+   endif
  endif
  
++ifeq ($(PORTNAME), dragonfly)
++  shlib                       := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
++  LINK.shared         = $(COMPILER) -shared -Wl,-x,-soname,$(soname)
++endif
++
  ifeq ($(PORTNAME), hpux)
 -  shlib                       := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
 +  shlib                       := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
    LINK.shared         = $(LD) +h $(soname) -b +b $(libdir)
    ifeq ($(GCC), yes)
      SHLIB_LINK                += `$(CC) -print-libgcc-file-name`
-@@ -134,7 +134,7 @@ ifeq ($(PORTNAME), hpux)
+@@ -134,7 +139,7 @@ ifeq ($(PORTNAME), hpux)
  endif
  
  ifeq ($(PORTNAME), irix5)
@@ -29,7 +35,7 @@
    LINK.shared         = $(COMPILER) -shared -Wl,-set_version,sgi$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
  endif
  
-@@ -207,7 +207,7 @@ ifeq ($(PORTNAME), beos)
+@@ -207,7 +212,7 @@ ifeq ($(PORTNAME), beos)
    SHLIB_LINK          += -ltermcap -lstdc++.r4 -lbind -lsocket -L/boot/develop/lib/x86
  endif
  
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74/patches/patch-ac
--- a/databases/postgresql74/patches/patch-ac   Tue Nov 08 16:39:47 2005 +0000
+++ b/databases/postgresql74/patches/patch-ac   Tue Nov 08 16:40:38 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.2 2004/12/18 16:36:29 jlam Exp $
+$NetBSD: patch-ac,v 1.3 2005/11/08 16:40:38 joerg Exp $
 
 --- configure.orig     2004-10-21 20:26:15.000000000 -0400
 +++ configure
@@ -11,7 +11,15 @@
  mandir='${prefix}/man'
  
  ac_prev=
-@@ -4351,9 +4351,7 @@ echo "${ECHO_T}$perl_useshrplib" >&6
+@@ -1392,6 +1392,7 @@ case $host_os in
+   darwin*) template=darwin ;;
+     dgux*) template=dgux ;;
+  freebsd*) template=freebsd ;;
++ dragonfly*) template=dragonfly ;;
+     hpux*) template=hpux ;;
+     irix*) template=irix5 ;;
+    linux*) template=linux ;;
+@@ -4351,9 +4352,7 @@ echo "${ECHO_T}$perl_useshrplib" >&6
  
  echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
  echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql74/patches/patch-ah   Tue Nov 08 16:40:38 2005 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ah,v 1.3 2005/11/08 16:40:38 joerg Exp $
+
+--- contrib/cube/cubeparse.y.orig      2005-11-08 15:08:35.000000000 +0000
++++ contrib/cube/cubeparse.y
+@@ -6,6 +6,8 @@
+ #define YYSTYPE char *
+ #define YYDEBUG 1
+ 
++#include <errno.h>
++
+ #include "postgres.h"
+ 
+ #include "cubedata.h"
+@@ -14,7 +16,6 @@
+ #define yylex cube_yylex     /* wrong scanner when running inside the postgres backend  */
+ 
+ extern int yylex();           /* defined as cube_yylex in cubescan.c */
+-extern int errno;
+ 
+ static char *scanbuf;
+ static int    scanbuflen;
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql74/patches/patch-ai   Tue Nov 08 16:40:38 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ai,v 1.1 2005/11/08 16:40:38 joerg Exp $
+
+--- contrib/pg_dumplo/lo_export.c.orig 2005-11-08 15:14:44.000000000 +0000
++++ contrib/pg_dumplo/lo_export.c
+@@ -20,9 +20,6 @@
+ 
+ #include "pg_dumplo.h"
+ 
+-extern int    errno;
+-
+-
+ void
+ load_lolist(LODumpMaster * pgLO)
+ {
diff -r 4549a8fd6565 -r 2b1446464c89 databases/postgresql74/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql74/patches/patch-aj   Tue Nov 08 16:40:38 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1 2005/11/08 16:40:38 joerg Exp $
+
+--- contrib/pg_dumplo/lo_import.c.orig 2005-11-08 15:16:04.000000000 +0000
++++ contrib/pg_dumplo/lo_import.c
+@@ -20,8 +20,6 @@
+ 
+ #include "pg_dumplo.h"
+ 
+-extern int    errno;
+-
+ void
+ pglo_import(LODumpMaster * pgLO)
+ {



Home | Main Index | Thread Index | Old Index