summaryrefslogtreecommitdiff
path: root/databases/postgresql92/patches
diff options
context:
space:
mode:
authoradam <adam>2012-10-05 21:03:10 +0000
committeradam <adam>2012-10-05 21:03:10 +0000
commit0b79131278de510556bfa45cadfcd59fd010ede0 (patch)
treea69a2fb35b4ccb1bbdfd5c01ee1680b59a18ac99 /databases/postgresql92/patches
parent69fc1cc606edabc3462694140728d58e86ac7ce7 (diff)
downloadpkgsrc-0b79131278de510556bfa45cadfcd59fd010ede0.tar.gz
The PostgreSQL Global Development Group announces PostgreSQL 9.2, the latest release of the leader in open source databases. Since the beta release was announced in May, developers and vendors have praised it as a leap forward in performance, scalability and flexibility. Users are expected to switch to this version in record numbers.
PostgreSQL 9.2 will ship with native JSON support, covering indexes, replication and performance improvements, and many more features. We are eagerly awaiting this release and will make it available in Early Access as soon as it’s released by the PostgreSQL community," said Ines Sombra, Lead Data Engineer, Engine Yard.
Diffstat (limited to 'databases/postgresql92/patches')
-rw-r--r--databases/postgresql92/patches/patch-config_missing13
-rw-r--r--databases/postgresql92/patches/patch-config_perl.m415
-rw-r--r--databases/postgresql92/patches/patch-configure23
-rw-r--r--databases/postgresql92/patches/patch-contrib_dblink_Makefile12
-rw-r--r--databases/postgresql92/patches/patch-contrib_dblink_dblink.c13
-rw-r--r--databases/postgresql92/patches/patch-src_Makefile.shlib40
-rw-r--r--databases/postgresql92/patches/patch-src_backend_Makefile15
-rw-r--r--databases/postgresql92/patches/patch-src_makefiles_Makefile.solaris10
-rw-r--r--databases/postgresql92/patches/patch-src_pl_plperl_GNUmakefile21
-rw-r--r--databases/postgresql92/patches/patch-src_pl_plperl_plperl.h26
-rw-r--r--databases/postgresql92/patches/patch-src_timezone_localtime.c31
-rw-r--r--databases/postgresql92/patches/patch-src_timezone_private.h15
-rw-r--r--databases/postgresql92/patches/patch-src_timezone_strftime.c13
-rw-r--r--databases/postgresql92/patches/patch-src_timezone_zic.c78
14 files changed, 325 insertions, 0 deletions
diff --git a/databases/postgresql92/patches/patch-config_missing b/databases/postgresql92/patches/patch-config_missing
new file mode 100644
index 00000000000..92c03021863
--- /dev/null
+++ b/databases/postgresql92/patches/patch-config_missing
@@ -0,0 +1,13 @@
+$NetBSD: patch-config_missing,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- config/missing.orig 2012-10-05 12:14:55.000000000 +0000
++++ config/missing
+@@ -40,7 +40,7 @@ pre-packaged $1 output.
+ ERROR: Perl is missing on your system. It is needed unless you are building
+ from an unmodified official distribution of PostgreSQL.
+ ***" >&2
+- exit 1
++ exit 0
+ ;;
+
+ *)
diff --git a/databases/postgresql92/patches/patch-config_perl.m4 b/databases/postgresql92/patches/patch-config_perl.m4
new file mode 100644
index 00000000000..107b37d1aba
--- /dev/null
+++ b/databases/postgresql92/patches/patch-config_perl.m4
@@ -0,0 +1,15 @@
+$NetBSD: patch-config_perl.m4,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- config/perl.m4.orig 2010-02-23 18:35:06.000000000 +0000
++++ config/perl.m4
+@@ -57,9 +57,7 @@ AC_DEFUN([PGAC_CHECK_PERL_CONFIGS],
+ AC_DEFUN([PGAC_CHECK_PERL_EMBED_LDFLAGS],
+ [AC_REQUIRE([PGAC_PATH_PERL])
+ AC_MSG_CHECKING(for flags to link embedded Perl)
+-pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
+-pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
+-perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e ["s/ -arch [-a-zA-Z0-9_]*//g"]`
++perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts`
+ AC_SUBST(perl_embed_ldflags)dnl
+ if test -z "$perl_embed_ldflags" ; then
+ AC_MSG_RESULT(no)
diff --git a/databases/postgresql92/patches/patch-configure b/databases/postgresql92/patches/patch-configure
new file mode 100644
index 00000000000..36b4925d5f9
--- /dev/null
+++ b/databases/postgresql92/patches/patch-configure
@@ -0,0 +1,23 @@
+$NetBSD: patch-configure,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- configure.orig 2012-09-19 21:47:58.000000000 +0000
++++ configure
+@@ -2188,6 +2188,7 @@ case $host_os in
+ darwin*) template=darwin ;;
+ dragonfly*) template=netbsd ;;
+ freebsd*) template=freebsd ;;
++ dragonfly*) template=dragonfly ;;
+ hpux*) template=hpux ;;
+ irix*) template=irix ;;
+ linux*|gnu*|k*bsd*-gnu)
+@@ -7251,9 +7252,7 @@ $as_echo "$perl_useshrplib" >&6; }
+
+ { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
+ $as_echo_n "checking for flags to link embedded Perl... " >&6; }
+-pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
+-pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
+-perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
++perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts`
+ if test -z "$perl_embed_ldflags" ; then
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+ $as_echo "no" >&6; }
diff --git a/databases/postgresql92/patches/patch-contrib_dblink_Makefile b/databases/postgresql92/patches/patch-contrib_dblink_Makefile
new file mode 100644
index 00000000000..1090bdecda0
--- /dev/null
+++ b/databases/postgresql92/patches/patch-contrib_dblink_Makefile
@@ -0,0 +1,12 @@
+$NetBSD: patch-contrib_dblink_Makefile,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- contrib/dblink/Makefile.orig 2011-09-15 06:35:28.000000000 +0000
++++ contrib/dblink/Makefile
+@@ -4,7 +4,6 @@ MODULE_big = dblink
+ OBJS = dblink.o
+ PG_CPPFLAGS = -I$(libpq_srcdir)
+ SHLIB_LINK = $(libpq)
+-SHLIB_PREREQS = submake-libpq
+
+ EXTENSION = dblink
+ DATA = dblink--1.0.sql dblink--unpackaged--1.0.sql
diff --git a/databases/postgresql92/patches/patch-contrib_dblink_dblink.c b/databases/postgresql92/patches/patch-contrib_dblink_dblink.c
new file mode 100644
index 00000000000..e195e18b391
--- /dev/null
+++ b/databases/postgresql92/patches/patch-contrib_dblink_dblink.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-contrib_dblink_dblink.c,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- contrib/dblink/dblink.c.orig 2012-09-19 21:47:58.000000000 +0000
++++ contrib/dblink/dblink.c
+@@ -46,7 +46,7 @@
+ #include "parser/scansup.h"
+ #include "utils/acl.h"
+ #include "utils/builtins.h"
+-#include "utils/fmgroids.h"
++#include "postgresql/server/utils/fmgroids.h"
+ #include "utils/lsyscache.h"
+ #include "utils/memutils.h"
+ #include "utils/rel.h"
diff --git a/databases/postgresql92/patches/patch-src_Makefile.shlib b/databases/postgresql92/patches/patch-src_Makefile.shlib
new file mode 100644
index 00000000000..32dd57397ce
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_Makefile.shlib
@@ -0,0 +1,40 @@
+$NetBSD: patch-src_Makefile.shlib,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/Makefile.shlib.orig 2012-09-19 21:47:58.000000000 +0000
++++ src/Makefile.shlib
+@@ -159,17 +159,11 @@ endif
+
+ ifeq ($(PORTNAME), freebsd)
+ ifdef ELF_SYSTEM
+- ifdef SO_MAJOR_VERSION
+- shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
+- endif
+ LINK.shared = $(COMPILER) -shared
+ ifdef soname
+ LINK.shared += -Wl,-x,-soname,$(soname)
+ endif
+ else
+- ifdef SO_MAJOR_VERSION
+- shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+- endif
+ LINK.shared = $(LD) -x -Bshareable -Bforcearchive
+ endif
+ endif
+@@ -185,6 +179,17 @@ ifeq ($(PORTNAME), netbsd)
+ endif
+ endif
+
++ifeq ($(PORTNAME), dragonfly)
++ ifdef ELF_SYSTEM
++ LINK.shared = $(COMPILER) -shared
++ ifdef soname
++ LINK.shared += -Wl,-x,-soname,$(soname)
++ endif
++ else
++ LINK.shared = $(LD) -x -Bshareable -Bforcearchive
++ endif
++endif
++
+ ifeq ($(PORTNAME), hpux)
+ ifdef SO_MAJOR_VERSION
+ shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
diff --git a/databases/postgresql92/patches/patch-src_backend_Makefile b/databases/postgresql92/patches/patch-src_backend_Makefile
new file mode 100644
index 00000000000..3b030a1cedc
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_backend_Makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_backend_Makefile,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/backend/Makefile.orig 2010-07-05 18:54:37.000000000 +0000
++++ src/backend/Makefile
+@@ -17,6 +17,10 @@ subdir = src/backend
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
++CFLAGS+= $(DL_CFLAGS)
++LDFLAGS+= $(DL_LDFLAGS)
++LIBS+= $(DL_LIBS)
++
+ SUBDIRS = access bootstrap catalog parser commands executor foreign lib libpq \
+ main nodes optimizer port postmaster regex replication rewrite \
+ storage tcop tsearch utils $(top_builddir)/src/timezone
diff --git a/databases/postgresql92/patches/patch-src_makefiles_Makefile.solaris b/databases/postgresql92/patches/patch-src_makefiles_Makefile.solaris
new file mode 100644
index 00000000000..e4650311a18
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_makefiles_Makefile.solaris
@@ -0,0 +1,10 @@
+$NetBSD: patch-src_makefiles_Makefile.solaris,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/makefiles/Makefile.solaris.orig 2011-09-23 00:00:48.000000000 +0200
++++ src/makefiles/Makefile.solaris 2011-10-11 11:53:51.948565783 +0200
+@@ -23,5 +23,3 @@ ifeq ($(GCC), yes)
+ else
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -G -o $@ $<
+ endif
+-
+-sqlmansect = 5sql
diff --git a/databases/postgresql92/patches/patch-src_pl_plperl_GNUmakefile b/databases/postgresql92/patches/patch-src_pl_plperl_GNUmakefile
new file mode 100644
index 00000000000..e32624814a8
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_pl_plperl_GNUmakefile
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_pl_plperl_GNUmakefile,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/pl/plperl/GNUmakefile.orig 2012-02-23 22:53:36.000000000 +0000
++++ src/pl/plperl/GNUmakefile
+@@ -60,7 +60,6 @@ XSUBPPDIR = $(shell $(PERL) -e 'use List
+
+ include $(top_srcdir)/src/Makefile.shlib
+
+-plperl.o: perlchunks.h plperl_opmask.h plperl_helpers.h
+
+ plperl_opmask.h: plperl_opmask.pl
+ @if [ x"$(perl_privlibexp)" = x"" ]; then echo "configure switch --with-perl was not specified."; exit 1; fi
+@@ -70,7 +69,7 @@ perlchunks.h: $(PERLCHUNKS)
+ @if [ x"$(perl_privlibexp)" = x"" ]; then echo "configure switch --with-perl was not specified."; exit 1; fi
+ $(PERL) $(srcdir)/text2macro.pl --strip='^(\#.*|\s*)$$' $^ > $@
+
+-all: all-lib
++all: perlchunks.h plperl_opmask.h plperl_helpers.h all-lib
+
+ SPI.c: SPI.xs plperl_helpers.h
+ @if [ x"$(perl_privlibexp)" = x"" ]; then echo "configure switch --with-perl was not specified."; exit 1; fi
diff --git a/databases/postgresql92/patches/patch-src_pl_plperl_plperl.h b/databases/postgresql92/patches/patch-src_pl_plperl_plperl.h
new file mode 100644
index 00000000000..63d0749fc31
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_pl_plperl_plperl.h
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_pl_plperl_plperl.h,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/pl/plperl/plperl.h.orig 2011-09-22 23:57:57.000000000 +0200
++++ src/pl/plperl/plperl.h 2011-10-12 20:36:11.783264869 +0200
+@@ -44,12 +44,21 @@
+ #undef vsnprintf
+ #endif
+
++#ifdef __sun
++#define list_head sun_list_head
++#define list_tail sun_list_tail
++#endif
+
+ /* required for perl API */
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
+
++#ifdef __sun
++#undef list_head
++#undef list_tail
++#endif
++
+ /* put back our snprintf and vsnprintf */
+ #ifdef USE_REPL_SNPRINTF
+ #ifdef snprintf
diff --git a/databases/postgresql92/patches/patch-src_timezone_localtime.c b/databases/postgresql92/patches/patch-src_timezone_localtime.c
new file mode 100644
index 00000000000..6a3f081484a
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_timezone_localtime.c
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_timezone_localtime.c,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/timezone/localtime.c.orig 2009-06-11 16:49:15.000000000 +0200
++++ src/timezone/localtime.c
+@@ -81,20 +81,20 @@ static pg_time_t detzcode64(const char *
+ static int differ_by_repeat(pg_time_t t1, pg_time_t t0);
+ static const char *getzname(const char *strp);
+ static const char *getqzname(const char *strp, int delim);
+-static const char *getnum(const char *strp, int *nump, int min, int max);
++static const char *getnum(const char *strp, int *nump, const int min, const int max);
+ static const char *getsecs(const char *strp, long *secsp);
+ static const char *getoffset(const char *strp, long *offsetp);
+ static const char *getrule(const char *strp, struct rule * rulep);
+ static void gmtload(struct state * sp);
+-static struct pg_tm *gmtsub(const pg_time_t *timep, long offset,
++static struct pg_tm *gmtsub(const pg_time_t *timep, const long offset,
+ struct pg_tm * tmp);
+-static struct pg_tm *localsub(const pg_time_t *timep, long offset,
++static struct pg_tm *localsub(const pg_time_t *timep, const long offset,
+ struct pg_tm * tmp, const pg_tz *tz);
+ static int increment_overflow(int *number, int delta);
+-static pg_time_t transtime(pg_time_t janfirst, int year,
+- const struct rule * rulep, long offset);
++static pg_time_t transtime(pg_time_t janfirst, const int year,
++ const struct rule * rulep, const long offset);
+ static int typesequiv(const struct state * sp, int a, int b);
+-static struct pg_tm *timesub(const pg_time_t *timep, long offset,
++static struct pg_tm *timesub(const pg_time_t *timep, const long offset,
+ const struct state * sp, struct pg_tm * tmp);
+
+ /* GMT timezone */
diff --git a/databases/postgresql92/patches/patch-src_timezone_private.h b/databases/postgresql92/patches/patch-src_timezone_private.h
new file mode 100644
index 00000000000..84fe15d265c
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_timezone_private.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_timezone_private.h,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/timezone/private.h.orig 2009-06-11 16:49:15.000000000 +0200
++++ src/timezone/private.h
+@@ -51,8 +51,8 @@ extern int unlink(const char *filename);
+ extern char *icalloc(int nelem, int elsize);
+ extern char *icatalloc(char *old, const char *new);
+ extern char *icpyalloc(const char *string);
+-extern char *imalloc(int n);
+-extern void *irealloc(void *pointer, int size);
++extern char *imalloc(const int n);
++extern void *irealloc(void *pointer, const int size);
+ extern void icfree(char *pointer);
+ extern void ifree(char *pointer);
+ extern const char *scheck(const char *string, const char *format);
diff --git a/databases/postgresql92/patches/patch-src_timezone_strftime.c b/databases/postgresql92/patches/patch-src_timezone_strftime.c
new file mode 100644
index 00000000000..91eee8e1c43
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_timezone_strftime.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_timezone_strftime.c,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/timezone/strftime.c.orig 2009-06-11 16:49:15.000000000 +0200
++++ src/timezone/strftime.c
+@@ -89,7 +89,7 @@ static const struct lc_time_T C_time_loc
+ };
+
+ static char *_add(const char *, char *, const char *);
+-static char *_conv(int, const char *, char *, const char *);
++static char *_conv(const int, const char *, char *, const char *);
+ static char *_fmt(const char *, const struct pg_tm *, char *,
+ const char *, int *);
+ static char *_yconv(const int, const int, const int, const int,
diff --git a/databases/postgresql92/patches/patch-src_timezone_zic.c b/databases/postgresql92/patches/patch-src_timezone_zic.c
new file mode 100644
index 00000000000..1940fe22903
--- /dev/null
+++ b/databases/postgresql92/patches/patch-src_timezone_zic.c
@@ -0,0 +1,78 @@
+$NetBSD: patch-src_timezone_zic.c,v 1.1 2012/10/05 21:03:10 adam Exp $
+
+--- src/timezone/zic.c.orig 2010-03-16 07:17:04.000000000 +0000
++++ src/timezone/zic.c
+@@ -120,51 +120,51 @@ struct zone
+
+ extern int link(const char *fromname, const char *toname);
+ static void addtt(const pg_time_t starttime, int type);
+-static int addtype(long gmtoff, const char *abbr, int isdst,
+- int ttisstd, int ttisgmt);
+-static void leapadd(const pg_time_t t, int positive, int rolling, int count);
++static int addtype(const long gmtoff, const char *abbr, const int isdst,
++ const int ttisstd, const int ttisgmt);
++static void leapadd(const pg_time_t t, const int positive, const int rolling, int count);
+ static void adjleap(void);
+ static void associate(void);
+ static int ciequal(const char *ap, const char *bp);
+-static void convert(long val, char *buf);
++static void convert(const long val, char *buf);
+ static void dolink(const char *fromfile, const char *tofile);
+ static void doabbr(char *abbr, const char *format,
+- const char *letters, int isdst, int doquotes);
+-static void eat(const char *name, int num);
+-static void eats(const char *name, int num,
+- const char *rname, int rnum);
+-static long eitol(int i);
++ const char *letters, const int isdst, int doquotes);
++static void eat(const char *name, const int num);
++static void eats(const char *name, const int num,
++ const char *rname, const int rnum);
++static long eitol(const int i);
+ static void error(const char *message);
+ static char **getfields(char *buf);
+ static long gethms(const char *string, const char *errstrng,
+- int signable);
++ const int signable);
+ static void infile(const char *filename);
+-static void inleap(char **fields, int nfields);
+-static void inlink(char **fields, int nfields);
+-static void inrule(char **fields, int nfields);
+-static int inzcont(char **fields, int nfields);
+-static int inzone(char **fields, int nfields);
+-static int inzsub(char **fields, int nfields, int iscont);
++static void inleap(char **fields, const int nfields);
++static void inlink(char **fields, const int nfields);
++static void inrule(char **fields, const int nfields);
++static int inzcont(char **fields, const int nfields);
++static int inzone(char **fields, const int nfields);
++static int inzsub(char **fields, const int nfields, const int iscont);
+ static int itsabbr(const char *abbr, const char *word);
+ static int itsdir(const char *name);
+ static int lowerit(int c);
+ static char *memcheck(char *tocheck);
+ static int mkdirs(char *filename);
+ static void newabbr(const char *abbr);
+-static long oadd(long t1, long t2);
+-static void outzone(const struct zone * zp, int ntzones);
+-static void puttzcode(long code, FILE *fp);
++static long oadd(const long t1, const long t2);
++static void outzone(const struct zone * zp, const int ntzones);
++static void puttzcode(const long code, FILE *fp);
+ static int rcomp(const void *leftp, const void *rightp);
+-static pg_time_t rpytime(const struct rule * rp, int wantedy);
++static pg_time_t rpytime(const struct rule * rp, const int wantedy);
+ static void rulesub(struct rule * rp,
+ const char *loyearp, const char *hiyearp,
+ const char *typep, const char *monthp,
+ const char *dayp, const char *timep);
+ static void setboundaries(void);
+-static pg_time_t tadd(const pg_time_t t1, long t2);
++static pg_time_t tadd(const pg_time_t t1, const long t2);
+ static void usage(FILE *stream, int status);
+ static void writezone(const char *name, const char *string);
+-static int yearistype(int year, const char *type);
++static int yearistype(const int year, const char *type);
+
+ static int charcnt;
+ static int errors;