diff options
author | Peter Babič | 2017-02-13 20:08:37 +0100 |
---|---|---|
committer | Peter Babič | 2017-02-13 20:08:37 +0100 |
commit | 1fde2334c6a9cd2fb7b92754d7ab1a51bb33fec4 (patch) | |
tree | 744804f59f40060727f9868e4a8a67e41fb9c08c | |
parent | da3f178397f38aeeeedc9efdf524c6ee8c43fcb9 (diff) | |
download | aur-1fde2334c6a9cd2fb7b92754d7ab1a51bb33fec4.tar.gz |
add patch to successfuly compile it on arch
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rw-r--r-- | scriptbasic_arch.patch | 24 |
3 files changed, 34 insertions, 6 deletions
@@ -7,7 +7,9 @@ pkgbase = scriptbasic license = unknown depends = postgresql-libs source = http://www.scriptbasic.org/download/SB_2.1_RC1_Linux.tar.gz + source = scriptbasic_arch.patch md5sums = 374a37fff435d26c08cfe2ed8d694a8e + md5sums = f026797fd8e695a797e1eee2f04e264a pkgname = scriptbasic @@ -18,15 +18,17 @@ backup=() options=() install= changelog= -source=("http://www.scriptbasic.org/download/SB_${pkgver}_Linux.tar.gz") +source=("http://www.scriptbasic.org/download/SB_${pkgver}_Linux.tar.gz" + "scriptbasic_arch.patch") noextract=() -md5sums=('374a37fff435d26c08cfe2ed8d694a8e') +md5sums=('374a37fff435d26c08cfe2ed8d694a8e' + 'f026797fd8e695a797e1eee2f04e264a') validpgpkeys=() -#prepare() { -# cd "$pkgname-$pkgver" -# patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" -#} +prepare() { + cd "scriptbasic" + patch -p1 -i "scriptbasic_arch.patch" +} #build() { # cd "$pkgname-$pkgver" diff --git a/scriptbasic_arch.patch b/scriptbasic_arch.patch new file mode 100644 index 000000000000..d21dacc4ab3d --- /dev/null +++ b/scriptbasic_arch.patch @@ -0,0 +1,24 @@ +diff -Nur scriptbasic/extensions/bdb/interface.c scriptbasic_PATCHED/extensions/bdb/interface.c +--- scriptbasic/extensions/bdb/interface.c 2009-09-12 22:37:24.000000000 +0200 ++++ scriptbasic_PATCHED/extensions/bdb/interface.c 2017-02-13 19:58:19.427041356 +0100 +@@ -157,7 +157,7 @@ + if( s=besCONFIG("bdb.limits.lg_max") )p->dbenv->set_lg_max(p->dbenv,atol(s));
+ #endif
+ X("bdb.limits.mp_mmapsize",mp_mmapsize)
+- X("bdb.limits.mp_size" ,mp_size)
++ X("bdb.limits.mp_size" ,mp_bytes)
+ X("bdb.limits.tx_max" ,tx_max)
+ X("bdb.limits.lk_max" ,lk_max)
+
+diff -Nur scriptbasic/extensions/psql/interface.c scriptbasic_PATCHED/extensions/psql/interface.c +--- scriptbasic/extensions/psql/interface.c 2009-09-12 22:37:24.000000000 +0200 ++++ scriptbasic_PATCHED/extensions/psql/interface.c 2017-02-13 19:57:33.740674239 +0100 +@@ -24,7 +24,7 @@ + #define PTS_MODULE "pgsqlinterf.c" + + /* vvv Debian GNU/Linux: /usr/include/postgresql/libpq-fe.h */ +-#include <postgresql/libpq-fe.h> ++#include <libpq-fe.h> + #include "../../basext.h" + #include <stdio.h> /* simple debugging */ + #include <string.h> /* memcmp() */ |