diff --git a/srcpkgs/talloc/patches/pyext.patch b/srcpkgs/talloc/patches/pyext.patch new file mode 100644 index 00000000000..4a6ab360bf3 --- /dev/null +++ b/srcpkgs/talloc/patches/pyext.patch @@ -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 diff --git a/srcpkgs/talloc/template b/srcpkgs/talloc/template index da77f999c27..2c85e379fdd 100644 --- a/srcpkgs/talloc/template +++ b/srcpkgs/talloc/template @@ -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 " 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"