summaryrefslogtreecommitdiff
path: root/community/libpqxx
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-23 23:15:26 +0000
committerroot <root@rshg054.dnsready.net>2011-11-23 23:15:26 +0000
commit1e1e4927b05d9b242bfe83794e3a98ab2c8f79ef (patch)
tree070846cb6770ab17d394d88c3f0cd3ad3eb89842 /community/libpqxx
parent851ab9aa99e9bda38f88b5f5ade096c9137e11c8 (diff)
Wed Nov 23 23:15:26 UTC 2011
Diffstat (limited to 'community/libpqxx')
-rw-r--r--community/libpqxx/PKGBUILD9
-rw-r--r--community/libpqxx/build-fix.patch11
2 files changed, 17 insertions, 3 deletions
diff --git a/community/libpqxx/PKGBUILD b/community/libpqxx/PKGBUILD
index 24d52cc41..c66e1ff07 100644
--- a/community/libpqxx/PKGBUILD
+++ b/community/libpqxx/PKGBUILD
@@ -10,13 +10,16 @@ license=('custom')
url="http://pqxx.org/development/libpqxx/"
depends=('postgresql-libs>=8.4.1')
options=('!libtool')
-source=("http://pqxx.org/download/software/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('4993a516eb88d8a51125607db30ad2ef')
+source=("http://pqxx.org/download/software/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ build-fix.patch)
+md5sums=('4993a516eb88d8a51125607db30ad2ef'
+ 'e59f5f63e1800406bf494e19cea479a4')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 <$srcdir/build-fix.patch
./configure --prefix=/usr --enable-shared
- make || return 1
+ make
make prefix="${pkgdir}/usr" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
diff --git a/community/libpqxx/build-fix.patch b/community/libpqxx/build-fix.patch
new file mode 100644
index 000000000..12795e517
--- /dev/null
+++ b/community/libpqxx/build-fix.patch
@@ -0,0 +1,11 @@
+diff -wbBur libpqxx-3.1/include/pqxx/compiler-internal.hxx libpqxx-3.1.my/include/pqxx/compiler-internal.hxx
+--- libpqxx-3.1/include/pqxx/compiler-internal.hxx 2010-02-16 02:21:36.000000000 +0300
++++ libpqxx-3.1.my/include/pqxx/compiler-internal.hxx 2011-11-21 15:56:00.000000000 +0400
+@@ -18,6 +18,7 @@
+ #ifndef PQXX_H_COMPILER_INTERNAL
+ #define PQXX_H_COMPILER_INTERNAL
+
++#include <cstddef>
+
+ // Workarounds & definitions needed to compile libpqxx into a library
+ #include "pqxx/config-internal-compiler.h"