talloc: enable python bindings
Also support cross compilation without relying on "answer" files.
This commit is contained in:
parent
37e34a474c
commit
02517ce311
|
@ -735,6 +735,7 @@ libasm.so.1 libelf-0.155_1
|
||||||
libdebuginfod.so.1 libdebuginfod-0.182_1
|
libdebuginfod.so.1 libdebuginfod-0.182_1
|
||||||
libgtksourceview-3.0.so.1 gtksourceview-3.8.0_1
|
libgtksourceview-3.0.so.1 gtksourceview-3.8.0_1
|
||||||
libtalloc.so.2 talloc-2.0.1_1
|
libtalloc.so.2 talloc-2.0.1_1
|
||||||
|
libpytalloc-util.so.2 libpytalloc-util-2.3.1_2
|
||||||
libmount.so.1 libmount-2.18_1
|
libmount.so.1 libmount-2.18_1
|
||||||
libdconf.so.1 dconf-0.13.90_1
|
libdconf.so.1 dconf-0.13.90_1
|
||||||
libassuan.so.0 libassuan-2.0.1_1
|
libassuan.so.0 libassuan-2.0.1_1
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
talloc
|
|
@ -0,0 +1 @@
|
||||||
|
talloc
|
|
@ -1,47 +0,0 @@
|
||||||
Checking uname sysname type: "Linux"
|
|
||||||
Checking uname machine type: "dontcare"
|
|
||||||
Checking uname release type: "dontcare"
|
|
||||||
Checking uname version type: "dontcare"
|
|
||||||
Checking simple C program: OK
|
|
||||||
Checking for -D_LARGE_FILES: OK
|
|
||||||
building library support: OK
|
|
||||||
Checking for large file support: OK
|
|
||||||
Checking for -D_FILE_OFFSET_BITS=64: OK
|
|
||||||
Checking for WORDS_BIGENDIAN: OK
|
|
||||||
Checking size of char: "1"
|
|
||||||
Checking size of int: "4"
|
|
||||||
Checking size of long long: "4"
|
|
||||||
Checking size of long: "4"
|
|
||||||
Checking size of off_t: "4"
|
|
||||||
Checking size of short: "2"
|
|
||||||
Checking size of size_t: "4"
|
|
||||||
Checking size of ssize_t: "4"
|
|
||||||
Checking size of dev_t: "4"
|
|
||||||
Checking size of ino_t: "4"
|
|
||||||
Checking size of time_t: "4"
|
|
||||||
Checking size of void*: "4"
|
|
||||||
Checking for C99 vsnprintf: OK
|
|
||||||
Checking for HAVE_SECURE_MKSTEMP: OK
|
|
||||||
rpath library support: OK
|
|
||||||
-Wl,--version-script support: OK
|
|
||||||
Checking size of bool: "1"
|
|
||||||
Checking size of int8_t: "1"
|
|
||||||
Checking size of uint8_t: "1"
|
|
||||||
Checking size of int16_t: "2"
|
|
||||||
Checking size of uint16_t: "2"
|
|
||||||
Checking size of int32_t: "4"
|
|
||||||
Checking size of uint32_t: "4"
|
|
||||||
Checking size of int64_t: "4"
|
|
||||||
Checking size of uint64_t: "4"
|
|
||||||
Checking correct behavior of strtoll: OK
|
|
||||||
Checking correct behavior of strptime: OK
|
|
||||||
Checking for HAVE_IFACE_GETIFADDRS: OK
|
|
||||||
Checking for HAVE_IFACE_IFCONF: OK
|
|
||||||
Checking for HAVE_IFACE_IFREQ: OK
|
|
||||||
Checking getconf LFS_CFLAGS: "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
||||||
Checking for large file support without additional flags: OK
|
|
||||||
Checking for working strptime: OK
|
|
||||||
Checking for HAVE_SHARED_MMAP: OK
|
|
||||||
Checking for HAVE_MREMAP: OK
|
|
||||||
Checking for HAVE_INCOHERENT_MMAP: NO
|
|
||||||
Checking getconf large file support flags work: OK
|
|
|
@ -1,9 +1,15 @@
|
||||||
# Template file for 'talloc'
|
# Template file for 'talloc'
|
||||||
pkgname=talloc
|
pkgname=talloc
|
||||||
version=2.3.1
|
version=2.3.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=configure
|
build_style=waf3
|
||||||
hostmakedepends="pkg-config python3 libxslt docbook-xsl which"
|
build_helper="qemu"
|
||||||
|
configure_script="buildtools/bin/waf"
|
||||||
|
configure_args="--sysconfdir=/etc --localstatedir=/var
|
||||||
|
--disable-rpath --disable-rpath-install --without-gettext
|
||||||
|
--builtin-libraries=replace --bundled-libraries=NONE"
|
||||||
|
hostmakedepends="pkg-config docbook2x"
|
||||||
|
makedepends="python3-devel libtirpc-devel libxslt gettext-devel"
|
||||||
short_desc="Hierarchical pool based memory allocator with destructors"
|
short_desc="Hierarchical pool based memory allocator with destructors"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
|
@ -11,22 +17,36 @@ homepage="https://talloc.samba.org/"
|
||||||
distfiles="http://samba.org/ftp/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="http://samba.org/ftp/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=ef4822d2fdafd2be8e0cabc3ec3c806ae29b8268e932c5e9a4cd5585f37f9f77
|
checksum=ef4822d2fdafd2be8e0cabc3ec3c806ae29b8268e932c5e9a4cd5585f37f9f77
|
||||||
|
|
||||||
do_configure() {
|
export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
cp "$FILESDIR"/cross-32bit.answers .
|
|
||||||
_args+=" --cross-compile --hostcc=${CC} --cross-answers=cross-32bit.answers"
|
|
||||||
fi
|
|
||||||
|
|
||||||
./configure --prefix=/usr --disable-python ${_args}
|
post_patch() {
|
||||||
|
# Avoid Python shlib extension noise in libpytallic-util.so
|
||||||
|
vsed -e "/env.pyext_PATTERN/s/dct\['SO'\]/'.so'/" \
|
||||||
|
-i third_party/waf/waflib/Tools/python.py
|
||||||
|
}
|
||||||
|
|
||||||
|
talloc-python3_package() {
|
||||||
|
short_desc+=" - Python3 bindings"
|
||||||
|
pkg_install() {
|
||||||
|
vmove ${py3_lib}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libpytalloc-util_package() {
|
||||||
|
short_desc+=" - Python3 utility library"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/libpytalloc-util.so.*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
talloc-devel_package() {
|
talloc-devel_package() {
|
||||||
depends="${sourcepkg}-${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}
|
||||||
|
libpytalloc-util>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove usr/lib/libtalloc.so
|
vmove "usr/lib/*.so"
|
||||||
vmove usr/share/man/man3
|
vmove usr/share/man/man3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue