Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Hierarchical, reference counted memory pool system with destructors" |
| 2 | HOMEPAGE = "http://ldb.samba.org" |
| 3 | SECTION = "libs" |
| 4 | LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+" |
| 5 | |
| 6 | DEPENDS += "libtdb libtalloc libtevent popt" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 7 | RDEPENDS:pyldb += "python3" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 8 | |
| 9 | SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 10 | file://0001-do-not-import-target-module-while-cross-compile.patch \ |
| 11 | file://0002-ldb-Add-configure-options-for-packages.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | file://libldb-fix-musl-libc-conflict-type-error.patch \ |
| 13 | " |
| 14 | |
| 15 | PACKAGECONFIG ??= "\ |
| 16 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ |
| 17 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ |
| 18 | " |
| 19 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
| 20 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
| 21 | PACKAGECONFIG[ldap] = ",,openldap" |
| 22 | PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio" |
| 23 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" |
| 24 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" |
| 25 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 26 | PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb," |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 28 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'ldap', '', 'file://0003-avoid-openldap-unless-wanted.patch', d)}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 29 | |
| 30 | LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9adade \ |
| 31 | file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ |
| 32 | file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" |
| 33 | |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 34 | SRC_URI[md5sum] = "fe4b1f17f77e2ea52b4e1320d927844c" |
| 35 | SRC_URI[sha256sum] = "a4d308b3d0922ef01f3661a69ebc373e772374defa76cf0979ad21b21f91922d" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 36 | |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame] | 37 | inherit waf-samba |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 38 | |
| 39 | S = "${WORKDIR}/ldb-${PV}" |
| 40 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 41 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen |
| 42 | #to cross Popen |
| 43 | export WAF_NO_PREFORK="yes" |
| 44 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 45 | EXTRA_OECONF += "--disable-rpath \ |
| 46 | --disable-rpath-install \ |
| 47 | --bundled-libraries=cmocka \ |
| 48 | --builtin-libraries=replace \ |
| 49 | --with-modulesdir=${libdir}/ldb/modules \ |
| 50 | --with-privatelibdir=${libdir}/ldb \ |
| 51 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 52 | " |
| 53 | |
| 54 | PACKAGES =+ "pyldb pyldb-dbg pyldb-dev" |
| 55 | |
| 56 | NOAUTOPACKAGEDEBUG = "1" |
| 57 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 58 | FILES:${PN} += "${libdir}/ldb/*" |
| 59 | FILES:${PN}-dbg += "${bindir}/.debug/* \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 60 | ${libdir}/.debug/* \ |
| 61 | ${libdir}/ldb/.debug/* \ |
| 62 | ${libdir}/ldb/modules/ldb/.debug/*" |
| 63 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 64 | FILES:pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 65 | ${libdir}/libpyldb-util.*.so.* \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 66 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 67 | FILES:pyldb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 68 | ${libdir}/.debug/libpyldb-util.*.so.*" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 69 | FILES:pyldb-dev = "${libdir}/libpyldb-util.*.so" |