diff options
Diffstat (limited to 'meta-networking/recipes-support/libldb/libldb_2.6.1.bb')
| -rw-r--r-- | meta-networking/recipes-support/libldb/libldb_2.6.1.bb | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libldb/libldb_2.6.1.bb b/meta-networking/recipes-support/libldb/libldb_2.6.1.bb new file mode 100644 index 0000000000..d5440cce24 --- /dev/null +++ b/meta-networking/recipes-support/libldb/libldb_2.6.1.bb | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | SUMMARY = "Hierarchical, reference counted memory pool system with destructors" | ||
| 2 | HOMEPAGE = "https://ldb.samba.org" | ||
| 3 | SECTION = "libs" | ||
| 4 | LICENSE = "LGPL-3.0-or-later & LGPL-2.1-or-later & GPL-3.0-or-later" | ||
| 5 | |||
| 6 | DEPENDS += "libtdb libtalloc libtevent popt" | ||
| 7 | RDEPENDS:pyldb += "python3" | ||
| 8 | |||
| 9 | SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ | ||
| 10 | file://0001-do-not-import-target-module-while-cross-compile.patch \ | ||
| 11 | file://0002-ldb-Add-configure-options-for-packages.patch \ | ||
| 12 | file://0003-Fix-pyext_PATTERN-for-cross-compilation.patch \ | ||
| 13 | file://0004-wscript-skip-checking-PYTHONHASHSEED.patch \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRC_URI:append:libc-musl = " file://cmocka-fix-musl-libc-conflicting-types-error.patch" | ||
| 17 | |||
| 18 | PACKAGECONFIG ??= "\ | ||
| 19 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ | ||
| 20 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
| 21 | " | ||
| 22 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" | ||
| 23 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | ||
| 24 | PACKAGECONFIG[ldap] = ",,openldap" | ||
| 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 | PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb," | ||
| 30 | |||
| 31 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'ldap', '', 'file://avoid-openldap-unless-wanted.patch', d)}" | ||
| 32 | |||
| 33 | LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9adade \ | ||
| 34 | file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ | ||
| 35 | file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" | ||
| 36 | |||
| 37 | SRC_URI[md5sum] = "3a5f54f511fb237b83e1f34e2c7e25cd" | ||
| 38 | SRC_URI[sha256sum] = "467403f77df86782c3965bb175440baa2ed751a9feb9560194bd8c06bf1736c9" | ||
| 39 | |||
| 40 | inherit pkgconfig waf-samba | ||
| 41 | |||
| 42 | S = "${WORKDIR}/ldb-${PV}" | ||
| 43 | |||
| 44 | #cross_compile cannot use preforked process, since fork process earlier than point subproces.popen | ||
| 45 | #to cross Popen | ||
| 46 | export WAF_NO_PREFORK="yes" | ||
| 47 | |||
| 48 | EXTRA_OECONF += "--disable-rpath \ | ||
| 49 | --disable-rpath-install \ | ||
| 50 | --bundled-libraries=cmocka \ | ||
| 51 | --builtin-libraries=replace \ | ||
| 52 | --with-modulesdir=${libdir}/ldb/modules \ | ||
| 53 | --with-privatelibdir=${libdir}/ldb \ | ||
| 54 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ | ||
| 55 | " | ||
| 56 | |||
| 57 | PACKAGES =+ "pyldb pyldb-dbg pyldb-dev" | ||
| 58 | |||
| 59 | NOAUTOPACKAGEDEBUG = "1" | ||
| 60 | |||
| 61 | FILES:${PN} += "${libdir}/ldb/*" | ||
| 62 | FILES:${PN}-dbg += "${bindir}/.debug/* \ | ||
| 63 | ${libdir}/.debug/* \ | ||
| 64 | ${libdir}/ldb/.debug/* \ | ||
| 65 | ${libdir}/ldb/modules/ldb/.debug/*" | ||
| 66 | |||
| 67 | FILES:pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ | ||
| 68 | ${libdir}/libpyldb-util.*.so.* \ | ||
| 69 | " | ||
| 70 | FILES:pyldb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \ | ||
| 71 | ${libdir}/.debug/libpyldb-util.*.so.*" | ||
| 72 | FILES:pyldb-dev = "${libdir}/libpyldb-util.*.so" | ||
| 73 | |||
| 74 | # Prevent third_party/waf/waflib/Configure.py checking host's path which is | ||
| 75 | # incorrect for cross building. | ||
| 76 | export PREFIX = "/" | ||
| 77 | export LIBDIR = "${libdir}" | ||
| 78 | export BINDIR = "${bindir}" | ||
| 79 | |||
| 80 | do_configure:prepend() { | ||
| 81 | # For a clean rebuild | ||
| 82 | rm -fr bin/ | ||
| 83 | } | ||
