diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-10 00:32:24 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-10 00:33:18 +0100 |
commit | 066b35bd070d22f59e5f3fd5be29614d34517721 (patch) | |
tree | 26a2e5056b484382130074ce02d8c83288da42da /main/lua-ldap/APKBUILD | |
parent | 23980ddbd76a735adb0f6f8f66b4a80d72df363a (diff) | |
download | aports-066b35bd070d22f59e5f3fd5be29614d34517721.tar.bz2 aports-066b35bd070d22f59e5f3fd5be29614d34517721.tar.xz |
main/lua-ldap: fix segfault, iteration error and run tests
Diffstat (limited to 'main/lua-ldap/APKBUILD')
-rw-r--r-- | main/lua-ldap/APKBUILD | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/main/lua-ldap/APKBUILD b/main/lua-ldap/APKBUILD index 57b50e820e..9e3b937005 100644 --- a/main/lua-ldap/APKBUILD +++ b/main/lua-ldap/APKBUILD @@ -4,15 +4,20 @@ pkgname=lua-ldap _pkgname=lualdap pkgver=1.2.3 -pkgrel=2 +pkgrel=3 pkgdesc="Lua binding to LDAP" url="https://github.com/bdellegrazie/lualdap" arch="all" license="MIT" depends="" makedepends="openldap-dev" +checkdepends="bash openldap openldap-back-bdb" subpackages="" -source="$_pkgname-$pkgver.tar.gz::https://github.com/bdellegrazie/$_pkgname/archive/v$pkgver.tar.gz" +source="$_pkgname-$pkgver.tar.gz::https://github.com/bdellegrazie/$_pkgname/archive/v$pkgver.tar.gz + fix-open_simple-segfault.patch + fix-search-iter.patch + script-to-run-test.lua-against-a-dummy-slapd.patch + update-test.lua-for-5.2.patch" builddir="$srcdir/$_pkgname-$pkgver" _luaversions="5.1 5.2 5.3" @@ -37,11 +42,20 @@ build() { msg "Building for Lua $lver..." cd "$builddir-$lver" - make CFLAGS="-DLDAP_DEPRECATED -fPIC -ansi $(pkg-config --cflags lua$lver)" \ + make CFLAGS="-fPIC -ansi -Wall $(pkg-config --cflags lua$lver)" \ OPENLDAP_LIB="-lldap -llber" || return 1 done } +check() { + local lver; for lver in $_luaversions; do + msg "Testing with Lua $lver..." + + cd "$builddir-$lver" + make LUA=lua$lver check || return 1 + done +} + package() { mkdir -p "$pkgdir" } @@ -60,6 +74,8 @@ _package() { install } -md5sums="a9eda2f55640a8c816b4d4c6c3d7ef1b lualdap-1.2.3.tar.gz" -sha256sums="efde10853429fe1c1c208604a352bee395ac897d407f9d7bf9efca62cff02f67 lualdap-1.2.3.tar.gz" -sha512sums="51934d18d1ee97a0130545e657497e51542eef97c338df14e7171f94a2d6395fceb00313e1e64e46e6cdeedf85a17c63284595fdf6fbce8b7abce29d28f1b4a7 lualdap-1.2.3.tar.gz" +sha512sums="51934d18d1ee97a0130545e657497e51542eef97c338df14e7171f94a2d6395fceb00313e1e64e46e6cdeedf85a17c63284595fdf6fbce8b7abce29d28f1b4a7 lualdap-1.2.3.tar.gz +6f71ec19be58e21778cdce0a28d52c2629df736a8cbd119e6b98a306f20df193c0a646449b40104490f992750d1fbcef4519238aca4b9706f7460a6238009769 fix-open_simple-segfault.patch +f1ba8e85421498abab814c20d2e410c5b13a6b63d0d56463ad38434405c5ae1cc694f168edfb37a0a727597f68dd67d511d234947b9df55d6322751275d4df61 fix-search-iter.patch +62d1fb82529ea2d5302a84d163c8cfb5f5681d2927ecb5699a486a2aaf6f6a45f9c36e18d167ed120620615db2693abed1881621e4bb0d7b992445696072989a script-to-run-test.lua-against-a-dummy-slapd.patch +970da7a53d050210298712742decdf2b617450e78ebaed993c73b5300870f2b1979661c83a82d316b37f26f373c2c86d6a024ab82c1b628c73f0ca6e9c61b0ac update-test.lua-for-5.2.patch" |