Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "Hierarchical, reference counted memory pool system with destructors" |
| 2 | HOMEPAGE = "https://talloc.samba.org" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later" |
| 5 | LIC_FILES_CHKSUM = "file://talloc.h;beginline=3;endline=27;md5=a301712782cad6dd6d5228bfa7825249 \ |
| 6 | file://pytalloc.h;beginline=1;endline=18;md5=21ab13bd853679d7d47a1739cb3b7db6 \ |
| 7 | " |
| 8 | |
| 9 | export PYTHONHASHSEED="1" |
| 10 | |
| 11 | SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ |
| 12 | file://0001-talloc-Add-configure-options-for-packages.patch \ |
| 13 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
| 14 | " |
| 15 | SRC_URI[sha256sum] = "179f9ebe265e67e4ab2c26cad2b7de4b6a77c6c212f966903382869f06be6505" |
| 16 | |
| 17 | inherit waf-samba |
| 18 | |
| 19 | PACKAGECONFIG ??= "\ |
| 20 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 21 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 22 | " |
| 23 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 24 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
| 25 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" |
| 26 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 27 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
| 28 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
| 29 | |
| 30 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" |
| 31 | |
| 32 | S = "${WORKDIR}/talloc-${PV}" |
| 33 | |
| 34 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 35 | #to cross Popen |
| 36 | export WAF_NO_PREFORK="yes" |
| 37 | |
| 38 | EXTRA_OECONF += "--disable-rpath \ |
| 39 | --disable-rpath-install \ |
| 40 | --bundled-libraries=NONE \ |
| 41 | --builtin-libraries=replace \ |
| 42 | --disable-silent-rules \ |
| 43 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 44 | " |
| 45 | |
| 46 | PACKAGES += "pytalloc pytalloc-dev" |
| 47 | |
| 48 | RPROVIDES:${PN}-dbg += "pytalloc-dbg" |
| 49 | |
| 50 | FILES:pytalloc = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ |
| 51 | ${libdir}/libpytalloc-util.so.2 \ |
| 52 | ${libdir}/libpytalloc-util.so.2.1.1 \ |
| 53 | " |
| 54 | FILES:pytalloc-dev = "${libdir}/libpytalloc-util.so" |
| 55 | RDEPENDS:pytalloc = "python3" |