diff options
Diffstat (limited to 'meta-networking/recipes-support/libtalloc/libtalloc_2.4.3.bb')
-rw-r--r-- | meta-networking/recipes-support/libtalloc/libtalloc_2.4.3.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc_2.4.3.bb b/meta-networking/recipes-support/libtalloc/libtalloc_2.4.3.bb new file mode 100644 index 0000000000..ff36a61d15 --- /dev/null +++ b/meta-networking/recipes-support/libtalloc/libtalloc_2.4.3.bb | |||
@@ -0,0 +1,61 @@ | |||
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 | export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}" | ||
11 | |||
12 | SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ | ||
13 | file://0001-talloc-Add-configure-options-for-packages.patch \ | ||
14 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | SRC_URI[sha256sum] = "dc46c40b9f46bb34dd97fe41f548b0e8b247b77a918576733c528e83abd854dd" | ||
18 | |||
19 | inherit waf-samba pkgconfig ptest | ||
20 | |||
21 | PACKAGECONFIG ??= "\ | ||
22 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ | ||
23 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
24 | " | ||
25 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" | ||
26 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | ||
27 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" | ||
28 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" | ||
29 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" | ||
30 | |||
31 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" | ||
32 | |||
33 | S = "${UNPACKDIR}/talloc-${PV}" | ||
34 | |||
35 | # Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen | ||
36 | # to cross Popen | ||
37 | export WAF_NO_PREFORK = "yes" | ||
38 | |||
39 | EXTRA_OECONF += "--disable-rpath \ | ||
40 | --disable-rpath-install \ | ||
41 | --bundled-libraries=NONE \ | ||
42 | --builtin-libraries=replace \ | ||
43 | --disable-silent-rules \ | ||
44 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ | ||
45 | " | ||
46 | |||
47 | do_install_ptest() { | ||
48 | install -d ${D}${PTEST_PATH}/tests | ||
49 | install -m 0755 ${B}/bin/*_testsuite ${D}${PTEST_PATH}/tests/ | ||
50 | } | ||
51 | |||
52 | PACKAGES += "pytalloc pytalloc-dev" | ||
53 | |||
54 | RPROVIDES:${PN}-dbg += "pytalloc-dbg" | ||
55 | |||
56 | FILES:pytalloc = "${PYTHON_SITEPACKAGES_DIR}/* \ | ||
57 | ${libdir}/libpytalloc-util.so.2 \ | ||
58 | ${libdir}/libpytalloc-util.so.2.1.1 \ | ||
59 | " | ||
60 | FILES:pytalloc-dev = "${libdir}/libpytalloc-util.so" | ||
61 | RDEPENDS:pytalloc = "python3" | ||