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://tevent.samba.org" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPL-3.0-or-later" |
| 5 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 6 | DEPENDS += "libtalloc libtirpc cmocka" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 7 | RDEPENDS:python3-tevent = "python3" |
| 8 | |
| 9 | export PYTHONHASHSEED="1" |
| 10 | |
| 11 | SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \ |
| 12 | file://0001-Add-configure-options-for-packages.patch \ |
| 13 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 14 | file://run-ptest \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 15 | " |
| 16 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 17 | LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=47386b7c539bf2706b7ce52dc9341681" |
| 18 | |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame^] | 19 | SRC_URI[sha256sum] = "1aa58f21017ed8c2f606ae84aa7e795b5439edd4dd5f68f1a388a7d6fb40f682" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 20 | |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 21 | inherit pkgconfig ptest waf-samba |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 22 | |
| 23 | PACKAGECONFIG ??= "\ |
| 24 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 25 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 26 | " |
| 27 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 28 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 29 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 30 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
| 31 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
| 32 | |
| 33 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" |
| 34 | |
| 35 | S = "${WORKDIR}/tevent-${PV}" |
| 36 | |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame^] | 37 | # Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 38 | # to cross Popen |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 39 | export WAF_NO_PREFORK="yes" |
| 40 | |
| 41 | EXTRA_OECONF += "--disable-rpath \ |
| 42 | --disable-rpath-install \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 43 | --bundled-libraries=NONE \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 44 | --builtin-libraries=replace \ |
| 45 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 46 | --without-gettext \ |
| 47 | " |
| 48 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 49 | do_install_ptest() { |
| 50 | install -d ${D}${PTEST_PATH}/tests |
| 51 | install -m 0755 ${B}/bin/test_tevent_* ${D}${PTEST_PATH}/tests/ |
| 52 | install -m 0755 ${B}/bin/replace_testsuite ${D}${PTEST_PATH}/tests/ |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 53 | } |
| 54 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 55 | PACKAGES += "python3-tevent" |
| 56 | |
| 57 | RPROVIDES:${PN}-dbg += "python3-tevent-dbg" |
| 58 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 59 | FILES:python3-tevent = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 60 | |
| 61 | INSANE_SKIP:${MLPREFIX}python3-tevent = "dev-so" |