Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "The tdb library" |
| 2 | HOMEPAGE = "https://tdb.samba.org/" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later" |
| 5 | |
| 6 | LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c98f48018c4 \ |
| 7 | file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" |
| 8 | |
| 9 | export PYTHONHASHSEED="1" |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 10 | export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 11 | |
| 12 | SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ |
| 13 | file://0001-tdb-Add-configure-options-for-packages.patch \ |
| 14 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 15 | file://run-ptest \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 16 | " |
| 17 | |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 18 | SRC_URI[sha256sum] = "02338e33c16c21c9e29571cef523e76b2b708636254f6f30c6cf195d48c62daf" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 19 | |
| 20 | PACKAGECONFIG ??= "\ |
| 21 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 22 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 23 | " |
| 24 | |
| 25 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 26 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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 | S = "${WORKDIR}/tdb-${PV}" |
| 32 | |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 33 | inherit waf-samba pkgconfig ptest |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 34 | |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 35 | # Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 36 | # to cross Popen |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
| 44 | " |
| 45 | |
Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame] | 46 | do_install_ptest() { |
| 47 | install -d ${D}${PTEST_PATH}/tests |
| 48 | install -m 0755 ${B}/bin/tdb1-* ${D}${PTEST_PATH}/tests/ |
| 49 | install -m 0755 ${B}/bin/replace_testsuite ${D}${PTEST_PATH}/tests/ |
| 50 | install -d ${D}${PTEST_PATH}/tests/test |
| 51 | install -m 0644 ${B}/test/*.tdb ${D}${PTEST_PATH}/tests/test/ |
| 52 | install -m 0644 ${B}/test/*.corrupt ${D}${PTEST_PATH}/tests/test/ |
| 53 | } |
| 54 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 55 | PACKAGES += "tdb-tools python3-tdb" |
| 56 | |
| 57 | RPROVIDES:${PN}-dbg += "python3-tdb-dbg" |
| 58 | |
| 59 | FILES:${PN} = "${libdir}/*.so.*" |
| 60 | FILES:tdb-tools = "${bindir}/*" |
| 61 | FILES:python3-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 62 | RDEPENDS:python3-tdb = "python3" |
| 63 | INSANE_SKIP:${MLPREFIX}python3-tdb = "dev-so" |