diff --git a/srcpkgs/postgresql/patches/plperl_5.14.patch b/srcpkgs/postgresql/patches/plperl_5.14.patch new file mode 100644 index 00000000000..f5b524b0083 --- /dev/null +++ b/srcpkgs/postgresql/patches/plperl_5.14.patch @@ -0,0 +1,35 @@ +*** src/pl/plperl/plperl.c +--- src/pl/plperl/plperl.c +*************** +*** 700,706 **** plperl_trusted_init(void) + if (!isGV_with_GP(sv) || !GvCV(sv)) + continue; + SvREFCNT_dec(GvCV(sv)); /* free the CV */ +! GvCV(sv) = NULL; /* prevent call via GV */ + } + hv_clear(stash); + /* invalidate assorted caches */ +--- 700,706 ---- + if (!isGV_with_GP(sv) || !GvCV(sv)) + continue; + SvREFCNT_dec(GvCV(sv)); /* free the CV */ +! GvCV_set(sv, NULL); /* prevent call via GV */ + } + hv_clear(stash); + /* invalidate assorted caches */ +*** src/pl/plperl/plperl.h +--- src/pl/plperl/plperl.h +*************** +*** 43,48 **** +--- 43,53 ---- + #undef bool + #endif + ++ /* supply GvCV_set if it's missing - ppport.h doesn't supply it, unfortunately */ ++ #ifndef GvCV_set ++ #define GvCV_set(gv, cv) (GvCV(gv) = cv) ++ #endif ++ + /* routines from spi_internal.c */ + int spi_DEBUG(void); + int spi_LOG(void); diff --git a/srcpkgs/postgresql/template b/srcpkgs/postgresql/template index f1841bed22b..27302cc3644 100644 --- a/srcpkgs/postgresql/template +++ b/srcpkgs/postgresql/template @@ -1,6 +1,6 @@ # Template file for 'postgresql' pkgname=postgresql -version=8.4.6 +version=8.4.8 distfiles="ftp://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${version}.tar.bz2" build_style=gnu_configure configure_args="--with-docdir=/usr/share/doc --with-openssl --with-python @@ -10,7 +10,9 @@ configure_args="--with-docdir=/usr/share/doc --with-openssl --with-python --with-system-tzdata=/usr/share/zoneinfo --enable-nls --with-gnu-ld" short_desc="Sophisticated open-source Object-Relational DBMS" maintainer="Juan RP " -checksum=8110c576e9055286d7b04b8930f7a378e483f0530b41dd3098f6e35528ed7d3c +homepage="http://www.postgresql.org" +license="BSD" +checksum=3e90ef2a86a9f4831e21ff4a574fbfb8e1b8c097af637c93ec43c64c684a0938 long_desc=" PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture