Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
@@ -0,0 +1,13 @@
$NetBSD: patch-config_missing,v 1.1 2016/02/25 21:37:35 tnn 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
;;
*)
@@ -0,0 +1,15 @@
$NetBSD: patch-config_perl.m4,v 1.1 2016/02/25 21:37:35 tnn Exp $
--- config/perl.m4.orig 2013-09-02 20:53:17.000000000 +0000
+++ config/perl.m4
@@ -62,9 +62,7 @@ if test "$PORTNAME" = "win32" ; then
perl_lib=`basename $perl_archlibexp/CORE/perl[[5-9]]*.lib .lib`
test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
else
-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`
fi
AC_SUBST(perl_embed_ldflags)dnl
if test -z "$perl_embed_ldflags" ; then
@@ -0,0 +1,34 @@
$NetBSD: patch-configure,v 1.1 2016/02/25 21:37:35 tnn Exp $
Finally, native solaris uses -lgss for gssapi on mit-krb5.
--- configure.orig 2014-12-16 01:07:34.000000000 +0000
+++ configure
@@ -2852,6 +2852,7 @@ case $host_os in
darwin*) template=darwin ;;
dragonfly*) template=netbsd ;;
freebsd*) template=freebsd ;;
+ dragonfly*) template=dragonfly ;;
hpux*) template=hpux ;;
linux*|gnu*|k*bsd*-gnu)
template=linux ;;
@@ -7310,9 +7311,7 @@ if test "$PORTNAME" = "win32" ; then
perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
else
-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`
fi
if test -z "$perl_embed_ldflags" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
@@ -8407,7 +8406,7 @@ return gss_init_sec_context ();
return 0;
}
_ACEOF
-for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
+for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto' 'gss -lkrb5 lcrypto'; do
if test -z "$ac_lib"; then
ac_res="none required"
else
@@ -0,0 +1,13 @@
$NetBSD: patch-contrib_dblink_dblink.c,v 1.1 2016/02/25 21:37:35 tnn Exp $
--- contrib/dblink/dblink.c.orig 2013-04-01 18:20:36.000000000 +0000
+++ contrib/dblink/dblink.c
@@ -52,7 +52,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/guc.h"
#include "utils/lsyscache.h"
#include "utils/memutils.h"
@@ -0,0 +1,22 @@
$NetBSD: patch-contrib_uuid-ossp_uuid-ossp.c,v 1.1 2016/02/25 21:37:35 tnn Exp $
Explicitly define HAVE_UUID_H and HAVE_UUID_OSSP.
--- contrib/uuid-ossp/uuid-ossp.c.orig 2015-01-14 20:54:38.000000000 +0000
+++ contrib/uuid-ossp/uuid-ossp.c
@@ -26,6 +26,7 @@
*/
#define uuid_hash bsd_uuid_hash
+#define HAVE_UUID_H
#ifdef HAVE_UUID_H
#include <uuid.h>
#endif
@@ -42,6 +43,7 @@
* Some BSD variants offer md5 and sha1 implementations but Linux does not,
* so we use a copy of the ones from pgcrypto. Not needed with OSSP, though.
*/
+#define HAVE_UUID_OSSP
#ifndef HAVE_UUID_OSSP
#include "md5.h"
#include "sha1.h"
@@ -0,0 +1,16 @@
$NetBSD: patch-src_Makefile.global.in,v 1.1 2016/02/25 21:37:35 tnn Exp $
--- src/Makefile.global.in.orig 2015-10-05 19:12:06.000000000 +0000
+++ src/Makefile.global.in
@@ -570,6 +570,11 @@ ifeq ($(PORTNAME),win32)
LIBS += -lws2_32
endif
+# missing for link on cygwin ?
+ifeq ($(PORTNAME),cygwin)
+LIBS += $(LDAP_LIBS_BE)
+endif
+
# Not really standard libc functions, used by the backend.
TAS = @TAS@
@@ -0,0 +1,61 @@
$NetBSD: patch-src_Makefile.shlib,v 1.1 2016/02/25 21:37:35 tnn Exp $
--- src/Makefile.shlib.orig 2016-02-08 21:12:28.000000000 +0000
+++ src/Makefile.shlib
@@ -151,17 +151,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
@@ -177,6 +171,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)
@@ -474,8 +479,10 @@ ifdef soname
# we don't install $(shlib) on AIX
# (see http://archives.postgresql.org/message-id/52EF20B2E3209443BC37736D00C3C1380A6E79FE@EXADV1.host.magwien.gv.at)
ifneq ($(PORTNAME), aix)
+ifeq ($(PORTNAME), cygwin)
+ $(INSTALL_SHLIB) $< '$(DESTDIR)$(bindir)/$(shlib)'
+else
$(INSTALL_SHLIB) $< '$(DESTDIR)$(libdir)/$(shlib)'
-ifneq ($(PORTNAME), cygwin)
ifneq ($(PORTNAME), win32)
ifneq ($(shlib), $(shlib_major))
cd '$(DESTDIR)$(libdir)' && \
@@ -488,7 +495,7 @@ ifneq ($(shlib), $(shlib_bare))
$(LN_S) $(shlib) $(shlib_bare)
endif
endif # not win32
-endif # not cygwin
+endif # cygwin
endif # not aix
ifneq (,$(findstring $(PORTNAME),win32 cygwin))
$(INSTALL_SHLIB) $< '$(DESTDIR)$(bindir)/$(shlib)'
@@ -0,0 +1,24 @@
$NetBSD: patch-src_backend_Makefile,v 1.1 2016/02/25 21:37:35 tnn Exp $
--- src/backend/Makefile.orig 2014-12-16 01:07:34.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
@@ -121,6 +125,8 @@ catalog/schemapg.h: | submake-schemapg
$(top_builddir)/src/port/libpgport_srv.a: | submake-libpgport
+$(top_builddir)/src/common/libpgcommon_srv.a: | submake-libpgport
+
# The postgres.o target is needed by the rule in Makefile.global that
# creates the exports file when MAKE_EXPORTS = true.
@@ -0,0 +1,14 @@
$NetBSD: patch-src_backend_utils_adt_datetime.c,v 1.1 2016/02/25 21:37:35 tnn Exp $
--- src/backend/utils/adt/datetime.c.orig 2014-12-16 01:07:34.000000000 +0000
+++ src/backend/utils/adt/datetime.c
@@ -31,6 +31,9 @@
#include "utils/memutils.h"
#include "utils/tzparser.h"
+#if defined(__NetBSD__)
+#define strtoi pg_strtoi
+#endif
static int DecodeNumber(int flen, char *field, bool haveTextMonth,
int fmask, int *tmask,
@@ -0,0 +1,15 @@
$NetBSD: patch-src_interfaces_ecpg_pgtypeslib_interval.c,v 1.2 2016/05/23 14:27:35 adam Exp $
--- src/interfaces/ecpg/pgtypeslib/interval.c.orig 2016-05-09 20:50:23.000000000 +0000
+++ src/interfaces/ecpg/pgtypeslib/interval.c
@@ -14,6 +14,10 @@
#include "pgtypes_error.h"
#include "pgtypes_interval.h"
+#if defined(__NetBSD__)
+#define strtoi pg_strtoi
+#endif
+
/* copy&pasted from .../src/backend/utils/adt/datetime.c */
static int
strtoint(const char *nptr, char **endptr, int base)
@@ -0,0 +1,13 @@
$NetBSD: patch-src_interfaces_libpq_Makefile,v 1.1 2016/02/25 21:37:35 tnn Exp $
--- src/interfaces/libpq/Makefile.orig 2016-02-08 21:12:28.000000000 +0000
+++ src/interfaces/libpq/Makefile
@@ -49,7 +49,7 @@ OBJS += fe-secure-openssl.o
endif
ifeq ($(PORTNAME), cygwin)
-override shlib = cyg$(NAME)$(DLSUFFIX)
+override shlib = cyg$(NAME)-$(SO_MAJOR_VERSION)$(DLSUFFIX)
endif
ifeq ($(PORTNAME), win32)
@@ -0,0 +1,10 @@
$NetBSD: patch-src_makefiles_Makefile.solaris,v 1.1 2016/02/25 21:37:35 tnn 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
@@ -0,0 +1,21 @@
$NetBSD: patch-src_pl_plperl_GNUmakefile,v 1.1 2016/02/25 21:37:35 tnn Exp $
--- src/pl/plperl/GNUmakefile.orig 2013-09-02 20:53:17.000000000 +0000
+++ src/pl/plperl/GNUmakefile
@@ -55,7 +55,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
@@ -65,7 +64,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
@@ -0,0 +1,26 @@
$NetBSD: patch-src_pl_plperl_plperl.h,v 1.1 2016/02/25 21:37:35 tnn 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