libtdb: upgrade from 1.3.16 -> 1.3.17
PATCH 1/1 libtdb: upgrade from 1.3.16 -> 1.3.17
From: Changqing Li <[email protected]>
Fix 3 problems after upgrade to 1.3.17
1. Disable prefork of process
2. Fix problem of waf cannot be found
3. Fix problem of cross-compile not support well
Signed-off-by Changqing Li <[email protected]>
---
...akefile-fix-problem-that-waf-cannot-found.patch | 35 ++++++++++++
.../0001-waf-add-support-of-cross_compile.patch | 63 ++++++++++++++++++++++
.../tdb-Add-configure-options-for-packages.patch | 43 +++++++++------
.../libtdb/{libtdb_1.3.16.bb => libtdb_1.3.17.bb} | 11 +++-
4 files changed, 133 insertions(+), 19 deletions(-)
create mode 100644 meta-networking/recipes-support/libtdb/libtdb/0001-Makefile-fix-problem-that-waf-cannot-found.patch
create mode 100644 meta-networking/recipes-support/libtdb/libtdb/0001-waf-add-support-of-cross_compile.patch
rename meta-networking/recipes-support/libtdb/{libtdb_1.3.16.bb => libtdb_1.3.17.bb} (78%)meta-networking/recipes-support/libtdb/libtdb/0001-Makefile-fix-problem-that-waf-cannot-found.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 7205761d654636a6c1fad03a3ca40d38e253e192 Mon Sep 17 00:00:00 2001 +From: Changqing Li <[email protected]> +Date: Fri, 25 Jan 2019 16:01:07 +0800 +Subject: [PATCH] Makefile: fix problem that waf cannot found + +tdb is subfolder of samba, but it can also build independently. +so both path need to be added into PATH + +Upsteam-Status: Inappropriate [oe specific] + +Fix reject by upstream since upsteam need to support both python2/3, +so drop add append PATH. refer link: +https://gitlab.com/samba-team/samba/merge_requests/209 +https://gitlab.com/samba-team/samba/merge_requests/211 + +Signed-off-by: Changqing Li <[email protected]> +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 3e70146..64bb393 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,6 @@ + # simple makefile wrapper to run waf + +-WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf ++WAF_BINARY=PATH=buildtools/bin:../../buildtools/bin:$$PATH waf + WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY) + + all: +-- +2.7.4 +
meta-networking/recipes-support/libtdb/libtdb/0001-waf-add-support-of-cross_compile.patch new file +63 -0
63 lines not on this page · raw message
meta-networking/recipes-support/libtdb/libtdb/tdb-Add-configure-options-for-packages.patch +26 -17
103 lines not on this page · raw message
meta-networking/recipes-support/libtdb/libtdb_1.3.17.bb renamed from meta-networking/recipes-support/libtdb/libtdb_1.3.16.bb +9 -2
@@ -9,15 +9,18 @@ LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ file://do-not-check-xsltproc-manpages.patch \ file://tdb-Add-configure-options-for-packages.patch \ + file://0001-waf-add-support-of-cross_compile.patch \ + file://0001-Makefile-fix-problem-that-waf-cannot-found.patch \ " -SRC_URI[md5sum] = "7d06d8709188e07df853d9e91db88927" -SRC_URI[sha256sum] = "6a3fc2616567f23993984ada3cea97d953a27669ffd1bfbbe961f26e0cf96cc5" +SRC_URI[md5sum] = "519d373ac72a66b0a2739dbb495de127" +SRC_URI[sha256sum] = "1cb4399394c60a773430ca54848359adcf54fb6f136afdcfcbbe62b5f4245614" PACKAGECONFIG ??= "\ ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ " + PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio"
@@ -29,6 +32,10 @@ S = "${WORKDIR}/tdb-${PV}" inherit waf-samba +#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen +#to cross Popen +export WAF_NO_PREFORK="yes" + EXTRA_OECONF += "--disable-rpath \ --bundled-libraries=NONE \ --builtin-libraries=replace \
Signature · 1 line
2.7.4