talloc: update to 2.3.4.

This commit is contained in:
Andrew J. Hesford 2022-09-19 21:07:48 -04:00
parent f1c8b76b53
commit 6ad922b90c
2 changed files with 17 additions and 9 deletions

View file

@ -0,0 +1,13 @@
Python wants to put ABI descriptors in shared objects, but they are wrong when
Void cross compiles. Just drop the descriptors altogether.
--- a/third_party/waf/waflib/Tools/python.py
+++ b/third_party/waf/waflib/Tools/python.py
@@ -328,7 +328,7 @@
x = 'MACOSX_DEPLOYMENT_TARGET'
if dct[x]:
env[x] = conf.environ[x] = str(dct[x])
- env.pyext_PATTERN = '%s' + (dct['EXT_SUFFIX'] or dct['SO']) # SO is deprecated in 3.5 and removed in 3.11
+ env.pyext_PATTERN = '%s.so'
# Try to get pythonX.Y-config

View file

@ -1,13 +1,13 @@
# Template file for 'talloc'
pkgname=talloc
version=2.3.3
version=2.3.4
revision=1
build_style=waf3
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"
--builtin-libraries=replace --bundled-libraries=pytalloc-util"
hostmakedepends="pkg-config docbook2x"
makedepends="python3-devel libtirpc-devel libxslt gettext-devel"
short_desc="Hierarchical pool based memory allocator with destructors"
@ -15,15 +15,10 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://talloc.samba.org/"
distfiles="https://download.samba.org/pub/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=6be95b2368bd0af1c4cd7a88146eb6ceea18e46c3ffc9330bf6262b40d1d8aaa
checksum=179f9ebe265e67e4ab2c26cad2b7de4b6a77c6c212f966903382869f06be6505
export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
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
}
export PYTHONHASHSEED=1
talloc-python3_package() {
short_desc+=" - Python3 bindings"