ldb: update to 2.2.0.
This commit is contained in:
parent
4ec9f82ea8
commit
fd3dabd9ed
5 changed files with 61 additions and 10 deletions
|
@ -2778,7 +2778,8 @@ libply-boot-client.so.4 plymouth-0.9.2_1
|
||||||
libmilter.so.1.0.2 libmilter-1.0.2_1
|
libmilter.so.1.0.2 libmilter-1.0.2_1
|
||||||
libopendkim.so.10 opendkim-2.10.3_1
|
libopendkim.so.10 opendkim-2.10.3_1
|
||||||
libtevent.so.0 tevent-0.9.28_1
|
libtevent.so.0 tevent-0.9.28_1
|
||||||
libldb.so.1 ldb-1.1.26_1
|
libldb.so.2 ldb-2.2.0_1
|
||||||
|
libpyldb-util.so.2 libpyldb-util-2.2.0_1
|
||||||
libpath_utils.so.1 ding-libs-0.5.0_1
|
libpath_utils.so.1 ding-libs-0.5.0_1
|
||||||
libdhash.so.1 ding-libs-0.5.0_1
|
libdhash.so.1 ding-libs-0.5.0_1
|
||||||
libcollection.so.4 ding-libs-0.5.0_1
|
libcollection.so.4 ding-libs-0.5.0_1
|
||||||
|
|
1
srcpkgs/ldb-python3
Symbolic link
1
srcpkgs/ldb-python3
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
ldb
|
21
srcpkgs/ldb/patches/disable-compile-error-test.patch
Normal file
21
srcpkgs/ldb/patches/disable-compile-error-test.patch
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
--- tests/ldb_match_test.c
|
||||||
|
+++ tests/ldb_match_test.c
|
||||||
|
@@ -32,6 +32,8 @@
|
||||||
|
* This allows test applications to use custom definitions of C standard
|
||||||
|
* library functions and types.
|
||||||
|
*/
|
||||||
|
+// fails to compile on musl, so limit to glibc
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
#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
|
|
@ -1,29 +1,56 @@
|
||||||
# Template file for 'ldb'
|
# Template file for 'ldb'
|
||||||
pkgname=ldb
|
pkgname=ldb
|
||||||
version=1.5.1
|
version=2.2.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=waf3
|
||||||
configure_args="--with-modulesdir=/usr/lib/ldb/modules"
|
build_helper="qemu"
|
||||||
hostmakedepends="python pkg-config docbook-xsl libxslt"
|
configure_script="buildtools/bin/waf"
|
||||||
makedepends="tdb-devel tevent-devel popt-devel talloc-devel lmdb-devel"
|
configure_args="--sysconfdir=/etc --localstatedir=/var
|
||||||
|
--disable-rpath --disable-rpath-install --without-gettext
|
||||||
|
--builtin-libraries=replace --bundled-libraries=NONE
|
||||||
|
--with-modulesdir=/usr/lib/ldb/modules"
|
||||||
|
hostmakedepends="pkg-config docbook2x tdb-python3 tevent-python3"
|
||||||
|
makedepends="python3-devel tdb-devel tevent-devel talloc-devel
|
||||||
|
popt-devel lmdb-devel libxslt gettext-devel cmocka-devel"
|
||||||
checkdepends="cmocka-devel"
|
checkdepends="cmocka-devel"
|
||||||
short_desc="LDAP-like database from samba"
|
short_desc="LDAP-like database from samba"
|
||||||
maintainer="Yuusha Spacewolf <xyuusha@paranoici.org>"
|
maintainer="Yuusha Spacewolf <xyuusha@paranoici.org>"
|
||||||
license="LGPL-3.0-or-later"
|
license="LGPL-3.0-or-later"
|
||||||
homepage="https://www.samba.org/ldb/"
|
homepage="https://www.samba.org/ldb/"
|
||||||
distfiles="https://www.samba.org/ftp/pub/ldb/ldb-${version}.tar.gz"
|
distfiles="https://www.samba.org/ftp/pub/ldb/ldb-${version}.tar.gz"
|
||||||
checksum=232e54b87c53210a6861424ad411b04dbfa0f2ca4bc463aefea188158e0cc963
|
checksum=134bb51769709af59f30bf468e454d1377a8096acd4e80dcb42fd264f558bd5f
|
||||||
|
|
||||||
nocross="see srcpkgs/tdb (cross-32bit.answers)."
|
|
||||||
|
|
||||||
# workaround for cmocka's broken uintptr_t definition on musl
|
# workaround for cmocka's broken uintptr_t definition on musl
|
||||||
if [ "$XBPS_TARGET_WORDSIZE" = "64" -a "$XBPS_TARGET_LIBC" = "musl" ]; then
|
if [ "$XBPS_TARGET_WORDSIZE" = "64" -a "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
CFLAGS+=" -D__WORDSIZE=64"
|
CFLAGS+=" -D__WORDSIZE=64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
# Avoid Python shlib extension noise in libpyldb-util.so
|
||||||
|
vsed -e "/env.pyext_PATTERN/s/dct\['SO'\]/'.so'/" \
|
||||||
|
-i third_party/waf/waflib/Tools/python.py
|
||||||
|
}
|
||||||
|
|
||||||
|
ldb-python3_package() {
|
||||||
|
short_desc+=" - Python3 bindings"
|
||||||
|
pkg_install() {
|
||||||
|
vmove ${py3_lib}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libpyldb-util_package() {
|
||||||
|
short_desc+=" - Python3 utility library"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/libpyldb-util.so.*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ldb-devel_package() {
|
ldb-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}
|
||||||
|
libpyldb-util>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
|
|
1
srcpkgs/libpyldb-util
Symbolic link
1
srcpkgs/libpyldb-util
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
ldb
|
Loading…
Add table
Reference in a new issue