From 8de993067a9747878b7d8e547afa01412adae232 Mon Sep 17 00:00:00 2001 From: Alexpux Date: Sat, 27 Dec 2014 21:59:04 +0300 Subject: [PATCH] postgresql: Update to 9.4.0 --- mingw-w64-postgresql/PKGBUILD | 11 ++++++----- .../postgresql-9.3.1-plpython-mingw.patch | 16 ++++++++-------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/mingw-w64-postgresql/PKGBUILD b/mingw-w64-postgresql/PKGBUILD index dc48bc77b7..c0cfb64f9d 100644 --- a/mingw-w64-postgresql/PKGBUILD +++ b/mingw-w64-postgresql/PKGBUILD @@ -2,8 +2,8 @@ _realname=postgresql pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" -pkgver=9.3.5 -pkgrel=3 +pkgver=9.4.0 +pkgrel=1 pkgdesc="Libraries for use with PostgreSQL (mingw-w64)" arch=('any') url="http://www.postgresql.org/" @@ -25,9 +25,9 @@ options=('staticlibs' 'strip') source=("http://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2" postgresql-9.2.4-plperl-mingw.patch postgresql-9.3.1-plpython-mingw.patch) -md5sums=('5059857c7d7e6ad83b6d55893a121b59' +md5sums=('8cd6e33e1f8d4d2362c8c08bd0e8802b' '6a11681fbd19a3ccf8d41f7fbc9b4392' - '6401b50c0dee9c963985f0d3f4dbe329') + '90aabb839c09ef93a1521daf97b63935') prepare() { cd ${srcdir}/postgresql-$pkgver @@ -52,7 +52,8 @@ build() { --with-libxslt \ --with-python \ --without-perl \ - --with-tcl --with-tclconfig=${MINGW_PREFIX}/lib + --with-tcl \ + --with-tclconfig=${MINGW_PREFIX}/lib # Make DLL definition file visible during each arch build ln -s "${srcdir}/postgresql-$pkgver/src/interfaces/libpq/libpqdll.def" src/interfaces/libpq/ diff --git a/mingw-w64-postgresql/postgresql-9.3.1-plpython-mingw.patch b/mingw-w64-postgresql/postgresql-9.3.1-plpython-mingw.patch index 4cc030c352..f810e67051 100644 --- a/mingw-w64-postgresql/postgresql-9.3.1-plpython-mingw.patch +++ b/mingw-w64-postgresql/postgresql-9.3.1-plpython-mingw.patch @@ -1,16 +1,16 @@ ---- postgresql-9.3.1/src/pl/plpython/Makefile.orig 2013-12-01 09:52:55.043200000 +0400 -+++ postgresql-9.3.1/src/pl/plpython/Makefile 2013-12-01 09:54:53.591200000 +0400 +--- postgresql-9.4.0/src/pl/plpython/Makefile.orig 2014-12-27 09:52:55.043200000 +0400 ++++ postgresql-9.4.0/src/pl/plpython/Makefile 2014-12-27 09:54:53.591200000 +0400 @@ -63,11 +63,8 @@ - ifeq ($(PORTNAME), win32) - pytverstr=$(subst .,,${python_version}) + OBJS += libpython${pytverstr}.a + -libpython${pytverstr}.a: python${pytverstr}.def -- dlltool --dllname python${pytverstr}.dll --def python${pytverstr}.def --output-lib libpython${pytverstr}.a --WD=$(subst \,/,$(WINDIR)) +- dlltool --dllname python${pytverstr}.dll --def python${pytverstr}.def --output-lib libpython${pytverstr}.a +- -python${pytverstr}.def: -- pexports $(WD)/system32/python${pytverstr}.dll > python${pytverstr}.def +- pexports $(PYTHONDLL) > $@ +libpython${pytverstr}.a: + cp -f $(python_libdir)/libpython${python_version}.dll.a libpython${pytverstr}.a - endif + endif # win32