Commit bfaf11c3 authored by J0WI's avatar J0WI Committed by Leonardo Arena

main/ldb: upgrade to 1.3.8

parent 0453a3d0
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ldb
pkgver=1.3.6
pkgver=1.3.8
pkgrel=0
pkgdesc="A schema-less, ldap like, API and database"
url="http://ldb.samba.org/"
url="https://ldb.samba.org/"
arch="all"
license="LGPL-3.0-or-later"
makedepends="libtirpc-dev tevent-dev py2-tevent tdb-dev py2-tdb talloc-dev
python2-dev python3-dev popt-dev cmocka-dev"
subpackages="$pkgname-dev py2-$pkgname:_py2 py3-$pkgname:_py3 $pkgname-tools"
source="https://www.samba.org/ftp/pub/ldb/$pkgname-$pkgver.tar.gz
disable-python-tests.patch
"
disable-compile-error-test.patch"
builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
......@@ -68,5 +67,5 @@ tools() {
mv "$pkgdir"/usr/lib/ldb/libldb-cmdline.* "$subpkgdir"/usr/lib/ldb/
}
sha512sums="8fcd72598e948c55adaa832d6ebcbc03b979281032cb900af4304c1c68ce9cc94a1e1d4729d0c2a0b83a618cab716749d851160005a0093cf8a178e6dbea298d ldb-1.3.6.tar.gz
4b65362539ad169997b437b4b3444693ff318892931a827e220583e6c5114472a2029e90681be942c3a3ec76db82dedc23300d82e094c8fa8e9f24814756f8f9 disable-python-tests.patch"
sha512sums="06d1b4c2badbf0c27733a64f979c48af8b599747cef7cd7f5417cd55a76447e8f8987bd061694c5af63261fdb35433e3844122c14103d5cc8b4eaab1f4752541 ldb-1.3.8.tar.gz
ed55d5151bbcaf5c0a1b70a1f44b461a501ad94ce02ee97e3ea10c560ce3656a190510697bbd3c5b6f70a74519bf7c0a91210bcb415ffd97d9440045e10a02e8 disable-compile-error-test.patch"
--- a/tests/ldb_match_test.c
+++ b/tests/ldb_match_test.c
@@ -32,6 +32,8 @@
* This allows test applications to use custom definitions of C standard
* library functions and types.
*/
+// disabled on alpine
+#if 0
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
@@ -189,3 +191,9 @@
return cmocka_run_group_tests(tests, NULL, NULL);
}
+#else
+int main(int argc, const char **argv)
+{
+ return 0;
+}
+#endif
Do not run python tests, they take eternity to finish.
--- a/wscript
+++ b/wscript
@@ -370,21 +370,13 @@
ret = samba_utils.RUN_COMMAND(cmd)
print("testsuite returned %d" % ret)
- tmp_dir = os.path.join(test_prefix, 'tmp')
- if not os.path.exists(tmp_dir):
- os.mkdir(tmp_dir)
- pyret = samba_utils.RUN_PYTHON_TESTS(
- ['tests/python/api.py', 'tests/python/index.py'],
- extra_env={'SELFTEST_PREFIX': test_prefix})
- print("Python testsuite returned %d" % pyret)
-
cmocka_ret = 0
for test_exe in ['ldb_tdb_mod_op_test',
'ldb_msg_test']:
cmd = os.path.join(Utils.g_module.blddir, test_exe)
cmocka_ret = cmocka_ret or samba_utils.RUN_COMMAND(cmd)
- sys.exit(ret or pyret or cmocka_ret)
+ sys.exit(ret or cmocka_ret)
def dist():
'''makes a tarball for distribution'''
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment