All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH v2 0/7] add samba4 and required recipe
@ 2015-06-17  7:49 Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 1/7] waf-samba: add new class Bian Naimeng
                   ` (6 more replies)
  0 siblings, 7 replies; 28+ messages in thread
From: Bian Naimeng @ 2015-06-17  7:49 UTC (permalink / raw)
  To: openembedded-devel

Samba4 has already been supported by some distro such as Fedora, RHEL, Ubuntu,
So maybe Yocot project should provide samba4 recipe.

Bian Naimeng (7):
  [1/7] waf-samba: add new class
  [2/7] ctdb: add new recipe
  [3/7] libldb: add new recipe
  [4/7] libtdb: add new recipe
  [5/7] libtevent: add new recipe
  [6/7] talloc: upgrade to 2.1.1
  [7/7] samba: upgrade to 4.1.12

 meta-oe/classes/waf-samba.bbclass                  |    51 +
 .../bug_221618_precise-64bit-prototype.patch       |    20 -
 ...4104_mention-kerberos-in-smbspool-manpage.patch |    34 -
 ...m_7499-nss_wins-dont-clobber-daemons-logs.patch |    47 -
 .../bug_601406_fix-perl-path-in-example.patch      |    15 -
 ...04768_upstream_7826_drop-using-samba-link.patch |    21 -
 ...ug_604768_upstream_7826_fix-WHATSNEW-link.patch |    18 -
 ...onfigure-disable-core_pattern-cross-check.patch |    20 -
 .../configure-disable-getaddrinfo-cross.patch      |    11 -
 .../samba/samba-3.6.24/configure-libunwind.patch   |    82 -
 .../samba/samba-3.6.24/documentation.patch         |   302 -
 .../samba/samba-3.6.24/documentation2.patch        |   314 -
 .../samba-3.6.24/dont-build-VFS-examples.patch     |    31 -
 .../samba/samba-3.6.24/fhs-filespaths.patch        |    65 -
 .../samba/samba-3.6.24/installswat.sh.patch        |    23 -
 .../samba-3.6.24/libutil_drop_AI_ADDRCONFIG.patch  |    54 -
 .../samba-3.6.24/only_export_public_symbols.patch  |    21 -
 .../samba/samba-3.6.24/pam-examples.patch          |    17 -
 .../samba/samba-3.6.24/shadow_copy2_backport.patch |  2101 ---
 .../samba/samba-3.6.24/smbclient-pager.patch       |    18 -
 .../samba/samba-3.6.24/smbtar-bashism.patch        |    19 -
 .../samba/samba-3.6.24/smbtorture-manpage.patch    |    94 -
 .../samba/samba-3.6.24/undefined-symbols.patch     |    24 -
 .../samba/samba-3.6.24/usershare.patch             |    38 -
 .../samba/samba-3.6.24/waf-as-source.patch         | 18534 -------------------
 meta-oe/recipes-connectivity/samba/samba-basic.inc |    55 -
 meta-oe/recipes-connectivity/samba/samba.inc       |   154 -
 ...arsing-linemarkers-in-preprocessor-output.patch |    68 -
 .../samba/samba/Managing-Samba.txt                 |    40 -
 .../recipes-connectivity/samba/samba/cifs.patch    |    10 -
 .../samba/samba/config-h.patch                     |    12 -
 .../samba/samba/config-lfs.patch                   |    47 -
 .../samba/samba/configure-3.3.0.patch              |    85 -
 .../recipes-connectivity/samba/samba/init.samba    |    58 -
 .../recipes-connectivity/samba/samba/init.winbind  |    38 -
 .../recipes-connectivity/samba/samba/mtab.patch    |    11 -
 .../recipes-connectivity/samba/samba/nmb.service   |    12 -
 .../recipes-connectivity/samba/samba/quota.patch   |    11 -
 meta-oe/recipes-connectivity/samba/samba/smb.conf  |   266 -
 .../recipes-connectivity/samba/samba/smb.service   |    13 -
 meta-oe/recipes-connectivity/samba/samba/tdb.pc    |    11 -
 .../samba/samba/tdbheaderfix.patch                 |    14 -
 .../samba/samba/volatiles.03_samba                 |     2 -
 .../samba/samba/winbind.service                    |    12 -
 meta-oe/recipes-connectivity/samba/samba_3.6.24.bb |    67 -
 .../01-support-cross-compile-for-linux-os.patch    |    24 +
 .../ctdb/02-link-rep_snprintf-for-ltdbtool.patch   |    16 +
 meta-oe/recipes-support/ctdb/ctdb_2.5.1.bb         |    43 +
 .../do-not-import-target-module-in-configure.patch |    32 +
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    |    45 +
 .../libtdb/do-not-check-xsltproc-manpages.patch    |    15 +
 meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb     |    30 +
 .../libtevent/do-not-check-xsltproc-manpages.patch |    16 +
 .../recipes-support/libtevent/libtevent_0.9.21.bb  |    30 +
 .../install-swig-interface-in-SWINGLIBDIR.patch    |    23 -
 .../recipes-support/talloc/talloc/sepbuild.patch   |    27 -
 meta-oe/recipes-support/talloc/talloc_2.0.1.bb     |    45 -
 meta-oe/recipes-support/talloc/talloc_2.1.1.bb     |    45 +
 58 files changed, 347 insertions(+), 23004 deletions(-)
 create mode 100644 meta-oe/classes/waf-samba.bbclass
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_221618_precise-64bit-prototype.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_387266_upstream_4104_mention-kerberos-in-smbspool-manpage.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_598313_upstream_7499-nss_wins-dont-clobber-daemons-logs.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_601406_fix-perl-path-in-example.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_604768_upstream_7826_drop-using-samba-link.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_604768_upstream_7826_fix-WHATSNEW-link.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-disable-core_pattern-cross-check.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-disable-getaddrinfo-cross.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/documentation.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/documentation2.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/dont-build-VFS-examples.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/installswat.sh.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/libutil_drop_AI_ADDRCONFIG.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/only_export_public_symbols.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/pam-examples.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/shadow_copy2_backport.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/smbclient-pager.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/smbtar-bashism.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/smbtorture-manpage.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/undefined-symbols.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/usershare.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/waf-as-source.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-basic.inc
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba.inc
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/0001-PIDL-fix-parsing-linemarkers-in-preprocessor-output.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/Managing-Samba.txt
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/cifs.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/config-h.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/config-lfs.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/configure-3.3.0.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/init.samba
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/init.winbind
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/mtab.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/nmb.service
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/quota.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/smb.conf
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/smb.service
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/tdb.pc
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/tdbheaderfix.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/volatiles.03_samba
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/winbind.service
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba_3.6.24.bb
 create mode 100644 meta-oe/recipes-support/ctdb/ctdb/01-support-cross-compile-for-linux-os.patch
 create mode 100644 meta-oe/recipes-support/ctdb/ctdb/02-link-rep_snprintf-for-ltdbtool.patch
 create mode 100644 meta-oe/recipes-support/ctdb/ctdb_2.5.1.bb
 create mode 100644 meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch
 create mode 100644 meta-oe/recipes-support/libldb/libldb_1.1.17.bb
 create mode 100644 meta-oe/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch
 create mode 100644 meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb
 create mode 100644 meta-oe/recipes-support/libtevent/libtevent/do-not-check-xsltproc-manpages.patch
 create mode 100644 meta-oe/recipes-support/libtevent/libtevent_0.9.21.bb
 delete mode 100644 meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch
 delete mode 100644 meta-oe/recipes-support/talloc/talloc/sepbuild.patch
 delete mode 100644 meta-oe/recipes-support/talloc/talloc_2.0.1.bb
 create mode 100644 meta-oe/recipes-support/talloc/talloc_2.1.1.bb

-- 
1.9.1



^ permalink raw reply	[flat|nested] 28+ messages in thread

* [meta-oe][PATCH v2 1/7] waf-samba: add new class
  2015-06-17  7:49 [meta-oe][PATCH v2 0/7] add samba4 and required recipe Bian Naimeng
@ 2015-06-17  7:49 ` Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 2/7] ctdb: add new recipe Bian Naimeng
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 28+ messages in thread
From: Bian Naimeng @ 2015-06-17  7:49 UTC (permalink / raw)
  To: openembedded-devel

waf-samba is a build system used by samba related software

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
 meta-oe/classes/waf-samba.bbclass | 51 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 meta-oe/classes/waf-samba.bbclass

diff --git a/meta-oe/classes/waf-samba.bbclass b/meta-oe/classes/waf-samba.bbclass
new file mode 100644
index 0000000..23c5556
--- /dev/null
+++ b/meta-oe/classes/waf-samba.bbclass
@@ -0,0 +1,51 @@
+# waf is a build system which is used by samba related project.
+# Obtain details from https://wiki.samba.org/index.php/Waf
+# 
+inherit qemu pythonnative
+
+DEPENDS += "qemu-native libxslt-native docbook-xsl-stylesheets-native python"
+
+CONFIGUREOPTS = " --prefix=${prefix} \
+                  --bindir=${bindir} \
+                  --sbindir=${sbindir} \
+                  --libexecdir=${libexecdir} \
+                  --datadir=${datadir} \
+                  --sysconfdir=${sysconfdir} \
+                  --sharedstatedir=${sharedstatedir} \
+                  --localstatedir=${localstatedir} \
+                  --libdir=${libdir} \
+                  --includedir=${includedir} \
+                  --oldincludedir=${oldincludedir} \
+                  --infodir=${infodir} \
+                  --mandir=${mandir} \
+                "
+
+do_configure() {
+    qemu_binary="${@qemu_target_binary(d)}"
+    if [ ${qemu_binary} == "qemu-allarch" ]; then
+        qemu_binary="qemuwrapper"
+    fi
+
+    libdir_qemu="${STAGING_DIR_HOST}/${libdir}"
+    base_libdir_qemu="${STAGING_DIR_HOST}/${base_libdir}"
+    oldest_kernel_qemu=${OLDEST_KERNEL}
+
+    CROSS_EXEC="${qemu_binary} \
+                -r ${oldest_kernel_qemu} \
+                -L ${STAGING_DIR_HOST} \
+                -E LD_LIBRARY_PATH=${libdir_qemu}:${base_libdir_qemu}"
+
+    export BUILD_SYS=${BUILD_SYS}
+    export HOST_SYS=${HOST_SYS}
+    export BUILD_ARCH=${BUILD_ARCH}
+    export HOST_ARCH=${HOST_ARCH}
+    export STAGING_LIBDIR=${STAGING_LIBDIR}
+    export STAGING_INCDIR=${STAGING_INCDIR}
+    export PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
+
+    ./configure ${CONFIGUREOPTS} ${EXTRA_OECONF} --cross-compile --cross-execute="${CROSS_EXEC}"
+}
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [meta-oe][PATCH v2 2/7] ctdb: add new recipe
  2015-06-17  7:49 [meta-oe][PATCH v2 0/7] add samba4 and required recipe Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 1/7] waf-samba: add new class Bian Naimeng
@ 2015-06-17  7:49 ` Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 3/7] libldb: " Bian Naimeng
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 28+ messages in thread
From: Bian Naimeng @ 2015-06-17  7:49 UTC (permalink / raw)
  To: openembedded-devel

ctdb is required by samba4

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
 .../01-support-cross-compile-for-linux-os.patch    | 24 ++++++++++++
 .../ctdb/02-link-rep_snprintf-for-ltdbtool.patch   | 16 ++++++++
 meta-oe/recipes-support/ctdb/ctdb_2.5.1.bb         | 43 ++++++++++++++++++++++
 3 files changed, 83 insertions(+)
 create mode 100644 meta-oe/recipes-support/ctdb/ctdb/01-support-cross-compile-for-linux-os.patch
 create mode 100644 meta-oe/recipes-support/ctdb/ctdb/02-link-rep_snprintf-for-ltdbtool.patch
 create mode 100644 meta-oe/recipes-support/ctdb/ctdb_2.5.1.bb

diff --git a/meta-oe/recipes-support/ctdb/ctdb/01-support-cross-compile-for-linux-os.patch b/meta-oe/recipes-support/ctdb/ctdb/01-support-cross-compile-for-linux-os.patch
new file mode 100644
index 0000000..c9195b4
--- /dev/null
+++ b/meta-oe/recipes-support/ctdb/ctdb/01-support-cross-compile-for-linux-os.patch
@@ -0,0 +1,24 @@
+support cross-compile for linux-os.
+
+Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
+
+diff -Nurp ctdb-2.5.1.orig/configure ctdb-2.5.1/configure
+--- ctdb-2.5.1.orig/configure	2015-05-07 16:24:28.545000238 +0900
++++ ctdb-2.5.1/configure	2015-05-07 16:28:20.894000244 +0900
+@@ -10692,10 +10692,16 @@ if test x"$libreplace_cv_HAVE_GETADDRINF
+ 	# see bug 5910, use our replacements if we detect
+ 	# a broken system.
+ 	if test "$cross_compiling" = yes; then :
++		case "$target_os" in
++		*linux*)
++			;;
++		*)
+   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ as_fn_error $? "cannot run test program while cross compiling
+ See \`config.log' for more details" "$LINENO" 5; }
++			;;
++		esac
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
diff --git a/meta-oe/recipes-support/ctdb/ctdb/02-link-rep_snprintf-for-ltdbtool.patch b/meta-oe/recipes-support/ctdb/ctdb/02-link-rep_snprintf-for-ltdbtool.patch
new file mode 100644
index 0000000..1dd9b93
--- /dev/null
+++ b/meta-oe/recipes-support/ctdb/ctdb/02-link-rep_snprintf-for-ltdbtool.patch
@@ -0,0 +1,16 @@
+link rep_snprintf from lib/replace/snprintf.o for ltdbtool
+
+Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
+
+diff -Nurp ctdb-2.5.1.orig/Makefile.in ctdb-2.5.1/Makefile.in
+--- ctdb-2.5.1.orig/Makefile.in	2015-05-07 16:43:39.276000236 +0900
++++ ctdb-2.5.1/Makefile.in	2015-05-07 16:44:09.627000237 +0900
+@@ -170,7 +170,7 @@ bin/ctdb: $(CTDB_CLIENT_OBJ) tools/ctdb.
+ 	@echo Linking $@
+ 	$(WRAPPER) $(CC) $(CFLAGS) -o $@ tools/ctdb.o tools/ctdb_vacuum.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
+ 
+-bin/ltdbtool: tools/ltdbtool.o $(TDB_OBJ)
++bin/ltdbtool: tools/ltdbtool.o $(TDB_OBJ) lib/replace/snprintf.o
+ 	@echo Linking $@
+ 	$(WRAPPER) $(CC) $(CFLAGS) -o $@ $+ $(TDB_LIBS) $(LIB_FLAGS)
+ 
diff --git a/meta-oe/recipes-support/ctdb/ctdb_2.5.1.bb b/meta-oe/recipes-support/ctdb/ctdb_2.5.1.bb
new file mode 100644
index 0000000..3731efd
--- /dev/null
+++ b/meta-oe/recipes-support/ctdb/ctdb_2.5.1.bb
@@ -0,0 +1,43 @@
+DESCRIPTION = "CTDB is a cluster implementation of the TDB database \
+used by Samba and other projects to store temporary data. If an \
+application is already using TDB for temporary data it is very easy \
+to convert that application to be cluster aware and use CTDB instead."
+DESCRIPTION = "CTDB is a cluster implementation of the TDB database \
+used by Samba and other projects to store temporary data. If an \
+application is already using TDB for temporary data it is very easy \
+to convert that application to be cluster aware and use CTDB instead."
+HOMEPAGE = "https://ctdb.samba.org/"
+LICENSE = "GPL-2.0+ & LGPL-3.0+ & GPL-3.0+"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
+                    file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \
+                    file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6 \
+                    "
+
+SRC_URI = "https://ftp.samba.org/pub/${PN}/${BP}.tar.gz \
+           file://01-support-cross-compile-for-linux-os.patch \
+           file://02-link-rep_snprintf-for-ltdbtool.patch \
+          "
+
+SRC_URI[md5sum] = "d0cd91726ff4ca2229e1b21859c94717"
+SRC_URI[sha256sum] = "d5bf3f674cae986bb6178b1db215a703ac94adc5f75fadfdcff63dcbb5e98ab5"
+
+inherit autotools-brokensep pkgconfig systemd
+
+PARALLEL_MAKE = ""
+
+DEPENDS += "popt libtevent talloc"
+
+do_configure() {
+    oe_runconf
+}
+
+do_install_append() {
+    install -d ${D}${systemd_unitdir}/system
+    install -m 0644 ${S}/config/ctdb.service ${D}${systemd_unitdir}/system
+    sed -i -e 's,/usr/sbin/,${sbindir}/,' ${D}${systemd_unitdir}/system/ctdb.service
+}
+
+SYSTEMD_SERVICE_${PN} = "ctdb.service"
+
+FILES_${PN} += "/run"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-06-17  7:49 [meta-oe][PATCH v2 0/7] add samba4 and required recipe Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 1/7] waf-samba: add new class Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 2/7] ctdb: add new recipe Bian Naimeng
@ 2015-06-17  7:49 ` Bian Naimeng
  2015-06-19 15:56   ` Martin Jansa
  2015-06-17  7:49 ` [meta-oe][PATCH v2 4/7] libtdb: " Bian Naimeng
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 28+ messages in thread
From: Bian Naimeng @ 2015-06-17  7:49 UTC (permalink / raw)
  To: openembedded-devel

libldb is required by samba4

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
 .../do-not-import-target-module-in-configure.patch | 32 +++++++++++++++
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45 ++++++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch
 create mode 100644 meta-oe/recipes-support/libldb/libldb_1.1.17.bb

diff --git a/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch
new file mode 100644
index 0000000..b4d522a
--- /dev/null
+++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check whether the module exist
+
+Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py	2014-05-05 17:00:41.000000000 +0900
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py	2015-06-15 10:09:50.210000217 +0900
+@@ -1,7 +1,7 @@
+ # functions to support bundled libraries
+ 
+ from Configure import conf
+-import sys, Logs
++import sys, Logs, imp
+ from samba_utils import *
+ 
+ def PRIVATE_NAME(bld, name, private_extension, private_library):
+@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
+         m = __import__(modulename)
+     except ImportError:
+         found = False
++
++        build_arch = os.environ["BUILD_ARCH"]
++        host_arch = os.environ["HOST_ARCH"]
++        if build_arch != host_arch:
++            # Some modules maybe can not be imported while cross compile
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename, [os.environ["PYTHONPATH"]])
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been found, but can not be loaded.' % (stuff[1]))
++                found = True
+     else:
+         try:
+             version = m.__version__
diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
new file mode 100644
index 0000000..17607f7
--- /dev/null
+++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
+HOMEPAGE = "http://ldb.samba.org"
+SECTION = "libs"
+LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
+
+DEPENDS += "libtdb talloc libtevent libtdb"
+RDEPENDS_${PN} += "libtevent popt libtalloc"
+RDEPENDS_pyldb += "python libtdb libtalloc"
+
+SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
+           file://do-not-import-target-module-in-configure.patch"
+
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \
+                    file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780 \
+                    file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] = "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
+
+inherit waf-samba
+
+S = "${WORKDIR}/ldb-${PV}"
+
+EXTRA_OECONF += "--disable-rpath \
+                 --disable-rpath-install \
+                 --bundled-libraries=NONE \
+                 --builtin-libraries=replace \
+                 --with-modulesdir=${libdir}/ldb/modules \
+                 --with-privatelibdir=${libdir}/ldb \
+                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
+                "
+
+PACKAGES += "pyldb pyldb-dbg pyldb-dev"
+
+FILES_${PN} += "${libdir}/ldb/*"
+FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
+                    ${libdir}/ldb/modules/ldb/.debug/*"
+
+FILES_pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [meta-oe][PATCH v2 4/7] libtdb: add new recipe
  2015-06-17  7:49 [meta-oe][PATCH v2 0/7] add samba4 and required recipe Bian Naimeng
                   ` (2 preceding siblings ...)
  2015-06-17  7:49 ` [meta-oe][PATCH v2 3/7] libldb: " Bian Naimeng
@ 2015-06-17  7:49 ` Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 5/7] libtevent: " Bian Naimeng
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 28+ messages in thread
From: Bian Naimeng @ 2015-06-17  7:49 UTC (permalink / raw)
  To: openembedded-devel

libtdb is required by samba4

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
 .../libtdb/do-not-check-xsltproc-manpages.patch    | 15 +++++++++++
 meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb     | 30 ++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 meta-oe/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch
 create mode 100644 meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb

diff --git a/meta-oe/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch b/meta-oe/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch
new file mode 100644
index 0000000..bcc45c9
--- /dev/null
+++ b/meta-oe/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch
@@ -0,0 +1,15 @@
+Don't check manpages for xsltproc.
+
+Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
+
+--- tdb-1.3.0.orig/wscript	2015-04-22 09:52:32.366000222 +0900
++++ tdb-1.3.0/wscript	2015-04-22 09:51:57.720000205 +0900
+@@ -90,7 +90,7 @@ def configure(conf):
+         not conf.env.disable_tdb_mutex_locking):
+         conf.define('USE_TDB_MUTEX_LOCKING', 1)
+ 
+-    conf.CHECK_XSLTPROC_MANPAGES()
++    conf.find_program('xsltproc', var='XSLTPROC')
+ 
+     if not conf.env.disable_python:
+         # also disable if we don't have the python libs installed
diff --git a/meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb b/meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb
new file mode 100644
index 0000000..0b9e1f2
--- /dev/null
+++ b/meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb
@@ -0,0 +1,30 @@
+SUMMARY = "The tdb library"
+SECTION = "libs"
+LICENSE = "LGPL-3.0+ & GPL-3.0+"
+
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \
+                    file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
+
+SRC_URI = "http://samba.org/ftp/tdb/tdb-${PV}.tar.gz \
+           file://do-not-check-xsltproc-manpages.patch"
+
+SRC_URI[md5sum] = "f18cd6afc4f5670edfe58f72d2665f94"
+SRC_URI[sha256sum] = "04bee48d405ab7815810575a6e0cb364cc0eea6187b54b18c84e9c18a768ba20"
+
+S = "${WORKDIR}/tdb-${PV}"
+
+inherit waf-samba
+
+EXTRA_OECONF += "--disable-rpath \
+                 --bundled-libraries=NONE \
+                 --builtin-libraries=replace \
+                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
+                "
+
+PACKAGES += "tdb-tools python-tdb python-tdb-dbg"
+
+FILES_${PN} = "${libdir}/*.so.*"
+FILES_tdb-tools = "${bindir}/*"
+FILES_python-tdb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
+FILES_python-tdb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*"
+RDEPENDS_python-tdb = "python"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [meta-oe][PATCH v2 5/7] libtevent: add new recipe
  2015-06-17  7:49 [meta-oe][PATCH v2 0/7] add samba4 and required recipe Bian Naimeng
                   ` (3 preceding siblings ...)
  2015-06-17  7:49 ` [meta-oe][PATCH v2 4/7] libtdb: " Bian Naimeng
@ 2015-06-17  7:49 ` Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 6/7] talloc: upgrade to 2.1.1 Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12 Bian Naimeng
  6 siblings, 0 replies; 28+ messages in thread
From: Bian Naimeng @ 2015-06-17  7:49 UTC (permalink / raw)
  To: openembedded-devel

libtevent is required by samba4

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
 .../libtevent/do-not-check-xsltproc-manpages.patch | 16 ++++++++++++
 .../recipes-support/libtevent/libtevent_0.9.21.bb  | 30 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 meta-oe/recipes-support/libtevent/libtevent/do-not-check-xsltproc-manpages.patch
 create mode 100644 meta-oe/recipes-support/libtevent/libtevent_0.9.21.bb

diff --git a/meta-oe/recipes-support/libtevent/libtevent/do-not-check-xsltproc-manpages.patch b/meta-oe/recipes-support/libtevent/libtevent/do-not-check-xsltproc-manpages.patch
new file mode 100644
index 0000000..1ce4dda
--- /dev/null
+++ b/meta-oe/recipes-support/libtevent/libtevent/do-not-check-xsltproc-manpages.patch
@@ -0,0 +1,16 @@
+Don't check manpages for xsltproc.
+
+Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
+
+diff -Nurp tevent-0.9.21.orig/lib/talloc/wscript tevent-0.9.21/lib/talloc/wscript
+--- tevent-0.9.21.orig/lib/talloc/wscript	2013-09-08 21:24:14.000000000 +0900
++++ tevent-0.9.21/lib/talloc/wscript	2015-04-24 16:28:04.085000230 +0900
+@@ -55,7 +55,7 @@ def configure(conf):
+     if conf.env.standalone_talloc:
+         conf.env.TALLOC_COMPAT1 = Options.options.TALLOC_COMPAT1
+ 
+-    conf.CHECK_XSLTPROC_MANPAGES()
++    conf.find_program('xsltproc', var='XSLTPROC')
+ 
+     if not conf.env.disable_python:
+         # also disable if we don't have the python libs installed
diff --git a/meta-oe/recipes-support/libtevent/libtevent_0.9.21.bb b/meta-oe/recipes-support/libtevent/libtevent_0.9.21.bb
new file mode 100644
index 0000000..5c7c560
--- /dev/null
+++ b/meta-oe/recipes-support/libtevent/libtevent_0.9.21.bb
@@ -0,0 +1,30 @@
+SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
+HOMEPAGE = "http://tevent.samba.org"
+SECTION = "libs"
+LICENSE = "LGPLv3+"
+
+DEPENDS += "talloc"
+RDEPENDS_${PN} += "libtalloc"
+RDEPENDS_python-tevent = "python"
+
+SRC_URI = "http://samba.org/ftp/tevent/tevent-${PV}.tar.gz"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b"
+
+SRC_URI[md5sum] = "3d5a76c0a1b5f724842d785fd055633f"
+SRC_URI[sha256sum] = "f2be7463573dab2d8210cb57fe7e7e2aeb323274cbdc865a6e29ddcfb977f0f4"
+
+inherit waf-samba
+
+S = "${WORKDIR}/tevent-${PV}"
+
+EXTRA_OECONF += "--disable-rpath \
+                 --bundled-libraries=NONE \
+                 --builtin-libraries=replace \
+                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
+                 --without-gettext \
+                "
+
+PACKAGES += "python-tevent python-tevent-dbg"
+
+FILES_python-tevent = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
+FILES_python-tevent-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [meta-oe][PATCH v2 6/7] talloc: upgrade to 2.1.1
  2015-06-17  7:49 [meta-oe][PATCH v2 0/7] add samba4 and required recipe Bian Naimeng
                   ` (4 preceding siblings ...)
  2015-06-17  7:49 ` [meta-oe][PATCH v2 5/7] libtevent: " Bian Naimeng
@ 2015-06-17  7:49 ` Bian Naimeng
  2015-06-17  7:49 ` [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12 Bian Naimeng
  6 siblings, 0 replies; 28+ messages in thread
From: Bian Naimeng @ 2015-06-17  7:49 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
---
 .../install-swig-interface-in-SWINGLIBDIR.patch    | 23 -----------
 .../recipes-support/talloc/talloc/sepbuild.patch   | 27 -------------
 meta-oe/recipes-support/talloc/talloc_2.0.1.bb     | 45 ----------------------
 meta-oe/recipes-support/talloc/talloc_2.1.1.bb     | 45 ++++++++++++++++++++++
 4 files changed, 45 insertions(+), 95 deletions(-)
 delete mode 100644 meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch
 delete mode 100644 meta-oe/recipes-support/talloc/talloc/sepbuild.patch
 delete mode 100644 meta-oe/recipes-support/talloc/talloc_2.0.1.bb
 create mode 100644 meta-oe/recipes-support/talloc/talloc_2.1.1.bb

diff --git a/meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch b/meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch
deleted file mode 100644
index 635c60e..0000000
--- a/meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Using the way swig interface is installed leads to a bad path in ${D}.
-The interface ended up in ${D}/${STAGING_DIR_NATIVE} which is wrong. The
-fix is to define a variable in recipe which is used in install rule by
-talloc.
-
-Upstream-Status: Inappropriate [build system specific]
-Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-
-Index: talloc-2.0.1/talloc.mk
-===================================================================
---- talloc-2.0.1.orig/talloc.mk	2009-10-11 16:42:24.000000000 +0300
-+++ talloc-2.0.1/talloc.mk	2012-09-13 23:15:05.283539702 +0300
-@@ -23,8 +23,8 @@
- 	${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
- 	if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
- 	if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
--	which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)`swig -swiglib` || true
--	which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true
-+	which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)/$(SWIGLIBDIR) || true
-+	which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 $(srcdir)/$(tallocdir)/talloc.i $(DESTDIR)/$(SWIGLIBDIR) || true
- 
- doc:: talloc.3 talloc.3.html
- 
diff --git a/meta-oe/recipes-support/talloc/talloc/sepbuild.patch b/meta-oe/recipes-support/talloc/talloc/sepbuild.patch
deleted file mode 100644
index 05506c3..0000000
--- a/meta-oe/recipes-support/talloc/talloc/sepbuild.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Index: talloc-2.0.1/Makefile.in
-===================================================================
---- talloc-2.0.1.orig/Makefile.in
-+++ talloc-2.0.1/Makefile.in
-@@ -33,8 +33,8 @@ EXPORTSFILE = @EXPORTSFILE@
- 
- all:: showflags $(EXTRA_TARGETS)
- 
--include $(tallocdir)/rules.mk
--include $(tallocdir)/talloc.mk
-+include $(srcdir)/$(tallocdir)/rules.mk
-+include $(srcdir)/$(tallocdir)/talloc.mk
- 
- @TALLOC_COMPAT1_MK@
- 
-Index: talloc-2.0.1/libtalloc.m4
-===================================================================
---- talloc-2.0.1.orig/libtalloc.m4
-+++ talloc-2.0.1/libtalloc.m4
-@@ -33,6 +33,6 @@ if test $ac_cv_sizeof_size_t -lt $ac_cv_
- fi
- 
- if test x"$VERSIONSCRIPT" != "x"; then
--    EXPORTSFILE=talloc.exports
-+    EXPORTSFILE=$srcdir/$tallocdir/talloc.exports
-     AC_SUBST(EXPORTSFILE)
- fi
diff --git a/meta-oe/recipes-support/talloc/talloc_2.0.1.bb b/meta-oe/recipes-support/talloc/talloc_2.0.1.bb
deleted file mode 100644
index 7bbfbc2..0000000
--- a/meta-oe/recipes-support/talloc/talloc_2.0.1.bb
+++ /dev/null
@@ -1,45 +0,0 @@
-SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
-HOMEPAGE = "http://talloc.samba.org"
-LICENSE = "LGPL-3.0"
-LIC_FILES_CHKSUM = "file://NEWS;md5=5fe776b23a711c9153ee94bc87e47334"
-
-inherit autotools pkgconfig
-
-SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz \
-           file://install-swig-interface-in-SWINGLIBDIR.patch \
-           file://sepbuild.patch \
-"
-SRC_URI[md5sum] = "c6e736540145ca58cb3dcb42f91cf57b"
-SRC_URI[sha256sum] = "5b810527405f29d54f50efd78bf2c89e318f2cd8bed001f22f2a1412fd27c9b4"
-
-TARGET_CC_ARCH += "${LDFLAGS}"
-
-PR = "r2"
-
-EXTRA_AUTORECONF = "--exclude=autopoint --exclude=aclocal"
-
-DEPENDS += "swig-native"
-
-do_install_prepend() {
-    # Hack the way swig interface for talloc is installed
-    # This hack is accompanied by install-swig-interface-in-SWINGLIBDIR.patch
-    if which swig > /dev/null; then
-        SWIGLIBDIR="$(echo $(readlink -f $(swig -swiglib)) | \
-            sed -e 's#^${STAGING_DIR_NATIVE}##')"
-    fi
-    if [ -n "$SWIGLIBDIR" ]; then
-        export SWIGLIBDIR
-    else
-        echo "No swig found"
-    fi
-}
-
-do_install_append() {
-    install -d ${D}${libdir}
-    ln -s libtalloc.so.2.0.1 ${D}${libdir}/libtalloc.so.2.0
-    ln -s libtalloc.so.2.0 ${D}${libdir}/libtalloc.so.2
-    ln -s libtalloc.so.2 ${D}${libdir}/libtalloc.so
-}
-
-PACKAGES += "${PN}-swig"
-FILES_${PN}-swig += "${datadir}"
diff --git a/meta-oe/recipes-support/talloc/talloc_2.1.1.bb b/meta-oe/recipes-support/talloc/talloc_2.1.1.bb
new file mode 100644
index 0000000..89c390f
--- /dev/null
+++ b/meta-oe/recipes-support/talloc/talloc_2.1.1.bb
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
+HOMEPAGE = "http://talloc.samba.org"
+SECTION = "libs"
+LICENSE = "LGPL-3.0+ & GPL-3.0+"
+
+SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \
+                    file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
+
+SRC_URI[md5sum] = "5dffb86414218a91864ed4453ba9be07"
+SRC_URI[sha256sum] = "3e29ce6c3ba3c4f7c2d57ce8cf0fbc24c86618c519f2b2fb6a459025488b6174"
+
+inherit waf-samba
+
+EXTRA_OECONF += "--disable-rpath \
+                 --disable-rpath-install \
+                 --bundled-libraries=NONE \
+                 --builtin-libraries=replace \
+                 --disable-silent-rules \
+                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
+                "
+
+PACKAGES += "libtalloc libtalloc-dbg libtalloc-dev pytalloc pytalloc-dbg pytalloc-dev"
+
+#ALLOW_EMPTY_${PN} = "1"
+FILES_${PN} = ""
+FILES_${PN}-dev = ""
+FILES_${PN}-dbg = ""
+
+FILES_libtalloc = "${libdir}/libtalloc.so.2 \
+                   ${libdir}/libtalloc.so.2.1.1"
+FILES_libtalloc-dbg = "/usr/src/debug/ \
+                   ${libdir}/.debug/libtalloc.so.2.1.1"
+FILES_libtalloc-dev = "${includedir}/ \
+                   ${libdir}/libtalloc.so \
+                   ${libdir}/pkgconfig/"
+
+FILES_pytalloc = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \
+                  ${libdir}/libpytalloc-util.so.2 \
+                  ${libdir}/libpytalloc-util.so.2.1.1 \
+                 "
+FILES_pytalloc-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
+                      ${libdir}/.debug/libpytalloc-util.so.2.1.1"
+FILES_pytalloc-dev = "${libdir}/libpytalloc-util.so"
+RDEPENDS_pytalloc = "python"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
  2015-06-17  7:49 [meta-oe][PATCH v2 0/7] add samba4 and required recipe Bian Naimeng
                   ` (5 preceding siblings ...)
  2015-06-17  7:49 ` [meta-oe][PATCH v2 6/7] talloc: upgrade to 2.1.1 Bian Naimeng
@ 2015-06-17  7:49 ` Bian Naimeng
  2015-06-17 20:36   ` Martin Jansa
  6 siblings, 1 reply; 28+ messages in thread
From: Bian Naimeng @ 2015-06-17  7:49 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>

git send-email will catch error as below
 fatal: 0002-samba-upgrade-to-4.1.12.patch: 965: patch contains a line longer than 998 characters

So, please get patch from
https://github.com/bendaaron/meta-oe-dev/commit/47678ed346a1ce347a64705c76df09d4fa537b0e


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
  2015-06-17  7:49 ` [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12 Bian Naimeng
@ 2015-06-17 20:36   ` Martin Jansa
  2015-06-18  0:59     ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-06-17 20:36 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1046 bytes --]

On Wed, Jun 17, 2015 at 03:49:13PM +0800, Bian Naimeng wrote:
> Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> 
> git send-email will catch error as below
>  fatal: 0002-samba-upgrade-to-4.1.12.patch: 965: patch contains a line longer than 998 characters
> 
> So, please get patch from
> https://github.com/bendaaron/meta-oe-dev/commit/47678ed346a1ce347a64705c76df09d4fa537b0e

I've cherry-picked first 6 patches from here, but this last one fails to
apply, because you're removing samba 3.6.24, but in master we have 3.6.25
since this commit merged more than month ago:

commit 9ac5713b2fcb5ce03693edd40636d8fce3e014d0
Author:     Roy Li <rongqing.li@windriver.com>
AuthorDate: Wed Apr 29 17:25:02 2015 +0800
Commit:     Martin Jansa <Martin.Jansa@gmail.com>
CommitDate: Mon May 11 10:27:28 2015 +0200

    samba: upgrade to 3.6.25

Also this patch only removes 3.6.24, but doesn't add 4.1.12.

Please rebase to latest master and fix the last commit.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
  2015-06-17 20:36   ` Martin Jansa
@ 2015-06-18  0:59     ` Bian, Naimeng
  2015-06-18 15:31       ` Martin Jansa
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-06-18  0:59 UTC (permalink / raw)
  To: openembedded-devel



> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Thursday, June 18, 2015 4:37 AM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
> 
> On Wed, Jun 17, 2015 at 03:49:13PM +0800, Bian Naimeng wrote:
> > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> >
> > git send-email will catch error as below
> >  fatal: 0002-samba-upgrade-to-4.1.12.patch: 965: patch contains a line
> > longer than 998 characters
> >
> > So, please get patch from
> > https://github.com/bendaaron/meta-oe-dev/commit/47678ed346a1ce347a6470
> > 5c76df09d4fa537b0e
> 
> I've cherry-picked first 6 patches from here, but this last one fails to apply,
> because you're removing samba 3.6.24, but in master we have 3.6.25 since this
> commit merged more than month ago:
> 
> commit 9ac5713b2fcb5ce03693edd40636d8fce3e014d0
> Author:     Roy Li <rongqing.li@windriver.com>
> AuthorDate: Wed Apr 29 17:25:02 2015 +0800
> Commit:     Martin Jansa <Martin.Jansa@gmail.com>
> CommitDate: Mon May 11 10:27:28 2015 +0200
> 
>     samba: upgrade to 3.6.25
> 
> Also this patch only removes 3.6.24, but doesn't add 4.1.12.
> 
> Please rebase to latest master and fix the last commit.
> 

Thank you very much.

Please cherry-pick the new one from here
https://github.com/bendaaron/meta-oe-dev/commit/299fc6d67c6e755450c3a1e8cf0ba046eb7fa8b7

Thanks
 Bian

> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
  2015-06-18  0:59     ` Bian, Naimeng
@ 2015-06-18 15:31       ` Martin Jansa
  2015-06-19  3:16         ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-06-18 15:31 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 3629 bytes --]

On Thu, Jun 18, 2015 at 12:59:35AM +0000, Bian, Naimeng wrote:
> 
> 
> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> > Martin Jansa
> > Sent: Thursday, June 18, 2015 4:37 AM
> > To: openembedded-devel@lists.openembedded.org
> > Subject: Re: [oe] [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
> > 
> > On Wed, Jun 17, 2015 at 03:49:13PM +0800, Bian Naimeng wrote:
> > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > >
> > > git send-email will catch error as below
> > >  fatal: 0002-samba-upgrade-to-4.1.12.patch: 965: patch contains a line
> > > longer than 998 characters
> > >
> > > So, please get patch from
> > > https://github.com/bendaaron/meta-oe-dev/commit/47678ed346a1ce347a6470
> > > 5c76df09d4fa537b0e
> > 
> > I've cherry-picked first 6 patches from here, but this last one fails to apply,
> > because you're removing samba 3.6.24, but in master we have 3.6.25 since this
> > commit merged more than month ago:
> > 
> > commit 9ac5713b2fcb5ce03693edd40636d8fce3e014d0
> > Author:     Roy Li <rongqing.li@windriver.com>
> > AuthorDate: Wed Apr 29 17:25:02 2015 +0800
> > Commit:     Martin Jansa <Martin.Jansa@gmail.com>
> > CommitDate: Mon May 11 10:27:28 2015 +0200
> > 
> >     samba: upgrade to 3.6.25
> > 
> > Also this patch only removes 3.6.24, but doesn't add 4.1.12.
> > 
> > Please rebase to latest master and fix the last commit.
> > 
> 
> Thank you very much.
> 
> Please cherry-pick the new one from here
> https://github.com/bendaaron/meta-oe-dev/commit/299fc6d67c6e755450c3a1e8cf0ba046eb7fa8b7

Thanks, it applies and builds now.

Last remaining issue is smbnetfs failing to build with samba 4:

| arm-oe-linux-gnueabi-gcc  -march=armv5te -mthumb  -mthumb-interwork --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm -DHAVE_CONFIG_H -I. -I/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/smbnetfs/git-r0/git/src     -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -D_REENTRANT -D_GNU_SOURCE -DFUSE_USE_VERSION=26 -D_FILE_OFFSET_BITS=64 -I/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/usr/include/fuse -c -o samba.o /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/smbnetfs/git-r0/git/src/samba.c
| /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/smbnetfs/git-r0/git/src/smb_conn_srv.c:12:26: fatal error: libsmbclient.h: No such file or directory
|  #include <libsmbclient.h>
|                           ^
| compilation terminated.
| make[2]: *** [smb_conn_srv.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/smbnetfs/git-r0/build/src'
| make[1]: *** [all] Error 2
| make[1]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/smbnetfs/git-r0/build/src'
| make: *** [all-recursive] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/smbnetfs/git-r0/temp/log.do_compile.11885)
NOTE: recipe smbnetfs-git-r0: task do_compile: Failed
ERROR: Task 13830 (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-filesystems/recipes-filesystems/smbnetfs/smbnetfs_git.bb, do_compile) failed with exit code '1'

Can you check it?

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
  2015-06-18 15:31       ` Martin Jansa
@ 2015-06-19  3:16         ` Bian, Naimeng
  0 siblings, 0 replies; 28+ messages in thread
From: Bian, Naimeng @ 2015-06-19  3:16 UTC (permalink / raw)
  To: openembedded-devel

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Thursday, June 18, 2015 11:31 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
> 
> On Thu, Jun 18, 2015 at 12:59:35AM +0000, Bian, Naimeng wrote:
> >
> >
> > > -----Original Message-----
> > > From: openembedded-devel-bounces@lists.openembedded.org
> > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > Of Martin Jansa
> > > Sent: Thursday, June 18, 2015 4:37 AM
> > > To: openembedded-devel@lists.openembedded.org
> > > Subject: Re: [oe] [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12
> > >
> > > On Wed, Jun 17, 2015 at 03:49:13PM +0800, Bian Naimeng wrote:
> > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > >
> > > > git send-email will catch error as below
> > > >  fatal: 0002-samba-upgrade-to-4.1.12.patch: 965: patch contains a
> > > > line longer than 998 characters
> > > >
> > > > So, please get patch from
> > > > https://github.com/bendaaron/meta-oe-dev/commit/47678ed346a1ce347a
> > > > 6470
> > > > 5c76df09d4fa537b0e
> > >
> > > I've cherry-picked first 6 patches from here, but this last one
> > > fails to apply, because you're removing samba 3.6.24, but in master
> > > we have 3.6.25 since this commit merged more than month ago:
> > >
> > > commit 9ac5713b2fcb5ce03693edd40636d8fce3e014d0
> > > Author:     Roy Li <rongqing.li@windriver.com>
> > > AuthorDate: Wed Apr 29 17:25:02 2015 +0800
> > > Commit:     Martin Jansa <Martin.Jansa@gmail.com>
> > > CommitDate: Mon May 11 10:27:28 2015 +0200
> > >
> > >     samba: upgrade to 3.6.25
> > >
> > > Also this patch only removes 3.6.24, but doesn't add 4.1.12.
> > >
> > > Please rebase to latest master and fix the last commit.
> > >
> >
> > Thank you very much.
> >
> > Please cherry-pick the new one from here
> > https://github.com/bendaaron/meta-oe-dev/commit/299fc6d67c6e755450c3a1
> > e8cf0ba046eb7fa8b7
> 
> Thanks, it applies and builds now.
> 
> Last remaining issue is smbnetfs failing to build with samba 4:
> 
> | arm-oe-linux-gnueabi-gcc  -march=armv5te -mthumb  -mthumb-interwork
> --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm
> -DHAVE_CONFIG_H -I.
> -I/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/
> smbnetfs/git-r0/git/src     -O2 -pipe -g -feliminate-unused-debug-types
> -Wall -W -D_REENTRANT -D_GNU_SOURCE -DFUSE_USE_VERSION=26
> -D_FILE_OFFSET_BITS=64
> -I/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/usr/include/f
> use -c -o samba.o
> /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/sm
> bnetfs/git-r0/git/src/samba.c
> | /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueab
> | i/smbnetfs/git-r0/git/src/smb_conn_srv.c:12:26: fatal error:
> libsmbclient.h: No such file or directory  #include <libsmbclient.h>
> |                           ^
> | compilation terminated.
> | make[2]: *** [smb_conn_srv.o] Error 1
> | make[2]: *** Waiting for unfinished jobs....
> | make[2]: Leaving directory
> `/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/s
> mbnetfs/git-r0/build/src'
> | make[1]: *** [all] Error 2
> | make[1]: Leaving directory
> `/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/s
> mbnetfs/git-r0/build/src'
> | make: *** [all-recursive] Error 1
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at
> | /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueab
> | i/smbnetfs/git-r0/temp/log.do_compile.11885)
> NOTE: recipe smbnetfs-git-r0: task do_compile: Failed
> ERROR: Task 13830
> (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-filesystems/recipe
> s-filesystems/smbnetfs/smbnetfs_git.bb, do_compile) failed with exit code '1'
> 
> Can you check it?

Thanks for your test.

libsmbclient.h will be installed into include/samba-4.0 after upgrading samba to 4.x.
So, IMO, smbnetfs should found headers and libraries by using pkgconfig.

I will send a patch for smbnetfs to fix it.

Thanks
 Bian

> 
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-06-17  7:49 ` [meta-oe][PATCH v2 3/7] libldb: " Bian Naimeng
@ 2015-06-19 15:56   ` Martin Jansa
  2015-06-23  5:47     ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-06-19 15:56 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 5535 bytes --]

On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> libldb is required by samba4
> 
> Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> ---
>  .../do-not-import-target-module-in-configure.patch | 32 +++++++++++++++
>  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45 ++++++++++++++++++++++
>  2 files changed, 77 insertions(+)
>  create mode 100644 meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch
>  create mode 100644 meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Fails to build in bitbake world:

| Checking for system tdb >= 1.2.13                                                 : yes
| ERROR: Python module pytdb of version 1.2.13 not found, and bundling disabled
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/libldb/1.1.17-r0/temp/log.do_configure.22697)
NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
ERROR: Task 25505 (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'

> diff --git a/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch
> new file mode 100644
> index 0000000..b4d522a
> --- /dev/null
> +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch
> @@ -0,0 +1,32 @@
> +Some module can be loaded while cross compile, we jst check whether the module exist
> +
> +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> +
> +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py	2014-05-05 17:00:41.000000000 +0900
> ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py	2015-06-15 10:09:50.210000217 +0900
> +@@ -1,7 +1,7 @@
> + # functions to support bundled libraries
> + 
> + from Configure import conf
> +-import sys, Logs
> ++import sys, Logs, imp
> + from samba_utils import *
> + 
> + def PRIVATE_NAME(bld, name, private_extension, private_library):
> +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> +         m = __import__(modulename)
> +     except ImportError:
> +         found = False
> ++
> ++        build_arch = os.environ["BUILD_ARCH"]
> ++        host_arch = os.environ["HOST_ARCH"]
> ++        if build_arch != host_arch:
> ++            # Some modules maybe can not be imported while cross compile
> ++            # We just check whether the module exist
> ++            stuff = imp.find_module(modulename, [os.environ["PYTHONPATH"]])
> ++            if stuff != None:
> ++                Logs.warn('Cross module[%s] has been found, but can not be loaded.' % (stuff[1]))
> ++                found = True
> +     else:
> +         try:
> +             version = m.__version__
> diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> new file mode 100644
> index 0000000..17607f7
> --- /dev/null
> +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> @@ -0,0 +1,45 @@
> +SUMMARY = "Hierarchical, reference counted memory pool system with destructors"
> +HOMEPAGE = "http://ldb.samba.org"
> +SECTION = "libs"
> +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> +
> +DEPENDS += "libtdb talloc libtevent libtdb"
> +RDEPENDS_${PN} += "libtevent popt libtalloc"
> +RDEPENDS_pyldb += "python libtdb libtalloc"
> +
> +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> +           file://do-not-import-target-module-in-configure.patch"
> +
> +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \
> +                    file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780 \
> +                    file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
> +
> +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> +SRC_URI[sha256sum] = "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> +
> +inherit waf-samba
> +
> +S = "${WORKDIR}/ldb-${PV}"
> +
> +EXTRA_OECONF += "--disable-rpath \
> +                 --disable-rpath-install \
> +                 --bundled-libraries=NONE \
> +                 --builtin-libraries=replace \
> +                 --with-modulesdir=${libdir}/ldb/modules \
> +                 --with-privatelibdir=${libdir}/ldb \
> +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> +                "
> +
> +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> +
> +FILES_${PN} += "${libdir}/ldb/*"
> +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> +                    ${libdir}/ldb/modules/ldb/.debug/*"
> +
> +FILES_pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \
> +               ${libdir}/libpyldb-util.so.1 \
> +               ${libdir}/libpyldb-util.so.1.1.17 \
> +              "
> +FILES_pyldb-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
> +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-06-19 15:56   ` Martin Jansa
@ 2015-06-23  5:47     ` Bian, Naimeng
  2015-06-23  8:05       ` Martin Jansa
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-06-23  5:47 UTC (permalink / raw)
  To: openembedded-devel

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Friday, June 19, 2015 11:57 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> 
> On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > libldb is required by samba4
> >
> > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > ---
> >  .../do-not-import-target-module-in-configure.patch | 32 +++++++++++++++
> >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> ++++++++++++++++++++++
> >  2 files changed, 77 insertions(+)
> >  create mode 100644
> > meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-c
> > onfigure.patch  create mode 100644
> > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> 
> Fails to build in bitbake world:
> 
> | Checking for system tdb >=
> 1.2.13                                                 : yes
> | ERROR: Python module pytdb of version 1.2.13 not found, and bundling
> | disabled
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_configure (log file is located at
> | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/libld
> | b/1.1.17-r0/temp/log.do_configure.22697)
> NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> ERROR: Task 25505
> (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support
> /libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'
> 

tdb.so is provided by libtdb which is DEPEND-ed by libldb, I think it should be installed into
STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.

Because I could not reproduce it in my building, would you mind telling me whether does tdb.so exist 
in STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was caught.

Thanks
 Bian

> > diff --git
> > a/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in
> > -configure.patch
> > b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in
> > -configure.patch
> > new file mode 100644
> > index 0000000..b4d522a
> > --- /dev/null
> > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul
> > +++ e-in-configure.patch
> > @@ -0,0 +1,32 @@
> > +Some module can be loaded while cross compile, we jst check whether
> > +the module exist
> > +
> > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > +
> > +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py	2014-05-05
> 17:00:41.000000000 +0900
> > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py	2015-06-15
> 10:09:50.210000217 +0900
> > +@@ -1,7 +1,7 @@
> > + # functions to support bundled libraries
> > +
> > + from Configure import conf
> > +-import sys, Logs
> > ++import sys, Logs, imp
> > + from samba_utils import *
> > +
> > + def PRIVATE_NAME(bld, name, private_extension, private_library):
> > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> > +         m = __import__(modulename)
> > +     except ImportError:
> > +         found = False
> > ++
> > ++        build_arch = os.environ["BUILD_ARCH"]
> > ++        host_arch = os.environ["HOST_ARCH"]
> > ++        if build_arch != host_arch:
> > ++            # Some modules maybe can not be imported while cross compile
> > ++            # We just check whether the module exist
> > ++            stuff = imp.find_module(modulename,
> [os.environ["PYTHONPATH"]])
> > ++            if stuff != None:
> > ++                Logs.warn('Cross module[%s] has been found, but can not
> be loaded.' % (stuff[1]))
> > ++                found = True
> > +     else:
> > +         try:
> > +             version = m.__version__
> > diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > new file mode 100644
> > index 0000000..17607f7
> > --- /dev/null
> > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > @@ -0,0 +1,45 @@
> > +SUMMARY = "Hierarchical, reference counted memory pool system with
> destructors"
> > +HOMEPAGE = "http://ldb.samba.org"
> > +SECTION = "libs"
> > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > +
> > +DEPENDS += "libtdb talloc libtevent libtdb"
> > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > +
> > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> > +           file://do-not-import-target-module-in-configure.patch"
> > +
> > +LIC_FILES_CHKSUM =
> "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269ff
> f2b407dd11f2f3083b \
> > +
> file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675
> ffea8be556788b780 \
> > +
> file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d
> 293b95dea7b07891"
> > +
> > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > +SRC_URI[sha256sum] =
> "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > +
> > +inherit waf-samba
> > +
> > +S = "${WORKDIR}/ldb-${PV}"
> > +
> > +EXTRA_OECONF += "--disable-rpath \
> > +                 --disable-rpath-install \
> > +                 --bundled-libraries=NONE \
> > +                 --builtin-libraries=replace \
> > +                 --with-modulesdir=${libdir}/ldb/modules \
> > +                 --with-privatelibdir=${libdir}/ldb \
> > +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > +                "
> > +
> > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > +
> > +FILES_${PN} += "${libdir}/ldb/*"
> > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > +
> > +FILES_pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \
> > +               ${libdir}/libpyldb-util.so.1 \
> > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > +              "
> > +FILES_pyldb-dbg =
> "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
> > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > --
> > 1.9.1
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-06-23  5:47     ` Bian, Naimeng
@ 2015-06-23  8:05       ` Martin Jansa
  2015-06-24  7:04         ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-06-23  8:05 UTC (permalink / raw)
  To: openembedded-devel

I don't have access to that build anymore (because it's jenkins job using
tmpfs for TMPDIR, so after the build the TMPDIR is gone), but it's failing
only in qemux86-64 builds, so I assume that it's finding host tdb or python
directories, because it's running on 12.04 Ubuntu x86-64.

Try to install tdb on your build host if it allows you to reproduce the
issue, otherwise I'll try to reproduce it again in some next jenkins build.

On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng <biannm@cn.fujitsu.com>
wrote:

> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> > Martin Jansa
> > Sent: Friday, June 19, 2015 11:57 PM
> > To: openembedded-devel@lists.openembedded.org
> > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> >
> > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > libldb is required by samba4
> > >
> > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > ---
> > >  .../do-not-import-target-module-in-configure.patch | 32
> +++++++++++++++
> > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > ++++++++++++++++++++++
> > >  2 files changed, 77 insertions(+)
> > >  create mode 100644
> > > meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-c
> > > onfigure.patch  create mode 100644
> > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> >
> > Fails to build in bitbake world:
> >
> > | Checking for system tdb >=
> > 1.2.13                                                 : yes
> > | ERROR: Python module pytdb of version 1.2.13 not found, and bundling
> > | disabled
> > | WARNING: exit code 1 from a shell command.
> > | ERROR: Function failed: do_configure (log file is located at
> > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/libld
> > | b/1.1.17-r0/temp/log.do_configure.22697)
> > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > ERROR: Task 25505
> >
> (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support
> > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'
> >
>
> tdb.so is provided by libtdb which is DEPEND-ed by libldb, I think it
> should be installed into
> STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
>
> Because I could not reproduce it in my building, would you mind telling me
> whether does tdb.so exist
> in STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was caught.
>
> Thanks
>  Bian
>
> > > diff --git
> > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in
> > > -configure.patch
> > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in
> > > -configure.patch
> > > new file mode 100644
> > > index 0000000..b4d522a
> > > --- /dev/null
> > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul
> > > +++ e-in-configure.patch
> > > @@ -0,0 +1,32 @@
> > > +Some module can be loaded while cross compile, we jst check whether
> > > +the module exist
> > > +
> > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > +
> > > +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py   2014-05-05
> > 17:00:41.000000000 +0900
> > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py        2015-06-15
> > 10:09:50.210000217 +0900
> > > +@@ -1,7 +1,7 @@
> > > + # functions to support bundled libraries
> > > +
> > > + from Configure import conf
> > > +-import sys, Logs
> > > ++import sys, Logs, imp
> > > + from samba_utils import *
> > > +
> > > + def PRIVATE_NAME(bld, name, private_extension, private_library):
> > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> > > +         m = __import__(modulename)
> > > +     except ImportError:
> > > +         found = False
> > > ++
> > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > ++        host_arch = os.environ["HOST_ARCH"]
> > > ++        if build_arch != host_arch:
> > > ++            # Some modules maybe can not be imported while cross
> compile
> > > ++            # We just check whether the module exist
> > > ++            stuff = imp.find_module(modulename,
> > [os.environ["PYTHONPATH"]])
> > > ++            if stuff != None:
> > > ++                Logs.warn('Cross module[%s] has been found, but can
> not
> > be loaded.' % (stuff[1]))
> > > ++                found = True
> > > +     else:
> > > +         try:
> > > +             version = m.__version__
> > > diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > new file mode 100644
> > > index 0000000..17607f7
> > > --- /dev/null
> > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > @@ -0,0 +1,45 @@
> > > +SUMMARY = "Hierarchical, reference counted memory pool system with
> > destructors"
> > > +HOMEPAGE = "http://ldb.samba.org"
> > > +SECTION = "libs"
> > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > +
> > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > +
> > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> > > +           file://do-not-import-target-module-in-configure.patch"
> > > +
> > > +LIC_FILES_CHKSUM =
> >
> "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269ff
> > f2b407dd11f2f3083b \
> > > +
> >
> file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675
> > ffea8be556788b780 \
> > > +
> >
> file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d
> > 293b95dea7b07891"
> > > +
> > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > +SRC_URI[sha256sum] =
> > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > +
> > > +inherit waf-samba
> > > +
> > > +S = "${WORKDIR}/ldb-${PV}"
> > > +
> > > +EXTRA_OECONF += "--disable-rpath \
> > > +                 --disable-rpath-install \
> > > +                 --bundled-libraries=NONE \
> > > +                 --builtin-libraries=replace \
> > > +                 --with-modulesdir=${libdir}/ldb/modules \
> > > +                 --with-privatelibdir=${libdir}/ldb \
> > > +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > +                "
> > > +
> > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > +
> > > +FILES_${PN} += "${libdir}/ldb/*"
> > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > +
> > > +FILES_pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \
> > > +               ${libdir}/libpyldb-util.so.1 \
> > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > +              "
> > > +FILES_pyldb-dbg =
> > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
> > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > --
> > > 1.9.1
> > >
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> > --
> > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-06-23  8:05       ` Martin Jansa
@ 2015-06-24  7:04         ` Bian, Naimeng
  2015-07-02  9:01           ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-06-24  7:04 UTC (permalink / raw)
  To: openembedded-devel

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Tuesday, June 23, 2015 4:05 PM
> To: openembedded-devel
> Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> 
> I don't have access to that build anymore (because it's jenkins job using tmpfs
> for TMPDIR, so after the build the TMPDIR is gone), but it's failing only in
> qemux86-64 builds, so I assume that it's finding host tdb or python directories,
> because it's running on 12.04 Ubuntu x86-64.
> 
> Try to install tdb on your build host if it allows you to reproduce the issue,
> otherwise I'll try to reproduce it again in some next jenkins build.
> 

My host is CentOS6.5 x86-64, and although I installed tdb.so into my host, i still
cannot reproduce it.

And, I have exported PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} in waf-samba.bbclasss which
is inherited by libldb. IMO, it should find modules in PYTHONPATH firstly.

Thanks
 Bian


> On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng <biannm@cn.fujitsu.com>
> wrote:
> 
> > > -----Original Message-----
> > > From: openembedded-devel-bounces@lists.openembedded.org
> > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > Of Martin Jansa
> > > Sent: Friday, June 19, 2015 11:57 PM
> > > To: openembedded-devel@lists.openembedded.org
> > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > >
> > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > libldb is required by samba4
> > > >
> > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > ---
> > > >  .../do-not-import-target-module-in-configure.patch | 32
> > +++++++++++++++
> > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > > ++++++++++++++++++++++
> > > >  2 files changed, 77 insertions(+)  create mode 100644
> > > > meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-
> > > > in-c onfigure.patch  create mode 100644
> > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > >
> > > Fails to build in bitbake world:
> > >
> > > | Checking for system tdb >=
> > > 1.2.13                                                 : yes
> > > | ERROR: Python module pytdb of version 1.2.13 not found, and
> > > | bundling disabled
> > > | WARNING: exit code 1 from a shell command.
> > > | ERROR: Function failed: do_configure (log file is located at
> > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/l
> > > | ibld
> > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > ERROR: Task 25505
> > >
> > (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-sup
> > port
> > > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'
> > >
> >
> > tdb.so is provided by libtdb which is DEPEND-ed by libldb, I think it
> > should be installed into STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> >
> > Because I could not reproduce it in my building, would you mind
> > telling me whether does tdb.so exist in
> > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was caught.
> >
> > Thanks
> >  Bian
> >
> > > > diff --git
> > > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul
> > > > e-in
> > > > -configure.patch
> > > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul
> > > > e-in
> > > > -configure.patch
> > > > new file mode 100644
> > > > index 0000000..b4d522a
> > > > --- /dev/null
> > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-m
> > > > +++ odul
> > > > +++ e-in-configure.patch
> > > > @@ -0,0 +1,32 @@
> > > > +Some module can be loaded while cross compile, we jst check
> > > > +whether the module exist
> > > > +
> > > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > +
> > > > +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py   2014-05-05
> > > 17:00:41.000000000 +0900
> > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py        2015-06-15
> > > 10:09:50.210000217 +0900
> > > > +@@ -1,7 +1,7 @@
> > > > + # functions to support bundled libraries
> > > > +
> > > > + from Configure import conf
> > > > +-import sys, Logs
> > > > ++import sys, Logs, imp
> > > > + from samba_utils import *
> > > > +
> > > > + def PRIVATE_NAME(bld, name, private_extension, private_library):
> > > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> > > > +         m = __import__(modulename)
> > > > +     except ImportError:
> > > > +         found = False
> > > > ++
> > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > ++        if build_arch != host_arch:
> > > > ++            # Some modules maybe can not be imported while cross
> > compile
> > > > ++            # We just check whether the module exist
> > > > ++            stuff = imp.find_module(modulename,
> > > [os.environ["PYTHONPATH"]])
> > > > ++            if stuff != None:
> > > > ++                Logs.warn('Cross module[%s] has been found, but
> > > > ++ can
> > not
> > > be loaded.' % (stuff[1]))
> > > > ++                found = True
> > > > +     else:
> > > > +         try:
> > > > +             version = m.__version__
> > > > diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > new file mode 100644
> > > > index 0000000..17607f7
> > > > --- /dev/null
> > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > @@ -0,0 +1,45 @@
> > > > +SUMMARY = "Hierarchical, reference counted memory pool system
> > > > +with
> > > destructors"
> > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > +SECTION = "libs"
> > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > +
> > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > +
> > > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> > > > +           file://do-not-import-target-module-in-configure.patch"
> > > > +
> > > > +LIC_FILES_CHKSUM =
> > >
> > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe9522
> > 69ff
> > > f2b407dd11f2f3083b \
> > > > +
> > >
> > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd21
> > 8675
> > > ffea8be556788b780 \
> > > > +
> > >
> > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19df
> > ec6d
> > > 293b95dea7b07891"
> > > > +
> > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > +SRC_URI[sha256sum] =
> > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > +
> > > > +inherit waf-samba
> > > > +
> > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > +
> > > > +EXTRA_OECONF += "--disable-rpath \
> > > > +                 --disable-rpath-install \
> > > > +                 --bundled-libraries=NONE \
> > > > +                 --builtin-libraries=replace \
> > > > +                 --with-modulesdir=${libdir}/ldb/modules \
> > > > +                 --with-privatelibdir=${libdir}/ldb \
> > > > +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > +                "
> > > > +
> > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > +
> > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > +
> > > > +FILES_pyldb = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*
> \
> > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > +              "
> > > > +FILES_pyldb-dbg =
> > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
> > > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > --
> > > > 1.9.1
> > > >
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > >
> > > --
> > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-06-24  7:04         ` Bian, Naimeng
@ 2015-07-02  9:01           ` Bian, Naimeng
  2015-07-08 10:32             ` Martin Jansa
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-07-02  9:01 UTC (permalink / raw)
  To: openembedded-devel

Hi Martin,

I think I have fixed them and pushed them to github, please cherry-pick them.

- libldb
  https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236226646fde99611c20fe3fcc6612e7a


- samba
  https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820294cb9ce239d9d4dccc492ea

Thanks
 Bian

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of Bian,
> Naimeng
> Sent: Wednesday, June 24, 2015 3:05 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> 
> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > Of Martin Jansa
> > Sent: Tuesday, June 23, 2015 4:05 PM
> > To: openembedded-devel
> > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> >
> > I don't have access to that build anymore (because it's jenkins job
> > using tmpfs for TMPDIR, so after the build the TMPDIR is gone), but
> > it's failing only in
> > qemux86-64 builds, so I assume that it's finding host tdb or python
> > directories, because it's running on 12.04 Ubuntu x86-64.
> >
> > Try to install tdb on your build host if it allows you to reproduce
> > the issue, otherwise I'll try to reproduce it again in some next jenkins build.
> >
> 
> My host is CentOS6.5 x86-64, and although I installed tdb.so into my host, i
> still cannot reproduce it.
> 
> And, I have exported
> PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} in
> waf-samba.bbclasss which is inherited by libldb. IMO, it should find modules
> in PYTHONPATH firstly.
> 
> Thanks
>  Bian
> 
> 
> > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng <biannm@cn.fujitsu.com>
> > wrote:
> >
> > > > -----Original Message-----
> > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > Behalf Of Martin Jansa
> > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > To: openembedded-devel@lists.openembedded.org
> > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > >
> > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > > libldb is required by samba4
> > > > >
> > > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > ---
> > > > >  .../do-not-import-target-module-in-configure.patch | 32
> > > +++++++++++++++
> > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > > > ++++++++++++++++++++++
> > > > >  2 files changed, 77 insertions(+)  create mode 100644
> > > > > meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul
> > > > > e- in-c onfigure.patch  create mode 100644
> > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > >
> > > > Fails to build in bitbake world:
> > > >
> > > > | Checking for system tdb >=
> > > > 1.2.13                                                 : yes
> > > > | ERROR: Python module pytdb of version 1.2.13 not found, and
> > > > | bundling disabled
> > > > | WARNING: exit code 1 from a shell command.
> > > > | ERROR: Function failed: do_configure (log file is located at
> > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux
> > > > | /l
> > > > | ibld
> > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > > ERROR: Task 25505
> > > >
> > > (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-s
> > > up
> > > port
> > > > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'
> > > >
> > >
> > > tdb.so is provided by libtdb which is DEPEND-ed by libldb, I think
> > > it should be installed into STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > >
> > > Because I could not reproduce it in my building, would you mind
> > > telling me whether does tdb.so exist in
> > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was caught.
> > >
> > > Thanks
> > >  Bian
> > >
> > > > > diff --git
> > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-target-mod
> > > > > ul
> > > > > e-in
> > > > > -configure.patch
> > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-mod
> > > > > ul
> > > > > e-in
> > > > > -configure.patch
> > > > > new file mode 100644
> > > > > index 0000000..b4d522a
> > > > > --- /dev/null
> > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-target
> > > > > +++ -m
> > > > > +++ odul
> > > > > +++ e-in-configure.patch
> > > > > @@ -0,0 +1,32 @@
> > > > > +Some module can be loaded while cross compile, we jst check
> > > > > +whether the module exist
> > > > > +
> > > > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > +
> > > > > +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py
> 2014-05-05
> > > > 17:00:41.000000000 +0900
> > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py
> 2015-06-15
> > > > 10:09:50.210000217 +0900
> > > > > +@@ -1,7 +1,7 @@
> > > > > + # functions to support bundled libraries
> > > > > +
> > > > > + from Configure import conf
> > > > > +-import sys, Logs
> > > > > ++import sys, Logs, imp
> > > > > + from samba_utils import *
> > > > > +
> > > > > + def PRIVATE_NAME(bld, name, private_extension, private_library):
> > > > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> > > > > +         m = __import__(modulename)
> > > > > +     except ImportError:
> > > > > +         found = False
> > > > > ++
> > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > ++        if build_arch != host_arch:
> > > > > ++            # Some modules maybe can not be imported while
> > > > > ++ cross
> > > compile
> > > > > ++            # We just check whether the module exist
> > > > > ++            stuff = imp.find_module(modulename,
> > > > [os.environ["PYTHONPATH"]])
> > > > > ++            if stuff != None:
> > > > > ++                Logs.warn('Cross module[%s] has been found,
> > > > > ++ but can
> > > not
> > > > be loaded.' % (stuff[1]))
> > > > > ++                found = True
> > > > > +     else:
> > > > > +         try:
> > > > > +             version = m.__version__
> > > > > diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > new file mode 100644
> > > > > index 0000000..17607f7
> > > > > --- /dev/null
> > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > @@ -0,0 +1,45 @@
> > > > > +SUMMARY = "Hierarchical, reference counted memory pool system
> > > > > +with
> > > > destructors"
> > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > +SECTION = "libs"
> > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > +
> > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > +
> > > > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> > > > > +           file://do-not-import-target-module-in-configure.patch"
> > > > > +
> > > > > +LIC_FILES_CHKSUM =
> > > >
> > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe95
> > > 22
> > > 69ff
> > > > f2b407dd11f2f3083b \
> > > > > +
> > > >
> > > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd
> > > 21
> > > 8675
> > > > ffea8be556788b780 \
> > > > > +
> > > >
> > > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19
> > > df
> > > ec6d
> > > > 293b95dea7b07891"
> > > > > +
> > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > +SRC_URI[sha256sum] =
> > > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > +
> > > > > +inherit waf-samba
> > > > > +
> > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > +
> > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > +                 --disable-rpath-install \
> > > > > +                 --bundled-libraries=NONE \
> > > > > +                 --builtin-libraries=replace \
> > > > > +                 --with-modulesdir=${libdir}/ldb/modules \
> > > > > +                 --with-privatelibdir=${libdir}/ldb \
> > > > > +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > +                "
> > > > > +
> > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > +
> > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > +
> > > > > +FILES_pyldb =
> > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-packages/*
> > \
> > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > +              "
> > > > > +FILES_pyldb-dbg =
> > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
> > > > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > --
> > > > > 1.9.1
> > > > >
> > > > > --
> > > > > _______________________________________________
> > > > > Openembedded-devel mailing list
> > > > > Openembedded-devel@lists.openembedded.org
> > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > l
> > > >
> > > > --
> > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-07-02  9:01           ` Bian, Naimeng
@ 2015-07-08 10:32             ` Martin Jansa
  2015-07-08 11:59               ` Martin Jansa
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-07-08 10:32 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 11356 bytes --]

On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> Hi Martin,
> 
> I think I have fixed them and pushed them to github, please cherry-pick them.
> 
> - libldb
>   https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236226646fde99611c20fe3fcc6612e7a

Hi Bian,

it's still failing with this patch. I'll try to build it manually and
provide more details.

> - samba
>   https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820294cb9ce239d9d4dccc492ea
> 
> Thanks
>  Bian
> 
> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of Bian,
> > Naimeng
> > Sent: Wednesday, June 24, 2015 3:05 PM
> > To: openembedded-devel@lists.openembedded.org
> > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > 
> > > -----Original Message-----
> > > From: openembedded-devel-bounces@lists.openembedded.org
> > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > Of Martin Jansa
> > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > To: openembedded-devel
> > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > >
> > > I don't have access to that build anymore (because it's jenkins job
> > > using tmpfs for TMPDIR, so after the build the TMPDIR is gone), but
> > > it's failing only in
> > > qemux86-64 builds, so I assume that it's finding host tdb or python
> > > directories, because it's running on 12.04 Ubuntu x86-64.
> > >
> > > Try to install tdb on your build host if it allows you to reproduce
> > > the issue, otherwise I'll try to reproduce it again in some next jenkins build.
> > >
> > 
> > My host is CentOS6.5 x86-64, and although I installed tdb.so into my host, i
> > still cannot reproduce it.
> > 
> > And, I have exported
> > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} in
> > waf-samba.bbclasss which is inherited by libldb. IMO, it should find modules
> > in PYTHONPATH firstly.
> > 
> > Thanks
> >  Bian
> > 
> > 
> > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng <biannm@cn.fujitsu.com>
> > > wrote:
> > >
> > > > > -----Original Message-----
> > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > Behalf Of Martin Jansa
> > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > To: openembedded-devel@lists.openembedded.org
> > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > > >
> > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > > > libldb is required by samba4
> > > > > >
> > > > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > ---
> > > > > >  .../do-not-import-target-module-in-configure.patch | 32
> > > > +++++++++++++++
> > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > > > > ++++++++++++++++++++++
> > > > > >  2 files changed, 77 insertions(+)  create mode 100644
> > > > > > meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul
> > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > >
> > > > > Fails to build in bitbake world:
> > > > >
> > > > > | Checking for system tdb >=
> > > > > 1.2.13                                                 : yes
> > > > > | ERROR: Python module pytdb of version 1.2.13 not found, and
> > > > > | bundling disabled
> > > > > | WARNING: exit code 1 from a shell command.
> > > > > | ERROR: Function failed: do_configure (log file is located at
> > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux
> > > > > | /l
> > > > > | ibld
> > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > > > ERROR: Task 25505
> > > > >
> > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-s
> > > > up
> > > > port
> > > > > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'
> > > > >
> > > >
> > > > tdb.so is provided by libtdb which is DEPEND-ed by libldb, I think
> > > > it should be installed into STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > >
> > > > Because I could not reproduce it in my building, would you mind
> > > > telling me whether does tdb.so exist in
> > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was caught.
> > > >
> > > > Thanks
> > > >  Bian
> > > >
> > > > > > diff --git
> > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-target-mod
> > > > > > ul
> > > > > > e-in
> > > > > > -configure.patch
> > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-mod
> > > > > > ul
> > > > > > e-in
> > > > > > -configure.patch
> > > > > > new file mode 100644
> > > > > > index 0000000..b4d522a
> > > > > > --- /dev/null
> > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-target
> > > > > > +++ -m
> > > > > > +++ odul
> > > > > > +++ e-in-configure.patch
> > > > > > @@ -0,0 +1,32 @@
> > > > > > +Some module can be loaded while cross compile, we jst check
> > > > > > +whether the module exist
> > > > > > +
> > > > > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > +
> > > > > > +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py
> > 2014-05-05
> > > > > 17:00:41.000000000 +0900
> > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py
> > 2015-06-15
> > > > > 10:09:50.210000217 +0900
> > > > > > +@@ -1,7 +1,7 @@
> > > > > > + # functions to support bundled libraries
> > > > > > +
> > > > > > + from Configure import conf
> > > > > > +-import sys, Logs
> > > > > > ++import sys, Logs, imp
> > > > > > + from samba_utils import *
> > > > > > +
> > > > > > + def PRIVATE_NAME(bld, name, private_extension, private_library):
> > > > > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> > > > > > +         m = __import__(modulename)
> > > > > > +     except ImportError:
> > > > > > +         found = False
> > > > > > ++
> > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > ++        if build_arch != host_arch:
> > > > > > ++            # Some modules maybe can not be imported while
> > > > > > ++ cross
> > > > compile
> > > > > > ++            # We just check whether the module exist
> > > > > > ++            stuff = imp.find_module(modulename,
> > > > > [os.environ["PYTHONPATH"]])
> > > > > > ++            if stuff != None:
> > > > > > ++                Logs.warn('Cross module[%s] has been found,
> > > > > > ++ but can
> > > > not
> > > > > be loaded.' % (stuff[1]))
> > > > > > ++                found = True
> > > > > > +     else:
> > > > > > +         try:
> > > > > > +             version = m.__version__
> > > > > > diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > new file mode 100644
> > > > > > index 0000000..17607f7
> > > > > > --- /dev/null
> > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > @@ -0,0 +1,45 @@
> > > > > > +SUMMARY = "Hierarchical, reference counted memory pool system
> > > > > > +with
> > > > > destructors"
> > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > +SECTION = "libs"
> > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > +
> > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > +
> > > > > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> > > > > > +           file://do-not-import-target-module-in-configure.patch"
> > > > > > +
> > > > > > +LIC_FILES_CHKSUM =
> > > > >
> > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe95
> > > > 22
> > > > 69ff
> > > > > f2b407dd11f2f3083b \
> > > > > > +
> > > > >
> > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd
> > > > 21
> > > > 8675
> > > > > ffea8be556788b780 \
> > > > > > +
> > > > >
> > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19
> > > > df
> > > > ec6d
> > > > > 293b95dea7b07891"
> > > > > > +
> > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > +SRC_URI[sha256sum] =
> > > > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > +
> > > > > > +inherit waf-samba
> > > > > > +
> > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > +
> > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > +                 --disable-rpath-install \
> > > > > > +                 --bundled-libraries=NONE \
> > > > > > +                 --builtin-libraries=replace \
> > > > > > +                 --with-modulesdir=${libdir}/ldb/modules \
> > > > > > +                 --with-privatelibdir=${libdir}/ldb \
> > > > > > +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > +                "
> > > > > > +
> > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > +
> > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > +
> > > > > > +FILES_pyldb =
> > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-packages/*
> > > \
> > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > +              "
> > > > > > +FILES_pyldb-dbg =
> > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
> > > > > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > --
> > > > > > 1.9.1
> > > > > >
> > > > > > --
> > > > > > _______________________________________________
> > > > > > Openembedded-devel mailing list
> > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > > l
> > > > >
> > > > > --
> > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > >
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-07-08 10:32             ` Martin Jansa
@ 2015-07-08 11:59               ` Martin Jansa
  2015-07-09  0:30                 ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-07-08 11:59 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 12258 bytes --]

On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > Hi Martin,
> > 
> > I think I have fixed them and pushed them to github, please cherry-pick them.
> > 
> > - libldb
> >   https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236226646fde99611c20fe3fcc6612e7a
> 
> Hi Bian,
> 
> it's still failing with this patch. I'll try to build it manually and
> provide more details.

find /usr/lib/python* -name \*tdb\*
=nothing=

ldb and tdb workdirs are here:
http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.bz2
http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.bz2

> > - samba
> >   https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820294cb9ce239d9d4dccc492ea
> > 
> > Thanks
> >  Bian
> > 
> > > -----Original Message-----
> > > From: openembedded-devel-bounces@lists.openembedded.org
> > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of Bian,
> > > Naimeng
> > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > To: openembedded-devel@lists.openembedded.org
> > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > 
> > > > -----Original Message-----
> > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > > Of Martin Jansa
> > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > To: openembedded-devel
> > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > >
> > > > I don't have access to that build anymore (because it's jenkins job
> > > > using tmpfs for TMPDIR, so after the build the TMPDIR is gone), but
> > > > it's failing only in
> > > > qemux86-64 builds, so I assume that it's finding host tdb or python
> > > > directories, because it's running on 12.04 Ubuntu x86-64.
> > > >
> > > > Try to install tdb on your build host if it allows you to reproduce
> > > > the issue, otherwise I'll try to reproduce it again in some next jenkins build.
> > > >
> > > 
> > > My host is CentOS6.5 x86-64, and although I installed tdb.so into my host, i
> > > still cannot reproduce it.
> > > 
> > > And, I have exported
> > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} in
> > > waf-samba.bbclasss which is inherited by libldb. IMO, it should find modules
> > > in PYTHONPATH firstly.
> > > 
> > > Thanks
> > >  Bian
> > > 
> > > 
> > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng <biannm@cn.fujitsu.com>
> > > > wrote:
> > > >
> > > > > > -----Original Message-----
> > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > > Behalf Of Martin Jansa
> > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > > > >
> > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > > > > libldb is required by samba4
> > > > > > >
> > > > > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > ---
> > > > > > >  .../do-not-import-target-module-in-configure.patch | 32
> > > > > +++++++++++++++
> > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > > > > > ++++++++++++++++++++++
> > > > > > >  2 files changed, 77 insertions(+)  create mode 100644
> > > > > > > meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul
> > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > >
> > > > > > Fails to build in bitbake world:
> > > > > >
> > > > > > | Checking for system tdb >=
> > > > > > 1.2.13                                                 : yes
> > > > > > | ERROR: Python module pytdb of version 1.2.13 not found, and
> > > > > > | bundling disabled
> > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > | ERROR: Function failed: do_configure (log file is located at
> > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux
> > > > > > | /l
> > > > > > | ibld
> > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > > > > ERROR: Task 25505
> > > > > >
> > > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-s
> > > > > up
> > > > > port
> > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'
> > > > > >
> > > > >
> > > > > tdb.so is provided by libtdb which is DEPEND-ed by libldb, I think
> > > > > it should be installed into STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > >
> > > > > Because I could not reproduce it in my building, would you mind
> > > > > telling me whether does tdb.so exist in
> > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was caught.
> > > > >
> > > > > Thanks
> > > > >  Bian
> > > > >
> > > > > > > diff --git
> > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-target-mod
> > > > > > > ul
> > > > > > > e-in
> > > > > > > -configure.patch
> > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-target-mod
> > > > > > > ul
> > > > > > > e-in
> > > > > > > -configure.patch
> > > > > > > new file mode 100644
> > > > > > > index 0000000..b4d522a
> > > > > > > --- /dev/null
> > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-target
> > > > > > > +++ -m
> > > > > > > +++ odul
> > > > > > > +++ e-in-configure.patch
> > > > > > > @@ -0,0 +1,32 @@
> > > > > > > +Some module can be loaded while cross compile, we jst check
> > > > > > > +whether the module exist
> > > > > > > +
> > > > > > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > +
> > > > > > > +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py
> > > 2014-05-05
> > > > > > 17:00:41.000000000 +0900
> > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py
> > > 2015-06-15
> > > > > > 10:09:50.210000217 +0900
> > > > > > > +@@ -1,7 +1,7 @@
> > > > > > > + # functions to support bundled libraries
> > > > > > > +
> > > > > > > + from Configure import conf
> > > > > > > +-import sys, Logs
> > > > > > > ++import sys, Logs, imp
> > > > > > > + from samba_utils import *
> > > > > > > +
> > > > > > > + def PRIVATE_NAME(bld, name, private_extension, private_library):
> > > > > > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> > > > > > > +         m = __import__(modulename)
> > > > > > > +     except ImportError:
> > > > > > > +         found = False
> > > > > > > ++
> > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > ++        if build_arch != host_arch:
> > > > > > > ++            # Some modules maybe can not be imported while
> > > > > > > ++ cross
> > > > > compile
> > > > > > > ++            # We just check whether the module exist
> > > > > > > ++            stuff = imp.find_module(modulename,
> > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > ++            if stuff != None:
> > > > > > > ++                Logs.warn('Cross module[%s] has been found,
> > > > > > > ++ but can
> > > > > not
> > > > > > be loaded.' % (stuff[1]))
> > > > > > > ++                found = True
> > > > > > > +     else:
> > > > > > > +         try:
> > > > > > > +             version = m.__version__
> > > > > > > diff --git a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > new file mode 100644
> > > > > > > index 0000000..17607f7
> > > > > > > --- /dev/null
> > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > @@ -0,0 +1,45 @@
> > > > > > > +SUMMARY = "Hierarchical, reference counted memory pool system
> > > > > > > +with
> > > > > > destructors"
> > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > +SECTION = "libs"
> > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > +
> > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > +
> > > > > > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> > > > > > > +           file://do-not-import-target-module-in-configure.patch"
> > > > > > > +
> > > > > > > +LIC_FILES_CHKSUM =
> > > > > >
> > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe95
> > > > > 22
> > > > > 69ff
> > > > > > f2b407dd11f2f3083b \
> > > > > > > +
> > > > > >
> > > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd
> > > > > 21
> > > > > 8675
> > > > > > ffea8be556788b780 \
> > > > > > > +
> > > > > >
> > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19
> > > > > df
> > > > > ec6d
> > > > > > 293b95dea7b07891"
> > > > > > > +
> > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > +SRC_URI[sha256sum] =
> > > > > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > +
> > > > > > > +inherit waf-samba
> > > > > > > +
> > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > +
> > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > +                 --disable-rpath-install \
> > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > +                 --builtin-libraries=replace \
> > > > > > > +                 --with-modulesdir=${libdir}/ldb/modules \
> > > > > > > +                 --with-privatelibdir=${libdir}/ldb \
> > > > > > > +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > +                "
> > > > > > > +
> > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > +
> > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > +
> > > > > > > +FILES_pyldb =
> > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-packages/*
> > > > \
> > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > > +              "
> > > > > > > +FILES_pyldb-dbg =
> > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \
> > > > > > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > --
> > > > > > > 1.9.1
> > > > > > >
> > > > > > > --
> > > > > > > _______________________________________________
> > > > > > > Openembedded-devel mailing list
> > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > > > l
> > > > > >
> > > > > > --
> > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > --
> > > > > _______________________________________________
> > > > > Openembedded-devel mailing list
> > > > > Openembedded-devel@lists.openembedded.org
> > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > > >
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > -- 
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> -- 
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com



-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-07-08 11:59               ` Martin Jansa
@ 2015-07-09  0:30                 ` Bian, Naimeng
  2015-07-09 15:54                   ` Martin Jansa
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-07-09  0:30 UTC (permalink / raw)
  To: openembedded-devel

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Wednesday, July 08, 2015 7:59 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> 
> On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > Hi Martin,
> > >
> > > I think I have fixed them and pushed them to github, please cherry-pick
> them.
> > >
> > > - libldb
> > >
> > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236226646fde9
> > > 9611c20fe3fcc6612e7a
> >
> > Hi Bian,
> >
> > it's still failing with this patch. I'll try to build it manually and
> > provide more details.
> 
> find /usr/lib/python* -name \*tdb\*
> =nothing=
> 
> ldb and tdb workdirs are here:
> http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.bz2
> http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.bz2
> 

Thank you very much.
I confirmed that tdb.so is exists in ${D}/usr/lib/python2.7/site-packages of libtdb.

Would you helping me check whether does tdb.so exist in ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
after building libtdb.
# find /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/python2.7/site-packages -name \*tdb\*

Thanks
 Bian

> > > - samba
> > >
> > > https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820294c
> > > b9ce239d9d4dccc492ea
> > >
> > > Thanks
> > >  Bian
> > >
> > > > -----Original Message-----
> > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > Behalf Of Bian, Naimeng
> > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > To: openembedded-devel@lists.openembedded.org
> > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > >
> > > > > -----Original Message-----
> > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > Behalf Of Martin Jansa
> > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > To: openembedded-devel
> > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > > >
> > > > > I don't have access to that build anymore (because it's jenkins
> > > > > job using tmpfs for TMPDIR, so after the build the TMPDIR is
> > > > > gone), but it's failing only in
> > > > > qemux86-64 builds, so I assume that it's finding host tdb or
> > > > > python directories, because it's running on 12.04 Ubuntu x86-64.
> > > > >
> > > > > Try to install tdb on your build host if it allows you to
> > > > > reproduce the issue, otherwise I'll try to reproduce it again in some
> next jenkins build.
> > > > >
> > > >
> > > > My host is CentOS6.5 x86-64, and although I installed tdb.so into
> > > > my host, i still cannot reproduce it.
> > > >
> > > > And, I have exported
> > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} in
> > > > waf-samba.bbclasss which is inherited by libldb. IMO, it should
> > > > find modules in PYTHONPATH firstly.
> > > >
> > > > Thanks
> > > >  Bian
> > > >
> > > >
> > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > <biannm@cn.fujitsu.com>
> > > > > wrote:
> > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org]
> > > > > > > On Behalf Of Martin Jansa
> > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > recipe
> > > > > > >
> > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > > > > > libldb is required by samba4
> > > > > > > >
> > > > > > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > > ---
> > > > > > > >  .../do-not-import-target-module-in-configure.patch | 32
> > > > > > +++++++++++++++
> > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > > > > > > ++++++++++++++++++++++
> > > > > > > >  2 files changed, 77 insertions(+)  create mode 100644
> > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not-import-target
> > > > > > > > -modul
> > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > >
> > > > > > > Fails to build in bitbake world:
> > > > > > >
> > > > > > > | Checking for system tdb >=
> > > > > > > 1.2.13                                                 : yes
> > > > > > > | ERROR: Python module pytdb of version 1.2.13 not found,
> > > > > > > | and bundling disabled
> > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > | ERROR: Function failed: do_configure (log file is located
> > > > > > > | at
> > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe
> > > > > > > | -linux
> > > > > > > | /l
> > > > > > > | ibld
> > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > > > > > ERROR: Task 25505
> > > > > > >
> > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/rec
> > > > > > ipes-s
> > > > > > up
> > > > > > port
> > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'
> > > > > > >
> > > > > >
> > > > > > tdb.so is provided by libtdb which is DEPEND-ed by libldb, I
> > > > > > think it should be installed into
> STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > >
> > > > > > Because I could not reproduce it in my building, would you
> > > > > > mind telling me whether does tdb.so exist in
> > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was caught.
> > > > > >
> > > > > > Thanks
> > > > > >  Bian
> > > > > >
> > > > > > > > diff --git
> > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-targ
> > > > > > > > et-mod
> > > > > > > > ul
> > > > > > > > e-in
> > > > > > > > -configure.patch
> > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-targ
> > > > > > > > et-mod
> > > > > > > > ul
> > > > > > > > e-in
> > > > > > > > -configure.patch
> > > > > > > > new file mode 100644
> > > > > > > > index 0000000..b4d522a
> > > > > > > > --- /dev/null
> > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-
> > > > > > > > +++ target
> > > > > > > > +++ -m
> > > > > > > > +++ odul
> > > > > > > > +++ e-in-configure.patch
> > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > +Some module can be loaded while cross compile, we jst
> > > > > > > > +check whether the module exist
> > > > > > > > +
> > > > > > > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > > +
> > > > > > > > +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py
> > > > 2014-05-05
> > > > > > > 17:00:41.000000000 +0900
> > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py
> > > > 2015-06-15
> > > > > > > 10:09:50.210000217 +0900
> > > > > > > > +@@ -1,7 +1,7 @@
> > > > > > > > + # functions to support bundled libraries
> > > > > > > > +
> > > > > > > > + from Configure import conf -import sys, Logs
> > > > > > > > ++import sys, Logs, imp
> > > > > > > > + from samba_utils import *
> > > > > > > > +
> > > > > > > > + def PRIVATE_NAME(bld, name, private_extension, private_library):
> > > > > > > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> > > > > > > > +         m = __import__(modulename)
> > > > > > > > +     except ImportError:
> > > > > > > > +         found = False
> > > > > > > > ++
> > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > ++            # Some modules maybe can not be imported
> > > > > > > > ++ while cross
> > > > > > compile
> > > > > > > > ++            # We just check whether the module exist
> > > > > > > > ++            stuff = imp.find_module(modulename,
> > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > ++            if stuff != None:
> > > > > > > > ++                Logs.warn('Cross module[%s] has been
> > > > > > > > ++ found, but can
> > > > > > not
> > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > ++                found = True
> > > > > > > > +     else:
> > > > > > > > +         try:
> > > > > > > > +             version = m.__version__
> > > > > > > > diff --git
> > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > new file mode 100644
> > > > > > > > index 0000000..17607f7
> > > > > > > > --- /dev/null
> > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > +SUMMARY = "Hierarchical, reference counted memory pool
> > > > > > > > +system with
> > > > > > > destructors"
> > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > +SECTION = "libs"
> > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > +
> > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > +
> > > > > > > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> > > > > > > > +
> file://do-not-import-target-module-in-configure.patch"
> > > > > > > > +
> > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > >
> > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bf
> > > > > > ccfe95
> > > > > > 22
> > > > > > 69ff
> > > > > > > f2b407dd11f2f3083b \
> > > > > > > > +
> > > > > > >
> > > > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6
> > > > > > d268fd
> > > > > > 21
> > > > > > 8675
> > > > > > > ffea8be556788b780 \
> > > > > > > > +
> > > > > > >
> > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79f
> > > > > > f39f19
> > > > > > df
> > > > > > ec6d
> > > > > > > 293b95dea7b07891"
> > > > > > > > +
> > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > +SRC_URI[sha256sum] =
> > > > > > >
> "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > +
> > > > > > > > +inherit waf-samba
> > > > > > > > +
> > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > +
> > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > +                 --disable-rpath-install \
> > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > +                 --builtin-libraries=replace \
> > > > > > > > +                 --with-modulesdir=${libdir}/ldb/modules \
> > > > > > > > +                 --with-privatelibdir=${libdir}/ldb \
> > > > > > > > +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > +                "
> > > > > > > > +
> > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > +
> > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > +
> > > > > > > > +FILES_pyldb =
> > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-packages/*
> > > > > \
> > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > > > +              "
> > > > > > > > +FILES_pyldb-dbg =
> > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug
> > > > > > > \
> > > > > > > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > --
> > > > > > > > 1.9.1
> > > > > > > >
> > > > > > > > --
> > > > > > > > _______________________________________________
> > > > > > > > Openembedded-devel mailing list
> > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedde
> > > > > > > > d-deve
> > > > > > > > l
> > > > > > >
> > > > > > > --
> > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > --
> > > > > > _______________________________________________
> > > > > > Openembedded-devel mailing list
> > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-de
> > > > > > vel
> > > > > >
> > > > > --
> > > > > _______________________________________________
> > > > > Openembedded-devel mailing list
> > > > > Openembedded-devel@lists.openembedded.org
> > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > l
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> > --
> > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> 
> 
> 
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-07-09  0:30                 ` Bian, Naimeng
@ 2015-07-09 15:54                   ` Martin Jansa
  2015-07-10  3:49                     ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-07-09 15:54 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 15675 bytes --]

On Thu, Jul 09, 2015 at 12:30:42AM +0000, Bian, Naimeng wrote:
> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> > Martin Jansa
> > Sent: Wednesday, July 08, 2015 7:59 PM
> > To: openembedded-devel@lists.openembedded.org
> > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > 
> > On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > > Hi Martin,
> > > >
> > > > I think I have fixed them and pushed them to github, please cherry-pick
> > them.
> > > >
> > > > - libldb
> > > >
> > > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236226646fde9
> > > > 9611c20fe3fcc6612e7a
> > >
> > > Hi Bian,
> > >
> > > it's still failing with this patch. I'll try to build it manually and
> > > provide more details.
> > 
> > find /usr/lib/python* -name \*tdb\*
> > =nothing=
> > 
> > ldb and tdb workdirs are here:
> > http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.bz2
> > http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.bz2
> > 
> 
> Thank you very much.
> I confirmed that tdb.so is exists in ${D}/usr/lib/python2.7/site-packages of libtdb.
> 
> Would you helping me check whether does tdb.so exist in ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
> after building libtdb.
> # find /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/python2.7/site-packages -name \*tdb\*

that server is already buiding domething else and tmpfs is gone, but in
the archive I've sent you we can see that it's in sysroot-destdir
directory so I believe it was also in
/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/python2.7/site-packages

jenkins@aruba:~/oe/world/shr-core$ find libtdb/ -name tdb.so
libtdb/1.3.0-r0/image/usr/lib/python2.7/site-packages/tdb.so
libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/.debug/tdb.so
libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/tdb.so
libtdb/1.3.0-r0/packages-split/python-tdb/usr/lib/python2.7/site-packages/tdb.so
libtdb/1.3.0-r0/packages-split/python-tdb-dbg/usr/lib/python2.7/site-packages/.debug/tdb.so
libtdb/1.3.0-r0/sysroot-destdir/usr/lib/python2.7/site-packages/tdb.so
libtdb/1.3.0-r0/tdb-1.3.0/bin/python/tdb.so

> 
> Thanks
>  Bian
> 
> > > > - samba
> > > >
> > > > https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820294c
> > > > b9ce239d9d4dccc492ea
> > > >
> > > > Thanks
> > > >  Bian
> > > >
> > > > > -----Original Message-----
> > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > Behalf Of Bian, Naimeng
> > > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > > To: openembedded-devel@lists.openembedded.org
> > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > > Behalf Of Martin Jansa
> > > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > > To: openembedded-devel
> > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > > > >
> > > > > > I don't have access to that build anymore (because it's jenkins
> > > > > > job using tmpfs for TMPDIR, so after the build the TMPDIR is
> > > > > > gone), but it's failing only in
> > > > > > qemux86-64 builds, so I assume that it's finding host tdb or
> > > > > > python directories, because it's running on 12.04 Ubuntu x86-64.
> > > > > >
> > > > > > Try to install tdb on your build host if it allows you to
> > > > > > reproduce the issue, otherwise I'll try to reproduce it again in some
> > next jenkins build.
> > > > > >
> > > > >
> > > > > My host is CentOS6.5 x86-64, and although I installed tdb.so into
> > > > > my host, i still cannot reproduce it.
> > > > >
> > > > > And, I have exported
> > > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} in
> > > > > waf-samba.bbclasss which is inherited by libldb. IMO, it should
> > > > > find modules in PYTHONPATH firstly.
> > > > >
> > > > > Thanks
> > > > >  Bian
> > > > >
> > > > >
> > > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > > <biannm@cn.fujitsu.com>
> > > > > > wrote:
> > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org]
> > > > > > > > On Behalf Of Martin Jansa
> > > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > > recipe
> > > > > > > >
> > > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > > > > > > libldb is required by samba4
> > > > > > > > >
> > > > > > > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > > > ---
> > > > > > > > >  .../do-not-import-target-module-in-configure.patch | 32
> > > > > > > +++++++++++++++
> > > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > > > > > > > ++++++++++++++++++++++
> > > > > > > > >  2 files changed, 77 insertions(+)  create mode 100644
> > > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not-import-target
> > > > > > > > > -modul
> > > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > >
> > > > > > > > Fails to build in bitbake world:
> > > > > > > >
> > > > > > > > | Checking for system tdb >=
> > > > > > > > 1.2.13                                                 : yes
> > > > > > > > | ERROR: Python module pytdb of version 1.2.13 not found,
> > > > > > > > | and bundling disabled
> > > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > > | ERROR: Function failed: do_configure (log file is located
> > > > > > > > | at
> > > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe
> > > > > > > > | -linux
> > > > > > > > | /l
> > > > > > > > | ibld
> > > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > > > > > > ERROR: Task 25505
> > > > > > > >
> > > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/rec
> > > > > > > ipes-s
> > > > > > > up
> > > > > > > port
> > > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code '1'
> > > > > > > >
> > > > > > >
> > > > > > > tdb.so is provided by libtdb which is DEPEND-ed by libldb, I
> > > > > > > think it should be installed into
> > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > > >
> > > > > > > Because I could not reproduce it in my building, would you
> > > > > > > mind telling me whether does tdb.so exist in
> > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was caught.
> > > > > > >
> > > > > > > Thanks
> > > > > > >  Bian
> > > > > > >
> > > > > > > > > diff --git
> > > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-targ
> > > > > > > > > et-mod
> > > > > > > > > ul
> > > > > > > > > e-in
> > > > > > > > > -configure.patch
> > > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-targ
> > > > > > > > > et-mod
> > > > > > > > > ul
> > > > > > > > > e-in
> > > > > > > > > -configure.patch
> > > > > > > > > new file mode 100644
> > > > > > > > > index 0000000..b4d522a
> > > > > > > > > --- /dev/null
> > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-import-
> > > > > > > > > +++ target
> > > > > > > > > +++ -m
> > > > > > > > > +++ odul
> > > > > > > > > +++ e-in-configure.patch
> > > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > > +Some module can be loaded while cross compile, we jst
> > > > > > > > > +check whether the module exist
> > > > > > > > > +
> > > > > > > > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > > > +
> > > > > > > > > +--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py
> > > > > 2014-05-05
> > > > > > > > 17:00:41.000000000 +0900
> > > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py
> > > > > 2015-06-15
> > > > > > > > 10:09:50.210000217 +0900
> > > > > > > > > +@@ -1,7 +1,7 @@
> > > > > > > > > + # functions to support bundled libraries
> > > > > > > > > +
> > > > > > > > > + from Configure import conf -import sys, Logs
> > > > > > > > > ++import sys, Logs, imp
> > > > > > > > > + from samba_utils import *
> > > > > > > > > +
> > > > > > > > > + def PRIVATE_NAME(bld, name, private_extension, private_library):
> > > > > > > > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf, li
> > > > > > > > > +         m = __import__(modulename)
> > > > > > > > > +     except ImportError:
> > > > > > > > > +         found = False
> > > > > > > > > ++
> > > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > > ++            # Some modules maybe can not be imported
> > > > > > > > > ++ while cross
> > > > > > > compile
> > > > > > > > > ++            # We just check whether the module exist
> > > > > > > > > ++            stuff = imp.find_module(modulename,
> > > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > > ++            if stuff != None:
> > > > > > > > > ++                Logs.warn('Cross module[%s] has been
> > > > > > > > > ++ found, but can
> > > > > > > not
> > > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > > ++                found = True
> > > > > > > > > +     else:
> > > > > > > > > +         try:
> > > > > > > > > +             version = m.__version__
> > > > > > > > > diff --git
> > > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > new file mode 100644
> > > > > > > > > index 0000000..17607f7
> > > > > > > > > --- /dev/null
> > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > > +SUMMARY = "Hierarchical, reference counted memory pool
> > > > > > > > > +system with
> > > > > > > > destructors"
> > > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > > +SECTION = "libs"
> > > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > > +
> > > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > > +
> > > > > > > > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \
> > > > > > > > > +
> > file://do-not-import-target-module-in-configure.patch"
> > > > > > > > > +
> > > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > > >
> > > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bf
> > > > > > > ccfe95
> > > > > > > 22
> > > > > > > 69ff
> > > > > > > > f2b407dd11f2f3083b \
> > > > > > > > > +
> > > > > > > >
> > > > > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6
> > > > > > > d268fd
> > > > > > > 21
> > > > > > > 8675
> > > > > > > > ffea8be556788b780 \
> > > > > > > > > +
> > > > > > > >
> > > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79f
> > > > > > > f39f19
> > > > > > > df
> > > > > > > ec6d
> > > > > > > > 293b95dea7b07891"
> > > > > > > > > +
> > > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > > +SRC_URI[sha256sum] =
> > > > > > > >
> > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > > +
> > > > > > > > > +inherit waf-samba
> > > > > > > > > +
> > > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > > +
> > > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > > +                 --disable-rpath-install \
> > > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > > +                 --builtin-libraries=replace \
> > > > > > > > > +                 --with-modulesdir=${libdir}/ldb/modules \
> > > > > > > > > +                 --with-privatelibdir=${libdir}/ldb \
> > > > > > > > > +                 --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > > +                "
> > > > > > > > > +
> > > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > > +
> > > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > > +
> > > > > > > > > +FILES_pyldb =
> > > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-packages/*
> > > > > > \
> > > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > > > > +              "
> > > > > > > > > +FILES_pyldb-dbg =
> > > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug
> > > > > > > > \
> > > > > > > > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > > --
> > > > > > > > > 1.9.1
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > _______________________________________________
> > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedde
> > > > > > > > > d-deve
> > > > > > > > > l
> > > > > > > >
> > > > > > > > --
> > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > --
> > > > > > > _______________________________________________
> > > > > > > Openembedded-devel mailing list
> > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-de
> > > > > > > vel
> > > > > > >
> > > > > > --
> > > > > > _______________________________________________
> > > > > > Openembedded-devel mailing list
> > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > > l
> > > > > --
> > > > > _______________________________________________
> > > > > Openembedded-devel mailing list
> > > > > Openembedded-devel@lists.openembedded.org
> > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > >
> > > --
> > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > 
> > 
> > 
> > --
> > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-07-09 15:54                   ` Martin Jansa
@ 2015-07-10  3:49                     ` Bian, Naimeng
  2015-07-13 16:17                       ` Martin Jansa
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-07-10  3:49 UTC (permalink / raw)
  To: openembedded-devel

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Thursday, July 09, 2015 11:54 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> 
> On Thu, Jul 09, 2015 at 12:30:42AM +0000, Bian, Naimeng wrote:
> > > -----Original Message-----
> > > From: openembedded-devel-bounces@lists.openembedded.org
> > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > Of Martin Jansa
> > > Sent: Wednesday, July 08, 2015 7:59 PM
> > > To: openembedded-devel@lists.openembedded.org
> > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > >
> > > On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > > > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > > > Hi Martin,
> > > > >
> > > > > I think I have fixed them and pushed them to github, please
> > > > > cherry-pick
> > > them.
> > > > >
> > > > > - libldb
> > > > >
> > > > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236226646
> > > > > fde9
> > > > > 9611c20fe3fcc6612e7a
> > > >
> > > > Hi Bian,
> > > >
> > > > it's still failing with this patch. I'll try to build it manually
> > > > and provide more details.
> > >
> > > find /usr/lib/python* -name \*tdb\*
> > > =nothing=
> > >
> > > ldb and tdb workdirs are here:
> > > http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.bz2
> > > http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.bz2
> > >
> >
> > Thank you very much.
> > I confirmed that tdb.so is exists in ${D}/usr/lib/python2.7/site-packages
> of libtdb.
> >
> > Would you helping me check whether does tdb.so exist in
> > ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
> > after building libtdb.
> > # find
> > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/
> > python2.7/site-packages -name \*tdb\*
> 
> that server is already buiding domething else and tmpfs is gone, but in the
> archive I've sent you we can see that it's in sysroot-destdir directory so I
> believe it was also in
> /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/pyth
> on2.7/site-packages
> 
> jenkins@aruba:~/oe/world/shr-core$ find libtdb/ -name tdb.so
> libtdb/1.3.0-r0/image/usr/lib/python2.7/site-packages/tdb.so
> libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/.debug/tdb.so
> libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/tdb.so
> libtdb/1.3.0-r0/packages-split/python-tdb/usr/lib/python2.7/site-packages/
> tdb.so
> libtdb/1.3.0-r0/packages-split/python-tdb-dbg/usr/lib/python2.7/site-packa
> ges/.debug/tdb.so
> libtdb/1.3.0-r0/sysroot-destdir/usr/lib/python2.7/site-packages/tdb.so
> libtdb/1.3.0-r0/tdb-1.3.0/bin/python/tdb.so
> 

Thanks for your time.

I'm sorry for that, but would you mind to apply this patch which is based on master-next, 
and then build libldb again to catch more information for me.
https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0abad578e74d9f7b8f1c3ff951

Thanks
 Bian

> >
> > Thanks
> >  Bian
> >
> > > > > - samba
> > > > >
> > > > > https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820
> > > > > 294c
> > > > > b9ce239d9d4dccc492ea
> > > > >
> > > > > Thanks
> > > > >  Bian
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > > Behalf Of Bian, Naimeng
> > > > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > recipe
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org]
> > > > > > > On Behalf Of Martin Jansa
> > > > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > > > To: openembedded-devel
> > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > recipe
> > > > > > >
> > > > > > > I don't have access to that build anymore (because it's
> > > > > > > jenkins job using tmpfs for TMPDIR, so after the build the
> > > > > > > TMPDIR is gone), but it's failing only in
> > > > > > > qemux86-64 builds, so I assume that it's finding host tdb or
> > > > > > > python directories, because it's running on 12.04 Ubuntu x86-64.
> > > > > > >
> > > > > > > Try to install tdb on your build host if it allows you to
> > > > > > > reproduce the issue, otherwise I'll try to reproduce it
> > > > > > > again in some
> > > next jenkins build.
> > > > > > >
> > > > > >
> > > > > > My host is CentOS6.5 x86-64, and although I installed tdb.so
> > > > > > into my host, i still cannot reproduce it.
> > > > > >
> > > > > > And, I have exported
> > > > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} in
> > > > > > waf-samba.bbclasss which is inherited by libldb. IMO, it
> > > > > > should find modules in PYTHONPATH firstly.
> > > > > >
> > > > > > Thanks
> > > > > >  Bian
> > > > > >
> > > > > >
> > > > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.or
> > > > > > > > > g] On Behalf Of Martin Jansa
> > > > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add
> > > > > > > > > new recipe
> > > > > > > > >
> > > > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > > > > > > > libldb is required by samba4
> > > > > > > > > >
> > > > > > > > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > > > > ---
> > > > > > > > > >  .../do-not-import-target-module-in-configure.patch |
> > > > > > > > > > 32
> > > > > > > > +++++++++++++++
> > > > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > > > > > > > > ++++++++++++++++++++++
> > > > > > > > > >  2 files changed, 77 insertions(+)  create mode 100644
> > > > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not-import-ta
> > > > > > > > > > rget
> > > > > > > > > > -modul
> > > > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > >
> > > > > > > > > Fails to build in bitbake world:
> > > > > > > > >
> > > > > > > > > | Checking for system tdb >=
> > > > > > > > > 1.2.13                                                 : yes
> > > > > > > > > | ERROR: Python module pytdb of version 1.2.13 not
> > > > > > > > > | found, and bundling disabled
> > > > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > > > | ERROR: Function failed: do_configure (log file is
> > > > > > > > > | located at
> > > > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-6
> > > > > > > > > | 4-oe
> > > > > > > > > | -linux
> > > > > > > > > | /l
> > > > > > > > > | ibld
> > > > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > > > > > > > ERROR: Task 25505
> > > > > > > > >
> > > > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe
> > > > > > > > /rec
> > > > > > > > ipes-s
> > > > > > > > up
> > > > > > > > port
> > > > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code
> '1'
> > > > > > > > >
> > > > > > > >
> > > > > > > > tdb.so is provided by libtdb which is DEPEND-ed by libldb,
> > > > > > > > I think it should be installed into
> > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > > > >
> > > > > > > > Because I could not reproduce it in my building, would you
> > > > > > > > mind telling me whether does tdb.so exist in
> > > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was
> caught.
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >  Bian
> > > > > > > >
> > > > > > > > > > diff --git
> > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-
> > > > > > > > > > targ
> > > > > > > > > > et-mod
> > > > > > > > > > ul
> > > > > > > > > > e-in
> > > > > > > > > > -configure.patch
> > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-
> > > > > > > > > > targ
> > > > > > > > > > et-mod
> > > > > > > > > > ul
> > > > > > > > > > e-in
> > > > > > > > > > -configure.patch
> > > > > > > > > > new file mode 100644
> > > > > > > > > > index 0000000..b4d522a
> > > > > > > > > > --- /dev/null
> > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-imp
> > > > > > > > > > +++ ort-
> > > > > > > > > > +++ target
> > > > > > > > > > +++ -m
> > > > > > > > > > +++ odul
> > > > > > > > > > +++ e-in-configure.patch
> > > > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > > > +Some module can be loaded while cross compile, we jst
> > > > > > > > > > +check whether the module exist
> > > > > > > > > > +
> > > > > > > > > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > > > > +
> > > > > > > > > > +---
> > > > > > > > > > +ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py
> > > > > > 2014-05-05
> > > > > > > > > 17:00:41.000000000 +0900
> > > > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py
> > > > > > 2015-06-15
> > > > > > > > > 10:09:50.210000217 +0900
> > > > > > > > > > +@@ -1,7 +1,7 @@
> > > > > > > > > > + # functions to support bundled libraries
> > > > > > > > > > +
> > > > > > > > > > + from Configure import conf -import sys, Logs
> > > > > > > > > > ++import sys, Logs, imp
> > > > > > > > > > + from samba_utils import *
> > > > > > > > > > +
> > > > > > > > > > + def PRIVATE_NAME(bld, name, private_extension,
> private_library):
> > > > > > > > > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf,
> li
> > > > > > > > > > +         m = __import__(modulename)
> > > > > > > > > > +     except ImportError:
> > > > > > > > > > +         found = False
> > > > > > > > > > ++
> > > > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > > > ++            # Some modules maybe can not be imported
> > > > > > > > > > ++ while cross
> > > > > > > > compile
> > > > > > > > > > ++            # We just check whether the module exist
> > > > > > > > > > ++            stuff = imp.find_module(modulename,
> > > > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > > > ++            if stuff != None:
> > > > > > > > > > ++                Logs.warn('Cross module[%s] has been
> > > > > > > > > > ++ found, but can
> > > > > > > > not
> > > > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > > > ++                found = True
> > > > > > > > > > +     else:
> > > > > > > > > > +         try:
> > > > > > > > > > +             version = m.__version__
> > > > > > > > > > diff --git
> > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > new file mode 100644
> > > > > > > > > > index 0000000..17607f7
> > > > > > > > > > --- /dev/null
> > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > > > +SUMMARY = "Hierarchical, reference counted memory
> > > > > > > > > > +pool system with
> > > > > > > > > destructors"
> > > > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > > > +SECTION = "libs"
> > > > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > > > +
> > > > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > > > +
> > > > > > > > > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz
> > > > > > > > > > +\
> > > > > > > > > > +
> > > file://do-not-import-target-module-in-configure.patch"
> > > > > > > > > > +
> > > > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > > > >
> > > > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md
> > > > > > > > 5=bf
> > > > > > > > ccfe95
> > > > > > > > 22
> > > > > > > > 69ff
> > > > > > > > > f2b407dd11f2f3083b \
> > > > > > > > > > +
> > > > > > > > >
> > > > > > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5
> > > > > > > > =1a6
> > > > > > > > d268fd
> > > > > > > > 21
> > > > > > > > 8675
> > > > > > > > > ffea8be556788b780 \
> > > > > > > > > > +
> > > > > > > > >
> > > > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=
> > > > > > > > c79f
> > > > > > > > f39f19
> > > > > > > > df
> > > > > > > > ec6d
> > > > > > > > > 293b95dea7b07891"
> > > > > > > > > > +
> > > > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > > > +SRC_URI[sha256sum] =
> > > > > > > > >
> > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > > > +
> > > > > > > > > > +inherit waf-samba
> > > > > > > > > > +
> > > > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > > > +
> > > > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > > > +                 --disable-rpath-install \
> > > > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > > > +                 --builtin-libraries=replace \
> > > > > > > > > > +                 --with-modulesdir=${libdir}/ldb/modules
> \
> > > > > > > > > > +                 --with-privatelibdir=${libdir}/ldb \
> > > > > > > > > > +
> --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > > > +                "
> > > > > > > > > > +
> > > > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > > > +
> > > > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > > > +
> > > > > > > > > > +FILES_pyldb =
> > > > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-packages/
> > > > > > > > > > +*
> > > > > > > \
> > > > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > > > > > +              "
> > > > > > > > > > +FILES_pyldb-dbg =
> > > > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.de
> > > > > > > > > bug
> > > > > > > > > \
> > > > > > > > > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > > > --
> > > > > > > > > > 1.9.1
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > _______________________________________________
> > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openemb
> > > > > > > > > > edde
> > > > > > > > > > d-deve
> > > > > > > > > > l
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > --
> > > > > > > > _______________________________________________
> > > > > > > > Openembedded-devel mailing list
> > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedde
> > > > > > > > d-de
> > > > > > > > vel
> > > > > > > >
> > > > > > > --
> > > > > > > _______________________________________________
> > > > > > > Openembedded-devel mailing list
> > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-
> > > > > > > deve
> > > > > > > l
> > > > > > --
> > > > > > _______________________________________________
> > > > > > Openembedded-devel mailing list
> > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-de
> > > > > > vel
> > > > > --
> > > > > _______________________________________________
> > > > > Openembedded-devel mailing list
> > > > > Openembedded-devel@lists.openembedded.org
> > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > l
> > > >
> > > > --
> > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > >
> > >
> > >
> > > --
> > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-07-10  3:49                     ` Bian, Naimeng
@ 2015-07-13 16:17                       ` Martin Jansa
  2015-07-17  7:39                         ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-07-13 16:17 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 19740 bytes --]

On Fri, Jul 10, 2015 at 03:49:02AM +0000, Bian, Naimeng wrote:
> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> > Martin Jansa
> > Sent: Thursday, July 09, 2015 11:54 PM
> > To: openembedded-devel@lists.openembedded.org
> > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > 
> > On Thu, Jul 09, 2015 at 12:30:42AM +0000, Bian, Naimeng wrote:
> > > > -----Original Message-----
> > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > > Of Martin Jansa
> > > > Sent: Wednesday, July 08, 2015 7:59 PM
> > > > To: openembedded-devel@lists.openembedded.org
> > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > >
> > > > On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > > > > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > > > > Hi Martin,
> > > > > >
> > > > > > I think I have fixed them and pushed them to github, please
> > > > > > cherry-pick
> > > > them.
> > > > > >
> > > > > > - libldb
> > > > > >
> > > > > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236226646
> > > > > > fde9
> > > > > > 9611c20fe3fcc6612e7a
> > > > >
> > > > > Hi Bian,
> > > > >
> > > > > it's still failing with this patch. I'll try to build it manually
> > > > > and provide more details.
> > > >
> > > > find /usr/lib/python* -name \*tdb\*
> > > > =nothing=
> > > >
> > > > ldb and tdb workdirs are here:
> > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.bz2
> > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.bz2
> > > >
> > >
> > > Thank you very much.
> > > I confirmed that tdb.so is exists in ${D}/usr/lib/python2.7/site-packages
> > of libtdb.
> > >
> > > Would you helping me check whether does tdb.so exist in
> > > ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
> > > after building libtdb.
> > > # find
> > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/
> > > python2.7/site-packages -name \*tdb\*
> > 
> > that server is already buiding domething else and tmpfs is gone, but in the
> > archive I've sent you we can see that it's in sysroot-destdir directory so I
> > believe it was also in
> > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/pyth
> > on2.7/site-packages
> > 
> > jenkins@aruba:~/oe/world/shr-core$ find libtdb/ -name tdb.so
> > libtdb/1.3.0-r0/image/usr/lib/python2.7/site-packages/tdb.so
> > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/.debug/tdb.so
> > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/tdb.so
> > libtdb/1.3.0-r0/packages-split/python-tdb/usr/lib/python2.7/site-packages/
> > tdb.so
> > libtdb/1.3.0-r0/packages-split/python-tdb-dbg/usr/lib/python2.7/site-packa
> > ges/.debug/tdb.so
> > libtdb/1.3.0-r0/sysroot-destdir/usr/lib/python2.7/site-packages/tdb.so
> > libtdb/1.3.0-r0/tdb-1.3.0/bin/python/tdb.so
> > 
> 
> Thanks for your time.
> 
> I'm sorry for that, but would you mind to apply this patch which is based on master-next, 
> and then build libldb again to catch more information for me.
> https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0abad578e74d9f7b8f1c3ff951

| Checking for getgrouplist                                                         : ok
| Checking for system tdb >= 1.2.13                                                 : yes
| module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/python2.7/site-packages/tdb.so] exists in [/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/python2.7/site-packages]
| Cross module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/python2.7/site-packages/tdb.so] can not be loaded.
| Close module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib/python2.7/site-packages/tdb.so]. Note: maybe some exception was caught!
| ERROR: Python module pytdb of version 1.2.13 not found, and bundling disabled
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/libldb/1.1.17-r0/temp/log.do_configure.15453)
NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed

> 
> Thanks
>  Bian
> 
> > >
> > > Thanks
> > >  Bian
> > >
> > > > > > - samba
> > > > > >
> > > > > > https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820
> > > > > > 294c
> > > > > > b9ce239d9d4dccc492ea
> > > > > >
> > > > > > Thanks
> > > > > >  Bian
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > > > Behalf Of Bian, Naimeng
> > > > > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > recipe
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org]
> > > > > > > > On Behalf Of Martin Jansa
> > > > > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > > > > To: openembedded-devel
> > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > > recipe
> > > > > > > >
> > > > > > > > I don't have access to that build anymore (because it's
> > > > > > > > jenkins job using tmpfs for TMPDIR, so after the build the
> > > > > > > > TMPDIR is gone), but it's failing only in
> > > > > > > > qemux86-64 builds, so I assume that it's finding host tdb or
> > > > > > > > python directories, because it's running on 12.04 Ubuntu x86-64.
> > > > > > > >
> > > > > > > > Try to install tdb on your build host if it allows you to
> > > > > > > > reproduce the issue, otherwise I'll try to reproduce it
> > > > > > > > again in some
> > > > next jenkins build.
> > > > > > > >
> > > > > > >
> > > > > > > My host is CentOS6.5 x86-64, and although I installed tdb.so
> > > > > > > into my host, i still cannot reproduce it.
> > > > > > >
> > > > > > > And, I have exported
> > > > > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR} in
> > > > > > > waf-samba.bbclasss which is inherited by libldb. IMO, it
> > > > > > > should find modules in PYTHONPATH firstly.
> > > > > > >
> > > > > > > Thanks
> > > > > > >  Bian
> > > > > > >
> > > > > > >
> > > > > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.or
> > > > > > > > > > g] On Behalf Of Martin Jansa
> > > > > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add
> > > > > > > > > > new recipe
> > > > > > > > > >
> > > > > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > > > > > > > > libldb is required by samba4
> > > > > > > > > > >
> > > > > > > > > > > Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > > > > > ---
> > > > > > > > > > >  .../do-not-import-target-module-in-configure.patch |
> > > > > > > > > > > 32
> > > > > > > > > +++++++++++++++
> > > > > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45
> > > > > > > > > > ++++++++++++++++++++++
> > > > > > > > > > >  2 files changed, 77 insertions(+)  create mode 100644
> > > > > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not-import-ta
> > > > > > > > > > > rget
> > > > > > > > > > > -modul
> > > > > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > >
> > > > > > > > > > Fails to build in bitbake world:
> > > > > > > > > >
> > > > > > > > > > | Checking for system tdb >=
> > > > > > > > > > 1.2.13                                                 : yes
> > > > > > > > > > | ERROR: Python module pytdb of version 1.2.13 not
> > > > > > > > > > | found, and bundling disabled
> > > > > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > > > > | ERROR: Function failed: do_configure (log file is
> > > > > > > > > > | located at
> > > > > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-6
> > > > > > > > > > | 4-oe
> > > > > > > > > > | -linux
> > > > > > > > > > | /l
> > > > > > > > > > | ibld
> > > > > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > > > > > > > > ERROR: Task 25505
> > > > > > > > > >
> > > > > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe
> > > > > > > > > /rec
> > > > > > > > > ipes-s
> > > > > > > > > up
> > > > > > > > > port
> > > > > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed with exit code
> > '1'
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > > tdb.so is provided by libtdb which is DEPEND-ed by libldb,
> > > > > > > > > I think it should be installed into
> > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > > > > >
> > > > > > > > > Because I could not reproduce it in my building, would you
> > > > > > > > > mind telling me whether does tdb.so exist in
> > > > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this error was
> > caught.
> > > > > > > > >
> > > > > > > > > Thanks
> > > > > > > > >  Bian
> > > > > > > > >
> > > > > > > > > > > diff --git
> > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-import-
> > > > > > > > > > > targ
> > > > > > > > > > > et-mod
> > > > > > > > > > > ul
> > > > > > > > > > > e-in
> > > > > > > > > > > -configure.patch
> > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-import-
> > > > > > > > > > > targ
> > > > > > > > > > > et-mod
> > > > > > > > > > > ul
> > > > > > > > > > > e-in
> > > > > > > > > > > -configure.patch
> > > > > > > > > > > new file mode 100644
> > > > > > > > > > > index 0000000..b4d522a
> > > > > > > > > > > --- /dev/null
> > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not-imp
> > > > > > > > > > > +++ ort-
> > > > > > > > > > > +++ target
> > > > > > > > > > > +++ -m
> > > > > > > > > > > +++ odul
> > > > > > > > > > > +++ e-in-configure.patch
> > > > > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > > > > +Some module can be loaded while cross compile, we jst
> > > > > > > > > > > +check whether the module exist
> > > > > > > > > > > +
> > > > > > > > > > > +Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
> > > > > > > > > > > +
> > > > > > > > > > > +---
> > > > > > > > > > > +ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py
> > > > > > > 2014-05-05
> > > > > > > > > > 17:00:41.000000000 +0900
> > > > > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py
> > > > > > > 2015-06-15
> > > > > > > > > > 10:09:50.210000217 +0900
> > > > > > > > > > > +@@ -1,7 +1,7 @@
> > > > > > > > > > > + # functions to support bundled libraries
> > > > > > > > > > > +
> > > > > > > > > > > + from Configure import conf -import sys, Logs
> > > > > > > > > > > ++import sys, Logs, imp
> > > > > > > > > > > + from samba_utils import *
> > > > > > > > > > > +
> > > > > > > > > > > + def PRIVATE_NAME(bld, name, private_extension,
> > private_library):
> > > > > > > > > > > +@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf,
> > li
> > > > > > > > > > > +         m = __import__(modulename)
> > > > > > > > > > > +     except ImportError:
> > > > > > > > > > > +         found = False
> > > > > > > > > > > ++
> > > > > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > > > > ++            # Some modules maybe can not be imported
> > > > > > > > > > > ++ while cross
> > > > > > > > > compile
> > > > > > > > > > > ++            # We just check whether the module exist
> > > > > > > > > > > ++            stuff = imp.find_module(modulename,
> > > > > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > > > > ++            if stuff != None:
> > > > > > > > > > > ++                Logs.warn('Cross module[%s] has been
> > > > > > > > > > > ++ found, but can
> > > > > > > > > not
> > > > > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > > > > ++                found = True
> > > > > > > > > > > +     else:
> > > > > > > > > > > +         try:
> > > > > > > > > > > +             version = m.__version__
> > > > > > > > > > > diff --git
> > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > > new file mode 100644
> > > > > > > > > > > index 0000000..17607f7
> > > > > > > > > > > --- /dev/null
> > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > > > > +SUMMARY = "Hierarchical, reference counted memory
> > > > > > > > > > > +pool system with
> > > > > > > > > > destructors"
> > > > > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > > > > +SECTION = "libs"
> > > > > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > > > > +
> > > > > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > > > > +
> > > > > > > > > > > +SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz
> > > > > > > > > > > +\
> > > > > > > > > > > +
> > > > file://do-not-import-target-module-in-configure.patch"
> > > > > > > > > > > +
> > > > > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > > > > >
> > > > > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md
> > > > > > > > > 5=bf
> > > > > > > > > ccfe95
> > > > > > > > > 22
> > > > > > > > > 69ff
> > > > > > > > > > f2b407dd11f2f3083b \
> > > > > > > > > > > +
> > > > > > > > > >
> > > > > > > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5
> > > > > > > > > =1a6
> > > > > > > > > d268fd
> > > > > > > > > 21
> > > > > > > > > 8675
> > > > > > > > > > ffea8be556788b780 \
> > > > > > > > > > > +
> > > > > > > > > >
> > > > > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=
> > > > > > > > > c79f
> > > > > > > > > f39f19
> > > > > > > > > df
> > > > > > > > > ec6d
> > > > > > > > > > 293b95dea7b07891"
> > > > > > > > > > > +
> > > > > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > > > > +SRC_URI[sha256sum] =
> > > > > > > > > >
> > > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > > > > +
> > > > > > > > > > > +inherit waf-samba
> > > > > > > > > > > +
> > > > > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > > > > +
> > > > > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > > > > +                 --disable-rpath-install \
> > > > > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > > > > +                 --builtin-libraries=replace \
> > > > > > > > > > > +                 --with-modulesdir=${libdir}/ldb/modules
> > \
> > > > > > > > > > > +                 --with-privatelibdir=${libdir}/ldb \
> > > > > > > > > > > +
> > --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > > > > +                "
> > > > > > > > > > > +
> > > > > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > > > > +
> > > > > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > > > > +
> > > > > > > > > > > +FILES_pyldb =
> > > > > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-packages/
> > > > > > > > > > > +*
> > > > > > > > \
> > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > > > > > > +              "
> > > > > > > > > > > +FILES_pyldb-dbg =
> > > > > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.de
> > > > > > > > > > bug
> > > > > > > > > > \
> > > > > > > > > > > +                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > > > > --
> > > > > > > > > > > 1.9.1
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openemb
> > > > > > > > > > > edde
> > > > > > > > > > > d-deve
> > > > > > > > > > > l
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > > --
> > > > > > > > > _______________________________________________
> > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedde
> > > > > > > > > d-de
> > > > > > > > > vel
> > > > > > > > >
> > > > > > > > --
> > > > > > > > _______________________________________________
> > > > > > > > Openembedded-devel mailing list
> > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-
> > > > > > > > deve
> > > > > > > > l
> > > > > > > --
> > > > > > > _______________________________________________
> > > > > > > Openembedded-devel mailing list
> > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-de
> > > > > > > vel
> > > > > > --
> > > > > > _______________________________________________
> > > > > > Openembedded-devel mailing list
> > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > > l
> > > > >
> > > > > --
> > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > >
> > > >
> > > >
> > > > --
> > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > 
> > --
> > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-07-13 16:17                       ` Martin Jansa
@ 2015-07-17  7:39                         ` Bian, Naimeng
  2015-08-03  8:58                           ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-07-17  7:39 UTC (permalink / raw)
  To: openembedded-devel

Thanks for your help.

Please rebase the patch of libldb and samba from here.
- libldb
  https://github.com/bendaaron/meta-oe-dev/commit/f7a7d49164c8f5a4e8b12ccdc92e08d73952a97c

- samba
  https://github.com/bendaaron/meta-oe-dev/commit/db03404a4b6fed9753457055fec88b523ceeda3c

Thanks
 Bian

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Tuesday, July 14, 2015 12:17 AM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> 
> On Fri, Jul 10, 2015 at 03:49:02AM +0000, Bian, Naimeng wrote:
> > > -----Original Message-----
> > > From: openembedded-devel-bounces@lists.openembedded.org
> > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > Of Martin Jansa
> > > Sent: Thursday, July 09, 2015 11:54 PM
> > > To: openembedded-devel@lists.openembedded.org
> > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > >
> > > On Thu, Jul 09, 2015 at 12:30:42AM +0000, Bian, Naimeng wrote:
> > > > > -----Original Message-----
> > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > Behalf Of Martin Jansa
> > > > > Sent: Wednesday, July 08, 2015 7:59 PM
> > > > > To: openembedded-devel@lists.openembedded.org
> > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > > >
> > > > > On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > > > > > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > > > > > Hi Martin,
> > > > > > >
> > > > > > > I think I have fixed them and pushed them to github, please
> > > > > > > cherry-pick
> > > > > them.
> > > > > > >
> > > > > > > - libldb
> > > > > > >
> > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade423622
> > > > > > > 6646
> > > > > > > fde9
> > > > > > > 9611c20fe3fcc6612e7a
> > > > > >
> > > > > > Hi Bian,
> > > > > >
> > > > > > it's still failing with this patch. I'll try to build it
> > > > > > manually and provide more details.
> > > > >
> > > > > find /usr/lib/python* -name \*tdb\* =nothing=
> > > > >
> > > > > ldb and tdb workdirs are here:
> > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.bz2
> > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.bz2
> > > > >
> > > >
> > > > Thank you very much.
> > > > I confirmed that tdb.so is exists in
> > > > ${D}/usr/lib/python2.7/site-packages
> > > of libtdb.
> > > >
> > > > Would you helping me check whether does tdb.so exist in
> > > > ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
> > > > after building libtdb.
> > > > # find
> > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/
> > > > lib/ python2.7/site-packages -name \*tdb\*
> > >
> > > that server is already buiding domething else and tmpfs is gone, but
> > > in the archive I've sent you we can see that it's in sysroot-destdir
> > > directory so I believe it was also in
> > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/li
> > > b/pyth
> > > on2.7/site-packages
> > >
> > > jenkins@aruba:~/oe/world/shr-core$ find libtdb/ -name tdb.so
> > > libtdb/1.3.0-r0/image/usr/lib/python2.7/site-packages/tdb.so
> > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/.debug/tdb.s
> > > o libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/tdb.so
> > > libtdb/1.3.0-r0/packages-split/python-tdb/usr/lib/python2.7/site-pac
> > > kages/
> > > tdb.so
> > > libtdb/1.3.0-r0/packages-split/python-tdb-dbg/usr/lib/python2.7/site
> > > -packa
> > > ges/.debug/tdb.so
> > > libtdb/1.3.0-r0/sysroot-destdir/usr/lib/python2.7/site-packages/tdb.
> > > so libtdb/1.3.0-r0/tdb-1.3.0/bin/python/tdb.so
> > >
> >
> > Thanks for your time.
> >
> > I'm sorry for that, but would you mind to apply this patch which is
> > based on master-next, and then build libldb again to catch more information
> for me.
> > https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0abad578
> > e74d9f7b8f1c3ff951
> 
> | Checking for
> getgrouplist                                                         : ok
> | Checking for system tdb >=
> 1.2.13                                                 : yes
> | module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/u
> | sr/lib/python2.7/site-packages/tdb.so] exists in
> | [/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/lib
> | /python2.7/site-packages] Cross
> |
> module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/l
> ib/python2.7/site-packages/tdb.so] can not be loaded.
> | Close
> module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/l
> ib/python2.7/site-packages/tdb.so]. Note: maybe some exception was caught!
> | ERROR: Python module pytdb of version 1.2.13 not found, and bundling
> | disabled
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_configure (log file is located at
> | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/libld
> | b/1.1.17-r0/temp/log.do_configure.15453)
> NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> 
> >
> > Thanks
> >  Bian
> >
> > > >
> > > > Thanks
> > > >  Bian
> > > >
> > > > > > > - samba
> > > > > > >
> > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb
> > > > > > > 2820
> > > > > > > 294c
> > > > > > > b9ce239d9d4dccc492ea
> > > > > > >
> > > > > > > Thanks
> > > > > > >  Bian
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org]
> > > > > > > > On Behalf Of Bian, Naimeng
> > > > > > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > > recipe
> > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.or
> > > > > > > > > g] On Behalf Of Martin Jansa
> > > > > > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > > > > > To: openembedded-devel
> > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add
> > > > > > > > > new recipe
> > > > > > > > >
> > > > > > > > > I don't have access to that build anymore (because it's
> > > > > > > > > jenkins job using tmpfs for TMPDIR, so after the build
> > > > > > > > > the TMPDIR is gone), but it's failing only in
> > > > > > > > > qemux86-64 builds, so I assume that it's finding host
> > > > > > > > > tdb or python directories, because it's running on 12.04 Ubuntu
> x86-64.
> > > > > > > > >
> > > > > > > > > Try to install tdb on your build host if it allows you
> > > > > > > > > to reproduce the issue, otherwise I'll try to reproduce
> > > > > > > > > it again in some
> > > > > next jenkins build.
> > > > > > > > >
> > > > > > > >
> > > > > > > > My host is CentOS6.5 x86-64, and although I installed
> > > > > > > > tdb.so into my host, i still cannot reproduce it.
> > > > > > > >
> > > > > > > > And, I have exported
> > > > > > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
> > > > > > > > in waf-samba.bbclasss which is inherited by libldb. IMO,
> > > > > > > > it should find modules in PYTHONPATH firstly.
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >  Bian
> > > > > > > >
> > > > > > > >
> > > > > > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > From:
> > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedde
> > > > > > > > > > > d.or g] On Behalf Of Martin Jansa
> > > > > > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > add new recipe
> > > > > > > > > > >
> > > > > > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng wrote:
> > > > > > > > > > > > libldb is required by samba4
> > > > > > > > > > > >
> > > > > > > > > > > > Signed-off-by: Bian Naimeng
> > > > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > > > ---
> > > > > > > > > > > >
> > > > > > > > > > > > .../do-not-import-target-module-in-configure.patch
> > > > > > > > > > > > |
> > > > > > > > > > > > 32
> > > > > > > > > > +++++++++++++++
> > > > > > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    |
> 45
> > > > > > > > > > > ++++++++++++++++++++++
> > > > > > > > > > > >  2 files changed, 77 insertions(+)  create mode
> > > > > > > > > > > > 100644
> > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not-impor
> > > > > > > > > > > > t-ta
> > > > > > > > > > > > rget
> > > > > > > > > > > > -modul
> > > > > > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > >
> > > > > > > > > > > Fails to build in bitbake world:
> > > > > > > > > > >
> > > > > > > > > > > | Checking for system tdb >=
> > > > > > > > > > > 1.2.13                                                 :
> yes
> > > > > > > > > > > | ERROR: Python module pytdb of version 1.2.13 not
> > > > > > > > > > > | found, and bundling disabled
> > > > > > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > > > > > | ERROR: Function failed: do_configure (log file is
> > > > > > > > > > > | located at
> > > > > > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/cor
> > > > > > > > > > > | e2-6
> > > > > > > > > > > | 4-oe
> > > > > > > > > > > | -linux
> > > > > > > > > > > | /l
> > > > > > > > > > > | ibld
> > > > > > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure:
> > > > > > > > > > > Failed
> > > > > > > > > > > ERROR: Task 25505
> > > > > > > > > > >
> > > > > > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/met
> > > > > > > > > > a-oe
> > > > > > > > > > /rec
> > > > > > > > > > ipes-s
> > > > > > > > > > up
> > > > > > > > > > port
> > > > > > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed with
> > > > > > > > > > > exit code
> > > '1'
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > tdb.so is provided by libtdb which is DEPEND-ed by
> > > > > > > > > > libldb, I think it should be installed into
> > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > > > > > >
> > > > > > > > > > Because I could not reproduce it in my building, would
> > > > > > > > > > you mind telling me whether does tdb.so exist in
> > > > > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while this
> > > > > > > > > > error was
> > > caught.
> > > > > > > > > >
> > > > > > > > > > Thanks
> > > > > > > > > >  Bian
> > > > > > > > > >
> > > > > > > > > > > > diff --git
> > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-imp
> > > > > > > > > > > > ort-
> > > > > > > > > > > > targ
> > > > > > > > > > > > et-mod
> > > > > > > > > > > > ul
> > > > > > > > > > > > e-in
> > > > > > > > > > > > -configure.patch
> > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-imp
> > > > > > > > > > > > ort-
> > > > > > > > > > > > targ
> > > > > > > > > > > > et-mod
> > > > > > > > > > > > ul
> > > > > > > > > > > > e-in
> > > > > > > > > > > > -configure.patch
> > > > > > > > > > > > new file mode 100644 index 0000000..b4d522a
> > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-not
> > > > > > > > > > > > +++ -imp
> > > > > > > > > > > > +++ ort-
> > > > > > > > > > > > +++ target
> > > > > > > > > > > > +++ -m
> > > > > > > > > > > > +++ odul
> > > > > > > > > > > > +++ e-in-configure.patch
> > > > > > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > > > > > +Some module can be loaded while cross compile, we
> > > > > > > > > > > > +jst check whether the module exist
> > > > > > > > > > > > +
> > > > > > > > > > > > +Signed-off-by: Bian Naimeng
> > > > > > > > > > > > +<biannm@cn.fujitsu.com>
> > > > > > > > > > > > +
> > > > > > > > > > > > +---
> > > > > > > > > > > > +ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled
> > > > > > > > > > > > +.py
> > > > > > > > 2014-05-05
> > > > > > > > > > > 17:00:41.000000000 +0900
> > > > > > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
> > > > > > > > > > > > ++++ py
> > > > > > > > 2015-06-15
> > > > > > > > > > > 10:09:50.210000217 +0900
> > > > > > > > > > > > +@@ -1,7 +1,7 @@
> > > > > > > > > > > > + # functions to support bundled libraries
> > > > > > > > > > > > +
> > > > > > > > > > > > + from Configure import conf -import sys, Logs
> > > > > > > > > > > > ++import sys, Logs, imp
> > > > > > > > > > > > + from samba_utils import *
> > > > > > > > > > > > +
> > > > > > > > > > > > + def PRIVATE_NAME(bld, name, private_extension,
> > > private_library):
> > > > > > > > > > > > +@@ -222,6 +222,16 @@ def
> > > > > > > > > > > > +CHECK_BUNDLED_SYSTEM_PYTHON(conf,
> > > li
> > > > > > > > > > > > +         m = __import__(modulename)
> > > > > > > > > > > > +     except ImportError:
> > > > > > > > > > > > +         found = False
> > > > > > > > > > > > ++
> > > > > > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > > > > > ++            # Some modules maybe can not be
> > > > > > > > > > > > ++ imported while cross
> > > > > > > > > > compile
> > > > > > > > > > > > ++            # We just check whether the module exist
> > > > > > > > > > > > ++            stuff = imp.find_module(modulename,
> > > > > > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > > > > > ++            if stuff != None:
> > > > > > > > > > > > ++                Logs.warn('Cross module[%s] has
> > > > > > > > > > > > ++ been found, but can
> > > > > > > > > > not
> > > > > > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > > > > > ++                found = True
> > > > > > > > > > > > +     else:
> > > > > > > > > > > > +         try:
> > > > > > > > > > > > +             version = m.__version__
> > > > > > > > > > > > diff --git
> > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > > > new file mode 100644 index 0000000..17607f7
> > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.17
> > > > > > > > > > > > +++ .bb
> > > > > > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > > > > > +SUMMARY = "Hierarchical, reference counted memory
> > > > > > > > > > > > +pool system with
> > > > > > > > > > > destructors"
> > > > > > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > > > > > +SECTION = "libs"
> > > > > > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > > > > > +
> > > > > > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > > > > > +
> > > > > > > > > > > > +SRC_URI =
> > > > > > > > > > > > +"http://samba.org/ftp/ldb/ldb-${PV}.tar.gz
> > > > > > > > > > > > +\
> > > > > > > > > > > > +
> > > > > file://do-not-import-target-module-in-configure.patch"
> > > > > > > > > > > > +
> > > > > > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > > > > > >
> > > > > > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.
> > > > > > > > > > 0;md
> > > > > > > > > > 5=bf
> > > > > > > > > > ccfe95
> > > > > > > > > > 22
> > > > > > > > > > 69ff
> > > > > > > > > > > f2b407dd11f2f3083b \
> > > > > > > > > > > > +
> > > > > > > > > > >
> > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2.1
> > > > > > > > > > ;md5
> > > > > > > > > > =1a6
> > > > > > > > > > d268fd
> > > > > > > > > > 21
> > > > > > > > > > 8675
> > > > > > > > > > > ffea8be556788b780 \
> > > > > > > > > > > > +
> > > > > > > > > > >
> > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.0;
> > > > > > > > > > md5=
> > > > > > > > > > c79f
> > > > > > > > > > f39f19
> > > > > > > > > > df
> > > > > > > > > > ec6d
> > > > > > > > > > > 293b95dea7b07891"
> > > > > > > > > > > > +
> > > > > > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > > > > > +SRC_URI[sha256sum] =
> > > > > > > > > > >
> > > > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > > > > > +
> > > > > > > > > > > > +inherit waf-samba
> > > > > > > > > > > > +
> > > > > > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > > > > > +
> > > > > > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > > > > > +                 --disable-rpath-install \
> > > > > > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > > > > > +                 --builtin-libraries=replace \
> > > > > > > > > > > > +
> > > > > > > > > > > > +--with-modulesdir=${libdir}/ldb/modules
> > > \
> > > > > > > > > > > > +
> > > > > > > > > > > > + --with-privatelibdir=${libdir}/ldb \
> > > > > > > > > > > > +
> > > --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > > > > > +                "
> > > > > > > > > > > > +
> > > > > > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > > > > > +
> > > > > > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > > > > > +
> > > > > > > > > > > > +FILES_pyldb =
> > > > > > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-packa
> > > > > > > > > > > > +ges/
> > > > > > > > > > > > +*
> > > > > > > > > \
> > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > > > > > > > +              "
> > > > > > > > > > > > +FILES_pyldb-dbg =
> > > > > > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packages
> > > > > > > > > > > /.de
> > > > > > > > > > > bug
> > > > > > > > > > > \
> > > > > > > > > > > > +
> ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > > > > > --
> > > > > > > > > > > > 1.9.1
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/ope
> > > > > > > > > > > > nemb
> > > > > > > > > > > > edde
> > > > > > > > > > > > d-deve
> > > > > > > > > > > > l
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > > > --
> > > > > > > > > > _______________________________________________
> > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openemb
> > > > > > > > > > edde
> > > > > > > > > > d-de
> > > > > > > > > > vel
> > > > > > > > > >
> > > > > > > > > --
> > > > > > > > > _______________________________________________
> > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembed
> > > > > > > > > ded-
> > > > > > > > > deve
> > > > > > > > > l
> > > > > > > > --
> > > > > > > > _______________________________________________
> > > > > > > > Openembedded-devel mailing list
> > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedde
> > > > > > > > d-de
> > > > > > > > vel
> > > > > > > --
> > > > > > > _______________________________________________
> > > > > > > Openembedded-devel mailing list
> > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-
> > > > > > > deve
> > > > > > > l
> > > > > >
> > > > > > --
> > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > >
> > > --
> > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-07-17  7:39                         ` Bian, Naimeng
@ 2015-08-03  8:58                           ` Bian, Naimeng
  2015-08-03  9:39                             ` Martin Jansa
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-08-03  8:58 UTC (permalink / raw)
  To: openembedded-devel

Hi Martin

Thanks a lot for your help.
The patchset has been removed from master-next, does it mean I should re-send it again.
If not, would you telling me what should I do at the next-step.

Thanks
 Bian

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of Bian,
> Naimeng
> Sent: Friday, July 17, 2015 3:40 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> 
> Thanks for your help.
> 
> Please rebase the patch of libldb and samba from here.
> - libldb
> 
> https://github.com/bendaaron/meta-oe-dev/commit/f7a7d49164c8f5a4e8b12ccdc9
> 2e08d73952a97c
> 
> - samba
> 
> https://github.com/bendaaron/meta-oe-dev/commit/db03404a4b6fed9753457055fe
> c88b523ceeda3c
> 
> Thanks
>  Bian
> 
> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > Of Martin Jansa
> > Sent: Tuesday, July 14, 2015 12:17 AM
> > To: openembedded-devel@lists.openembedded.org
> > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> >
> > On Fri, Jul 10, 2015 at 03:49:02AM +0000, Bian, Naimeng wrote:
> > > > -----Original Message-----
> > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > Behalf Of Martin Jansa
> > > > Sent: Thursday, July 09, 2015 11:54 PM
> > > > To: openembedded-devel@lists.openembedded.org
> > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > >
> > > > On Thu, Jul 09, 2015 at 12:30:42AM +0000, Bian, Naimeng wrote:
> > > > > > -----Original Message-----
> > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > > Behalf Of Martin Jansa
> > > > > > Sent: Wednesday, July 08, 2015 7:59 PM
> > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > recipe
> > > > > >
> > > > > > On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > > > > > > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > > > > > > Hi Martin,
> > > > > > > >
> > > > > > > > I think I have fixed them and pushed them to github,
> > > > > > > > please cherry-pick
> > > > > > them.
> > > > > > > >
> > > > > > > > - libldb
> > > > > > > >
> > > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236
> > > > > > > > 22
> > > > > > > > 6646
> > > > > > > > fde9
> > > > > > > > 9611c20fe3fcc6612e7a
> > > > > > >
> > > > > > > Hi Bian,
> > > > > > >
> > > > > > > it's still failing with this patch. I'll try to build it
> > > > > > > manually and provide more details.
> > > > > >
> > > > > > find /usr/lib/python* -name \*tdb\* =nothing=
> > > > > >
> > > > > > ldb and tdb workdirs are here:
> > > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.bz2
> > > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.bz2
> > > > > >
> > > > >
> > > > > Thank you very much.
> > > > > I confirmed that tdb.so is exists in
> > > > > ${D}/usr/lib/python2.7/site-packages
> > > > of libtdb.
> > > > >
> > > > > Would you helping me check whether does tdb.so exist in
> > > > > ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
> > > > > after building libtdb.
> > > > > # find
> > > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/us
> > > > > r/ lib/ python2.7/site-packages -name \*tdb\*
> > > >
> > > > that server is already buiding domething else and tmpfs is gone,
> > > > but in the archive I've sent you we can see that it's in
> > > > sysroot-destdir directory so I believe it was also in
> > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/
> > > > li
> > > > b/pyth
> > > > on2.7/site-packages
> > > >
> > > > jenkins@aruba:~/oe/world/shr-core$ find libtdb/ -name tdb.so
> > > > libtdb/1.3.0-r0/image/usr/lib/python2.7/site-packages/tdb.so
> > > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/.debug/tdb
> > > > .s o
> > > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/tdb.so
> > > > libtdb/1.3.0-r0/packages-split/python-tdb/usr/lib/python2.7/site-p
> > > > ac
> > > > kages/
> > > > tdb.so
> > > > libtdb/1.3.0-r0/packages-split/python-tdb-dbg/usr/lib/python2.7/si
> > > > te
> > > > -packa
> > > > ges/.debug/tdb.so
> > > > libtdb/1.3.0-r0/sysroot-destdir/usr/lib/python2.7/site-packages/tdb.
> > > > so libtdb/1.3.0-r0/tdb-1.3.0/bin/python/tdb.so
> > > >
> > >
> > > Thanks for your time.
> > >
> > > I'm sorry for that, but would you mind to apply this patch which is
> > > based on master-next, and then build libldb again to catch more
> > > information
> > for me.
> > > https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0abad5
> > > 78
> > > e74d9f7b8f1c3ff951
> >
> > | Checking for
> > getgrouplist                                                         : ok
> > | Checking for system tdb >=
> > 1.2.13                                                 : yes
> > | module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64
> > | /u sr/lib/python2.7/site-packages/tdb.so] exists in
> > | [/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/l
> > | ib
> > | /python2.7/site-packages] Cross
> > |
> > module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/u
> > sr/l ib/python2.7/site-packages/tdb.so] can not be loaded.
> > | Close
> > module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/u
> > sr/l ib/python2.7/site-packages/tdb.so]. Note: maybe some exception
> > was caught!
> > | ERROR: Python module pytdb of version 1.2.13 not found, and bundling
> > | disabled
> > | WARNING: exit code 1 from a shell command.
> > | ERROR: Function failed: do_configure (log file is located at
> > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/lib
> > | ld
> > | b/1.1.17-r0/temp/log.do_configure.15453)
> > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> >
> > >
> > > Thanks
> > >  Bian
> > >
> > > > >
> > > > > Thanks
> > > > >  Bian
> > > > >
> > > > > > > > - samba
> > > > > > > >
> > > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/25430ee92b
> > > > > > > > bb
> > > > > > > > 2820
> > > > > > > > 294c
> > > > > > > > b9ce239d9d4dccc492ea
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >  Bian
> > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.or
> > > > > > > > > g] On Behalf Of Bian, Naimeng
> > > > > > > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add
> > > > > > > > > new recipe
> > > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From:
> > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.
> > > > > > > > > > or g] On Behalf Of Martin Jansa
> > > > > > > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > > > > > > To: openembedded-devel
> > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add
> > > > > > > > > > new recipe
> > > > > > > > > >
> > > > > > > > > > I don't have access to that build anymore (because
> > > > > > > > > > it's jenkins job using tmpfs for TMPDIR, so after the
> > > > > > > > > > build the TMPDIR is gone), but it's failing only in
> > > > > > > > > > qemux86-64 builds, so I assume that it's finding host
> > > > > > > > > > tdb or python directories, because it's running on
> > > > > > > > > > 12.04 Ubuntu
> > x86-64.
> > > > > > > > > >
> > > > > > > > > > Try to install tdb on your build host if it allows you
> > > > > > > > > > to reproduce the issue, otherwise I'll try to
> > > > > > > > > > reproduce it again in some
> > > > > > next jenkins build.
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > > My host is CentOS6.5 x86-64, and although I installed
> > > > > > > > > tdb.so into my host, i still cannot reproduce it.
> > > > > > > > >
> > > > > > > > > And, I have exported
> > > > > > > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
> > > > > > > > > in waf-samba.bbclasss which is inherited by libldb. IMO,
> > > > > > > > > it should find modules in PYTHONPATH firstly.
> > > > > > > > >
> > > > > > > > > Thanks
> > > > > > > > >  Bian
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > From:
> > > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembed
> > > > > > > > > > > > de d.or g] On Behalf Of Martin Jansa
> > > > > > > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > > add new recipe
> > > > > > > > > > > >
> > > > > > > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng
> wrote:
> > > > > > > > > > > > > libldb is required by samba4
> > > > > > > > > > > > >
> > > > > > > > > > > > > Signed-off-by: Bian Naimeng
> > > > > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > > > > ---
> > > > > > > > > > > > >
> > > > > > > > > > > > > .../do-not-import-target-module-in-configure.pat
> > > > > > > > > > > > > ch
> > > > > > > > > > > > > |
> > > > > > > > > > > > > 32
> > > > > > > > > > > +++++++++++++++
> > > > > > > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    |
> > 45
> > > > > > > > > > > > ++++++++++++++++++++++
> > > > > > > > > > > > >  2 files changed, 77 insertions(+)  create mode
> > > > > > > > > > > > > 100644
> > > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not-imp
> > > > > > > > > > > > > or
> > > > > > > > > > > > > t-ta
> > > > > > > > > > > > > rget
> > > > > > > > > > > > > -modul
> > > > > > > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > > >
> > > > > > > > > > > > Fails to build in bitbake world:
> > > > > > > > > > > >
> > > > > > > > > > > > | Checking for system tdb >=
> > > > > > > > > > > > 1.2.13                                                 :
> > yes
> > > > > > > > > > > > | ERROR: Python module pytdb of version 1.2.13 not
> > > > > > > > > > > > | found, and bundling disabled
> > > > > > > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > > > > > > | ERROR: Function failed: do_configure (log file
> > > > > > > > > > > > | is located at
> > > > > > > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/c
> > > > > > > > > > > > | or
> > > > > > > > > > > > | e2-6
> > > > > > > > > > > > | 4-oe
> > > > > > > > > > > > | -linux
> > > > > > > > > > > > | /l
> > > > > > > > > > > > | ibld
> > > > > > > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure:
> > > > > > > > > > > > Failed
> > > > > > > > > > > > ERROR: Task 25505
> > > > > > > > > > > >
> > > > > > > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/m
> > > > > > > > > > > et
> > > > > > > > > > > a-oe
> > > > > > > > > > > /rec
> > > > > > > > > > > ipes-s
> > > > > > > > > > > up
> > > > > > > > > > > port
> > > > > > > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed
> > > > > > > > > > > > with exit code
> > > > '1'
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > tdb.so is provided by libtdb which is DEPEND-ed by
> > > > > > > > > > > libldb, I think it should be installed into
> > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > > > > > > >
> > > > > > > > > > > Because I could not reproduce it in my building,
> > > > > > > > > > > would you mind telling me whether does tdb.so exist
> > > > > > > > > > > in STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while
> > > > > > > > > > > this error was
> > > > caught.
> > > > > > > > > > >
> > > > > > > > > > > Thanks
> > > > > > > > > > >  Bian
> > > > > > > > > > >
> > > > > > > > > > > > > diff --git
> > > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-i
> > > > > > > > > > > > > mp
> > > > > > > > > > > > > ort-
> > > > > > > > > > > > > targ
> > > > > > > > > > > > > et-mod
> > > > > > > > > > > > > ul
> > > > > > > > > > > > > e-in
> > > > > > > > > > > > > -configure.patch
> > > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-i
> > > > > > > > > > > > > mp
> > > > > > > > > > > > > ort-
> > > > > > > > > > > > > targ
> > > > > > > > > > > > > et-mod
> > > > > > > > > > > > > ul
> > > > > > > > > > > > > e-in
> > > > > > > > > > > > > -configure.patch new file mode 100644 index
> > > > > > > > > > > > > 0000000..b4d522a
> > > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-n
> > > > > > > > > > > > > +++ ot
> > > > > > > > > > > > > +++ -imp
> > > > > > > > > > > > > +++ ort-
> > > > > > > > > > > > > +++ target
> > > > > > > > > > > > > +++ -m
> > > > > > > > > > > > > +++ odul
> > > > > > > > > > > > > +++ e-in-configure.patch
> > > > > > > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > > > > > > +Some module can be loaded while cross compile,
> > > > > > > > > > > > > +we jst check whether the module exist
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +Signed-off-by: Bian Naimeng
> > > > > > > > > > > > > +<biannm@cn.fujitsu.com>
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +---
> > > > > > > > > > > > > +ldb-1.1.17.orig/buildtools/wafsamba/samba_bundl
> > > > > > > > > > > > > +ed
> > > > > > > > > > > > > +.py
> > > > > > > > > 2014-05-05
> > > > > > > > > > > > 17:00:41.000000000 +0900
> > > > > > > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
> > > > > > > > > > > > > ++++ py
> > > > > > > > > 2015-06-15
> > > > > > > > > > > > 10:09:50.210000217 +0900
> > > > > > > > > > > > > +@@ -1,7 +1,7 @@  # functions to support bundled
> > > > > > > > > > > > > +libraries
> > > > > > > > > > > > > +
> > > > > > > > > > > > > + from Configure import conf -import sys, Logs
> > > > > > > > > > > > > ++import sys, Logs, imp
> > > > > > > > > > > > > + from samba_utils import *
> > > > > > > > > > > > > +
> > > > > > > > > > > > > + def PRIVATE_NAME(bld, name, private_extension,
> > > > private_library):
> > > > > > > > > > > > > +@@ -222,6 +222,16 @@ def
> > > > > > > > > > > > > +CHECK_BUNDLED_SYSTEM_PYTHON(conf,
> > > > li
> > > > > > > > > > > > > +         m = __import__(modulename)
> > > > > > > > > > > > > +     except ImportError:
> > > > > > > > > > > > > +         found = False
> > > > > > > > > > > > > ++
> > > > > > > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > > > > > > ++            # Some modules maybe can not be
> > > > > > > > > > > > > ++ imported while cross
> > > > > > > > > > > compile
> > > > > > > > > > > > > ++            # We just check whether the module exist
> > > > > > > > > > > > > ++            stuff =
> > > > > > > > > > > > > ++ imp.find_module(modulename,
> > > > > > > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > > > > > > ++            if stuff != None:
> > > > > > > > > > > > > ++                Logs.warn('Cross module[%s]
> > > > > > > > > > > > > ++ has been found, but can
> > > > > > > > > > > not
> > > > > > > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > > > > > > ++                found = True
> > > > > > > > > > > > > +     else:
> > > > > > > > > > > > > +         try:
> > > > > > > > > > > > > +             version = m.__version__
> > > > > > > > > > > > > diff --git
> > > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.17.b
> > > > > > > > > > > > > b
> > > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.b
> > > > > > > > > > > > > b new file mode 100644 index 0000000..17607f7
> > > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.
> > > > > > > > > > > > > +++ 17
> > > > > > > > > > > > > +++ .bb
> > > > > > > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > > > > > > +SUMMARY = "Hierarchical, reference counted
> > > > > > > > > > > > > +memory pool system with
> > > > > > > > > > > > destructors"
> > > > > > > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > > > > > > +SECTION = "libs"
> > > > > > > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +SRC_URI =
> > > > > > > > > > > > > +"http://samba.org/ftp/ldb/ldb-${PV}.tar.gz
> > > > > > > > > > > > > +\
> > > > > > > > > > > > > +
> > > > > > file://do-not-import-target-module-in-configure.patch"
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > > > > > > >
> > > > > > > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.
> > > > > > > > > > > 0;md
> > > > > > > > > > > 5=bf
> > > > > > > > > > > ccfe95
> > > > > > > > > > > 22
> > > > > > > > > > > 69ff
> > > > > > > > > > > > f2b407dd11f2f3083b \
> > > > > > > > > > > > > +
> > > > > > > > > > > >
> > > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2
> > > > > > > > > > > .1
> > > > > > > > > > > ;md5
> > > > > > > > > > > =1a6
> > > > > > > > > > > d268fd
> > > > > > > > > > > 21
> > > > > > > > > > > 8675
> > > > > > > > > > > > ffea8be556788b780 \
> > > > > > > > > > > > > +
> > > > > > > > > > > >
> > > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.
> > > > > > > > > > > 0;
> > > > > > > > > > > md5=
> > > > > > > > > > > c79f
> > > > > > > > > > > f39f19
> > > > > > > > > > > df
> > > > > > > > > > > ec6d
> > > > > > > > > > > > 293b95dea7b07891"
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > > > > > > +SRC_URI[sha256sum] =
> > > > > > > > > > > >
> > > > > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +inherit waf-samba
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > > > > > > +                 --disable-rpath-install \
> > > > > > > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > > > > > > +                 --builtin-libraries=replace \
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +--with-modulesdir=${libdir}/ldb/modules
> > > > \
> > > > > > > > > > > > > +
> > > > > > > > > > > > > + --with-privatelibdir=${libdir}/ldb \
> > > > > > > > > > > > > +
> > > > --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > > > > > > +                "
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > > > > > > +
> > > > > > > > > > > > > +FILES_pyldb =
> > > > > > > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-pac
> > > > > > > > > > > > > +ka
> > > > > > > > > > > > > +ges/
> > > > > > > > > > > > > +*
> > > > > > > > > > \
> > > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > > > > > > > > +              "
> > > > > > > > > > > > > +FILES_pyldb-dbg =
> > > > > > > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packag
> > > > > > > > > > > > es
> > > > > > > > > > > > /.de
> > > > > > > > > > > > bug
> > > > > > > > > > > > \
> > > > > > > > > > > > > +
> > ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > > > > > > --
> > > > > > > > > > > > > 1.9.1
> > > > > > > > > > > > >
> > > > > > > > > > > > > --
> > > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/o
> > > > > > > > > > > > > pe
> > > > > > > > > > > > > nemb
> > > > > > > > > > > > > edde
> > > > > > > > > > > > > d-deve
> > > > > > > > > > > > > l
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > > > > --
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/opene
> > > > > > > > > > > mb
> > > > > > > > > > > edde
> > > > > > > > > > > d-de
> > > > > > > > > > > vel
> > > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > _______________________________________________
> > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openemb
> > > > > > > > > > ed
> > > > > > > > > > ded-
> > > > > > > > > > deve
> > > > > > > > > > l
> > > > > > > > > --
> > > > > > > > > _______________________________________________
> > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembed
> > > > > > > > > de
> > > > > > > > > d-de
> > > > > > > > > vel
> > > > > > > > --
> > > > > > > > _______________________________________________
> > > > > > > > Openembedded-devel mailing list
> > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedde
> > > > > > > > d-
> > > > > > > > deve
> > > > > > > > l
> > > > > > >
> > > > > > > --
> > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > --
> > > > > _______________________________________________
> > > > > Openembedded-devel mailing list
> > > > > Openembedded-devel@lists.openembedded.org
> > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > l
> > > >
> > > > --
> > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> > --
> > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-08-03  8:58                           ` Bian, Naimeng
@ 2015-08-03  9:39                             ` Martin Jansa
  2015-08-06  6:57                               ` Bian, Naimeng
  0 siblings, 1 reply; 28+ messages in thread
From: Martin Jansa @ 2015-08-03  9:39 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 26238 bytes --]

On Mon, Aug 03, 2015 at 08:58:04AM +0000, Bian, Naimeng wrote:
> Hi Martin
> 
> Thanks a lot for your help.
> The patchset has been removed from master-next, does it mean I should re-send it again.
> If not, would you telling me what should I do at the next-step.

It was still failing with updated libldb and samba, so I've moved it
from master-next to contrib/jansa/master-next-unresolved-review and I'm
waiting for updated version.

> Thanks
>  Bian
> 
> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of Bian,
> > Naimeng
> > Sent: Friday, July 17, 2015 3:40 PM
> > To: openembedded-devel@lists.openembedded.org
> > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > 
> > Thanks for your help.
> > 
> > Please rebase the patch of libldb and samba from here.
> > - libldb
> > 
> > https://github.com/bendaaron/meta-oe-dev/commit/f7a7d49164c8f5a4e8b12ccdc9
> > 2e08d73952a97c
> > 
> > - samba
> > 
> > https://github.com/bendaaron/meta-oe-dev/commit/db03404a4b6fed9753457055fe
> > c88b523ceeda3c
> > 
> > Thanks
> >  Bian
> > 
> > > -----Original Message-----
> > > From: openembedded-devel-bounces@lists.openembedded.org
> > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > Of Martin Jansa
> > > Sent: Tuesday, July 14, 2015 12:17 AM
> > > To: openembedded-devel@lists.openembedded.org
> > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > >
> > > On Fri, Jul 10, 2015 at 03:49:02AM +0000, Bian, Naimeng wrote:
> > > > > -----Original Message-----
> > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > Behalf Of Martin Jansa
> > > > > Sent: Thursday, July 09, 2015 11:54 PM
> > > > > To: openembedded-devel@lists.openembedded.org
> > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > > >
> > > > > On Thu, Jul 09, 2015 at 12:30:42AM +0000, Bian, Naimeng wrote:
> > > > > > > -----Original Message-----
> > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > > > Behalf Of Martin Jansa
> > > > > > > Sent: Wednesday, July 08, 2015 7:59 PM
> > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > recipe
> > > > > > >
> > > > > > > On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > > > > > > > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > > > > > > > Hi Martin,
> > > > > > > > >
> > > > > > > > > I think I have fixed them and pushed them to github,
> > > > > > > > > please cherry-pick
> > > > > > > them.
> > > > > > > > >
> > > > > > > > > - libldb
> > > > > > > > >
> > > > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236
> > > > > > > > > 22
> > > > > > > > > 6646
> > > > > > > > > fde9
> > > > > > > > > 9611c20fe3fcc6612e7a
> > > > > > > >
> > > > > > > > Hi Bian,
> > > > > > > >
> > > > > > > > it's still failing with this patch. I'll try to build it
> > > > > > > > manually and provide more details.
> > > > > > >
> > > > > > > find /usr/lib/python* -name \*tdb\* =nothing=
> > > > > > >
> > > > > > > ldb and tdb workdirs are here:
> > > > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.bz2
> > > > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.bz2
> > > > > > >
> > > > > >
> > > > > > Thank you very much.
> > > > > > I confirmed that tdb.so is exists in
> > > > > > ${D}/usr/lib/python2.7/site-packages
> > > > > of libtdb.
> > > > > >
> > > > > > Would you helping me check whether does tdb.so exist in
> > > > > > ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
> > > > > > after building libtdb.
> > > > > > # find
> > > > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/us
> > > > > > r/ lib/ python2.7/site-packages -name \*tdb\*
> > > > >
> > > > > that server is already buiding domething else and tmpfs is gone,
> > > > > but in the archive I've sent you we can see that it's in
> > > > > sysroot-destdir directory so I believe it was also in
> > > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/
> > > > > li
> > > > > b/pyth
> > > > > on2.7/site-packages
> > > > >
> > > > > jenkins@aruba:~/oe/world/shr-core$ find libtdb/ -name tdb.so
> > > > > libtdb/1.3.0-r0/image/usr/lib/python2.7/site-packages/tdb.so
> > > > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/.debug/tdb
> > > > > .s o
> > > > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/tdb.so
> > > > > libtdb/1.3.0-r0/packages-split/python-tdb/usr/lib/python2.7/site-p
> > > > > ac
> > > > > kages/
> > > > > tdb.so
> > > > > libtdb/1.3.0-r0/packages-split/python-tdb-dbg/usr/lib/python2.7/si
> > > > > te
> > > > > -packa
> > > > > ges/.debug/tdb.so
> > > > > libtdb/1.3.0-r0/sysroot-destdir/usr/lib/python2.7/site-packages/tdb.
> > > > > so libtdb/1.3.0-r0/tdb-1.3.0/bin/python/tdb.so
> > > > >
> > > >
> > > > Thanks for your time.
> > > >
> > > > I'm sorry for that, but would you mind to apply this patch which is
> > > > based on master-next, and then build libldb again to catch more
> > > > information
> > > for me.
> > > > https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0abad5
> > > > 78
> > > > e74d9f7b8f1c3ff951
> > >
> > > | Checking for
> > > getgrouplist                                                         : ok
> > > | Checking for system tdb >=
> > > 1.2.13                                                 : yes
> > > | module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64
> > > | /u sr/lib/python2.7/site-packages/tdb.so] exists in
> > > | [/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/usr/l
> > > | ib
> > > | /python2.7/site-packages] Cross
> > > |
> > > module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/u
> > > sr/l ib/python2.7/site-packages/tdb.so] can not be loaded.
> > > | Close
> > > module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/u
> > > sr/l ib/python2.7/site-packages/tdb.so]. Note: maybe some exception
> > > was caught!
> > > | ERROR: Python module pytdb of version 1.2.13 not found, and bundling
> > > | disabled
> > > | WARNING: exit code 1 from a shell command.
> > > | ERROR: Function failed: do_configure (log file is located at
> > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/lib
> > > | ld
> > > | b/1.1.17-r0/temp/log.do_configure.15453)
> > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > >
> > > >
> > > > Thanks
> > > >  Bian
> > > >
> > > > > >
> > > > > > Thanks
> > > > > >  Bian
> > > > > >
> > > > > > > > > - samba
> > > > > > > > >
> > > > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/25430ee92b
> > > > > > > > > bb
> > > > > > > > > 2820
> > > > > > > > > 294c
> > > > > > > > > b9ce239d9d4dccc492ea
> > > > > > > > >
> > > > > > > > > Thanks
> > > > > > > > >  Bian
> > > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.or
> > > > > > > > > > g] On Behalf Of Bian, Naimeng
> > > > > > > > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add
> > > > > > > > > > new recipe
> > > > > > > > > >
> > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > From:
> > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.
> > > > > > > > > > > or g] On Behalf Of Martin Jansa
> > > > > > > > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > > > > > > > To: openembedded-devel
> > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add
> > > > > > > > > > > new recipe
> > > > > > > > > > >
> > > > > > > > > > > I don't have access to that build anymore (because
> > > > > > > > > > > it's jenkins job using tmpfs for TMPDIR, so after the
> > > > > > > > > > > build the TMPDIR is gone), but it's failing only in
> > > > > > > > > > > qemux86-64 builds, so I assume that it's finding host
> > > > > > > > > > > tdb or python directories, because it's running on
> > > > > > > > > > > 12.04 Ubuntu
> > > x86-64.
> > > > > > > > > > >
> > > > > > > > > > > Try to install tdb on your build host if it allows you
> > > > > > > > > > > to reproduce the issue, otherwise I'll try to
> > > > > > > > > > > reproduce it again in some
> > > > > > > next jenkins build.
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > My host is CentOS6.5 x86-64, and although I installed
> > > > > > > > > > tdb.so into my host, i still cannot reproduce it.
> > > > > > > > > >
> > > > > > > > > > And, I have exported
> > > > > > > > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_DIR}
> > > > > > > > > > in waf-samba.bbclasss which is inherited by libldb. IMO,
> > > > > > > > > > it should find modules in PYTHONPATH firstly.
> > > > > > > > > >
> > > > > > > > > > Thanks
> > > > > > > > > >  Bian
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > > wrote:
> > > > > > > > > > >
> > > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > > From:
> > > > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembed
> > > > > > > > > > > > > de d.or g] On Behalf Of Martin Jansa
> > > > > > > > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > > > add new recipe
> > > > > > > > > > > > >
> > > > > > > > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian Naimeng
> > wrote:
> > > > > > > > > > > > > > libldb is required by samba4
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Signed-off-by: Bian Naimeng
> > > > > > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > > > > > ---
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > .../do-not-import-target-module-in-configure.pat
> > > > > > > > > > > > > > ch
> > > > > > > > > > > > > > |
> > > > > > > > > > > > > > 32
> > > > > > > > > > > > +++++++++++++++
> > > > > > > > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb    |
> > > 45
> > > > > > > > > > > > > ++++++++++++++++++++++
> > > > > > > > > > > > > >  2 files changed, 77 insertions(+)  create mode
> > > > > > > > > > > > > > 100644
> > > > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not-imp
> > > > > > > > > > > > > > or
> > > > > > > > > > > > > > t-ta
> > > > > > > > > > > > > > rget
> > > > > > > > > > > > > > -modul
> > > > > > > > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > > > > > > > > > > > >
> > > > > > > > > > > > > Fails to build in bitbake world:
> > > > > > > > > > > > >
> > > > > > > > > > > > > | Checking for system tdb >=
> > > > > > > > > > > > > 1.2.13                                                 :
> > > yes
> > > > > > > > > > > > > | ERROR: Python module pytdb of version 1.2.13 not
> > > > > > > > > > > > > | found, and bundling disabled
> > > > > > > > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > > > > > > > | ERROR: Function failed: do_configure (log file
> > > > > > > > > > > > > | is located at
> > > > > > > > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/c
> > > > > > > > > > > > > | or
> > > > > > > > > > > > > | e2-6
> > > > > > > > > > > > > | 4-oe
> > > > > > > > > > > > > | -linux
> > > > > > > > > > > > > | /l
> > > > > > > > > > > > > | ibld
> > > > > > > > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure:
> > > > > > > > > > > > > Failed
> > > > > > > > > > > > > ERROR: Task 25505
> > > > > > > > > > > > >
> > > > > > > > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedded/m
> > > > > > > > > > > > et
> > > > > > > > > > > > a-oe
> > > > > > > > > > > > /rec
> > > > > > > > > > > > ipes-s
> > > > > > > > > > > > up
> > > > > > > > > > > > port
> > > > > > > > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed
> > > > > > > > > > > > > with exit code
> > > > > '1'
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > tdb.so is provided by libtdb which is DEPEND-ed by
> > > > > > > > > > > > libldb, I think it should be installed into
> > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > > > > > > > >
> > > > > > > > > > > > Because I could not reproduce it in my building,
> > > > > > > > > > > > would you mind telling me whether does tdb.so exist
> > > > > > > > > > > > in STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while
> > > > > > > > > > > > this error was
> > > > > caught.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks
> > > > > > > > > > > >  Bian
> > > > > > > > > > > >
> > > > > > > > > > > > > > diff --git
> > > > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-not-i
> > > > > > > > > > > > > > mp
> > > > > > > > > > > > > > ort-
> > > > > > > > > > > > > > targ
> > > > > > > > > > > > > > et-mod
> > > > > > > > > > > > > > ul
> > > > > > > > > > > > > > e-in
> > > > > > > > > > > > > > -configure.patch
> > > > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-not-i
> > > > > > > > > > > > > > mp
> > > > > > > > > > > > > > ort-
> > > > > > > > > > > > > > targ
> > > > > > > > > > > > > > et-mod
> > > > > > > > > > > > > > ul
> > > > > > > > > > > > > > e-in
> > > > > > > > > > > > > > -configure.patch new file mode 100644 index
> > > > > > > > > > > > > > 0000000..b4d522a
> > > > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/do-n
> > > > > > > > > > > > > > +++ ot
> > > > > > > > > > > > > > +++ -imp
> > > > > > > > > > > > > > +++ ort-
> > > > > > > > > > > > > > +++ target
> > > > > > > > > > > > > > +++ -m
> > > > > > > > > > > > > > +++ odul
> > > > > > > > > > > > > > +++ e-in-configure.patch
> > > > > > > > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > > > > > > > +Some module can be loaded while cross compile,
> > > > > > > > > > > > > > +we jst check whether the module exist
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +Signed-off-by: Bian Naimeng
> > > > > > > > > > > > > > +<biannm@cn.fujitsu.com>
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +---
> > > > > > > > > > > > > > +ldb-1.1.17.orig/buildtools/wafsamba/samba_bundl
> > > > > > > > > > > > > > +ed
> > > > > > > > > > > > > > +.py
> > > > > > > > > > 2014-05-05
> > > > > > > > > > > > > 17:00:41.000000000 +0900
> > > > > > > > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
> > > > > > > > > > > > > > ++++ py
> > > > > > > > > > 2015-06-15
> > > > > > > > > > > > > 10:09:50.210000217 +0900
> > > > > > > > > > > > > > +@@ -1,7 +1,7 @@  # functions to support bundled
> > > > > > > > > > > > > > +libraries
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > + from Configure import conf -import sys, Logs
> > > > > > > > > > > > > > ++import sys, Logs, imp
> > > > > > > > > > > > > > + from samba_utils import *
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > + def PRIVATE_NAME(bld, name, private_extension,
> > > > > private_library):
> > > > > > > > > > > > > > +@@ -222,6 +222,16 @@ def
> > > > > > > > > > > > > > +CHECK_BUNDLED_SYSTEM_PYTHON(conf,
> > > > > li
> > > > > > > > > > > > > > +         m = __import__(modulename)
> > > > > > > > > > > > > > +     except ImportError:
> > > > > > > > > > > > > > +         found = False
> > > > > > > > > > > > > > ++
> > > > > > > > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > > > > > > > ++            # Some modules maybe can not be
> > > > > > > > > > > > > > ++ imported while cross
> > > > > > > > > > > > compile
> > > > > > > > > > > > > > ++            # We just check whether the module exist
> > > > > > > > > > > > > > ++            stuff =
> > > > > > > > > > > > > > ++ imp.find_module(modulename,
> > > > > > > > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > > > > > > > ++            if stuff != None:
> > > > > > > > > > > > > > ++                Logs.warn('Cross module[%s]
> > > > > > > > > > > > > > ++ has been found, but can
> > > > > > > > > > > > not
> > > > > > > > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > > > > > > > ++                found = True
> > > > > > > > > > > > > > +     else:
> > > > > > > > > > > > > > +         try:
> > > > > > > > > > > > > > +             version = m.__version__
> > > > > > > > > > > > > > diff --git
> > > > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.17.b
> > > > > > > > > > > > > > b
> > > > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.17.b
> > > > > > > > > > > > > > b new file mode 100644 index 0000000..17607f7
> > > > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.
> > > > > > > > > > > > > > +++ 17
> > > > > > > > > > > > > > +++ .bb
> > > > > > > > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > > > > > > > +SUMMARY = "Hierarchical, reference counted
> > > > > > > > > > > > > > +memory pool system with
> > > > > > > > > > > > > destructors"
> > > > > > > > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > > > > > > > +SECTION = "libs"
> > > > > > > > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +SRC_URI =
> > > > > > > > > > > > > > +"http://samba.org/ftp/ldb/ldb-${PV}.tar.gz
> > > > > > > > > > > > > > +\
> > > > > > > > > > > > > > +
> > > > > > > file://do-not-import-target-module-in-configure.patch"
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > > > > > > > >
> > > > > > > > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.
> > > > > > > > > > > > 0;md
> > > > > > > > > > > > 5=bf
> > > > > > > > > > > > ccfe95
> > > > > > > > > > > > 22
> > > > > > > > > > > > 69ff
> > > > > > > > > > > > > f2b407dd11f2f3083b \
> > > > > > > > > > > > > > +
> > > > > > > > > > > > >
> > > > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/LGPL-2
> > > > > > > > > > > > .1
> > > > > > > > > > > > ;md5
> > > > > > > > > > > > =1a6
> > > > > > > > > > > > d268fd
> > > > > > > > > > > > 21
> > > > > > > > > > > > 8675
> > > > > > > > > > > > > ffea8be556788b780 \
> > > > > > > > > > > > > > +
> > > > > > > > > > > > >
> > > > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.
> > > > > > > > > > > > 0;
> > > > > > > > > > > > md5=
> > > > > > > > > > > > c79f
> > > > > > > > > > > > f39f19
> > > > > > > > > > > > df
> > > > > > > > > > > > ec6d
> > > > > > > > > > > > > 293b95dea7b07891"
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > > > > > > > +SRC_URI[sha256sum] =
> > > > > > > > > > > > >
> > > > > > > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +inherit waf-samba
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > > > > > > > +                 --disable-rpath-install \
> > > > > > > > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > > > > > > > +                 --builtin-libraries=replace \
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +--with-modulesdir=${libdir}/ldb/modules
> > > > > \
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > + --with-privatelibdir=${libdir}/ldb \
> > > > > > > > > > > > > > +
> > > > > --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > > > > > > > +                "
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > > > > > > > +                    ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > > > > > > > +
> > > > > > > > > > > > > > +FILES_pyldb =
> > > > > > > > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site-pac
> > > > > > > > > > > > > > +ka
> > > > > > > > > > > > > > +ges/
> > > > > > > > > > > > > > +*
> > > > > > > > > > > \
> > > > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17 \
> > > > > > > > > > > > > > +              "
> > > > > > > > > > > > > > +FILES_pyldb-dbg =
> > > > > > > > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-packag
> > > > > > > > > > > > > es
> > > > > > > > > > > > > /.de
> > > > > > > > > > > > > bug
> > > > > > > > > > > > > \
> > > > > > > > > > > > > > +
> > > ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > 1.9.1
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/o
> > > > > > > > > > > > > > pe
> > > > > > > > > > > > > > nemb
> > > > > > > > > > > > > > edde
> > > > > > > > > > > > > > d-deve
> > > > > > > > > > > > > > l
> > > > > > > > > > > > >
> > > > > > > > > > > > > --
> > > > > > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > > > > > --
> > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/opene
> > > > > > > > > > > > mb
> > > > > > > > > > > > edde
> > > > > > > > > > > > d-de
> > > > > > > > > > > > vel
> > > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openemb
> > > > > > > > > > > ed
> > > > > > > > > > > ded-
> > > > > > > > > > > deve
> > > > > > > > > > > l
> > > > > > > > > > --
> > > > > > > > > > _______________________________________________
> > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembed
> > > > > > > > > > de
> > > > > > > > > > d-de
> > > > > > > > > > vel
> > > > > > > > > --
> > > > > > > > > _______________________________________________
> > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedde
> > > > > > > > > d-
> > > > > > > > > deve
> > > > > > > > > l
> > > > > > > >
> > > > > > > > --
> > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > --
> > > > > > _______________________________________________
> > > > > > Openembedded-devel mailing list
> > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > > l
> > > > >
> > > > > --
> > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > >
> > > --
> > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-08-03  9:39                             ` Martin Jansa
@ 2015-08-06  6:57                               ` Bian, Naimeng
  2015-08-18 10:41                                 ` Martin Jansa
  0 siblings, 1 reply; 28+ messages in thread
From: Bian, Naimeng @ 2015-08-06  6:57 UTC (permalink / raw)
  To: openembedded-devel

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Martin Jansa
> Sent: Monday, August 03, 2015 5:40 PM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> 
> On Mon, Aug 03, 2015 at 08:58:04AM +0000, Bian, Naimeng wrote:
> > Hi Martin
> >
> > Thanks a lot for your help.
> > The patchset has been removed from master-next, does it mean I should re-send
> it again.
> > If not, would you telling me what should I do at the next-step.
> 
> It was still failing with updated libldb and samba, so I've moved it from
> master-next to contrib/jansa/master-next-unresolved-review and I'm waiting
> for updated version.
> 

I have pushed the updated patch to my git-hub tree.
Because I just updated the patch of libldb and samba, so please rebase them from there.

- libldb
  https://github.com/bendaaron/meta-oe-dev/commit/972123f0722033ddc7d1c8feb2eb0479ea774edb

- samba
  https://github.com/bendaaron/meta-oe-dev/commit/c14b4b8ef8827d305bdd680cb0e8a00e08b8fba0

If you think that it's better to re-send patcheset to this ML, I will do it.

Thanks
 Bian

> > Thanks
> >  Bian
> >
> > > -----Original Message-----
> > > From: openembedded-devel-bounces@lists.openembedded.org
> > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > Of Bian, Naimeng
> > > Sent: Friday, July 17, 2015 3:40 PM
> > > To: openembedded-devel@lists.openembedded.org
> > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > >
> > > Thanks for your help.
> > >
> > > Please rebase the patch of libldb and samba from here.
> > > - libldb
> > >
> > > https://github.com/bendaaron/meta-oe-dev/commit/f7a7d49164c8f5a4e8b1
> > > 2ccdc9
> > > 2e08d73952a97c
> > >
> > > - samba
> > >
> > > https://github.com/bendaaron/meta-oe-dev/commit/db03404a4b6fed975345
> > > 7055fe
> > > c88b523ceeda3c
> > >
> > > Thanks
> > >  Bian
> > >
> > > > -----Original Message-----
> > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > Behalf Of Martin Jansa
> > > > Sent: Tuesday, July 14, 2015 12:17 AM
> > > > To: openembedded-devel@lists.openembedded.org
> > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > >
> > > > On Fri, Jul 10, 2015 at 03:49:02AM +0000, Bian, Naimeng wrote:
> > > > > > -----Original Message-----
> > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > > Behalf Of Martin Jansa
> > > > > > Sent: Thursday, July 09, 2015 11:54 PM
> > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > recipe
> > > > > >
> > > > > > On Thu, Jul 09, 2015 at 12:30:42AM +0000, Bian, Naimeng wrote:
> > > > > > > > -----Original Message-----
> > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org]
> > > > > > > > On Behalf Of Martin Jansa
> > > > > > > > Sent: Wednesday, July 08, 2015 7:59 PM
> > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > > recipe
> > > > > > > >
> > > > > > > > On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > > > > > > > > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > > > > > > > > Hi Martin,
> > > > > > > > > >
> > > > > > > > > > I think I have fixed them and pushed them to github,
> > > > > > > > > > please cherry-pick
> > > > > > > > them.
> > > > > > > > > >
> > > > > > > > > > - libldb
> > > > > > > > > >
> > > > > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade
> > > > > > > > > > 4236
> > > > > > > > > > 22
> > > > > > > > > > 6646
> > > > > > > > > > fde9
> > > > > > > > > > 9611c20fe3fcc6612e7a
> > > > > > > > >
> > > > > > > > > Hi Bian,
> > > > > > > > >
> > > > > > > > > it's still failing with this patch. I'll try to build it
> > > > > > > > > manually and provide more details.
> > > > > > > >
> > > > > > > > find /usr/lib/python* -name \*tdb\* =nothing=
> > > > > > > >
> > > > > > > > ldb and tdb workdirs are here:
> > > > > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.
> > > > > > > > bz2
> > > > > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.
> > > > > > > > bz2
> > > > > > > >
> > > > > > >
> > > > > > > Thank you very much.
> > > > > > > I confirmed that tdb.so is exists in
> > > > > > > ${D}/usr/lib/python2.7/site-packages
> > > > > > of libtdb.
> > > > > > >
> > > > > > > Would you helping me check whether does tdb.so exist in
> > > > > > > ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
> > > > > > > after building libtdb.
> > > > > > > # find
> > > > > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-6
> > > > > > > 4/us r/ lib/ python2.7/site-packages -name \*tdb\*
> > > > > >
> > > > > > that server is already buiding domething else and tmpfs is
> > > > > > gone, but in the archive I've sent you we can see that it's in
> > > > > > sysroot-destdir directory so I believe it was also in
> > > > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/
> > > > > > usr/
> > > > > > li
> > > > > > b/pyth
> > > > > > on2.7/site-packages
> > > > > >
> > > > > > jenkins@aruba:~/oe/world/shr-core$ find libtdb/ -name tdb.so
> > > > > > libtdb/1.3.0-r0/image/usr/lib/python2.7/site-packages/tdb.so
> > > > > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/.debug
> > > > > > /tdb
> > > > > > .s o
> > > > > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/tdb.so
> > > > > > libtdb/1.3.0-r0/packages-split/python-tdb/usr/lib/python2.7/si
> > > > > > te-p
> > > > > > ac
> > > > > > kages/
> > > > > > tdb.so
> > > > > > libtdb/1.3.0-r0/packages-split/python-tdb-dbg/usr/lib/python2.
> > > > > > 7/si
> > > > > > te
> > > > > > -packa
> > > > > > ges/.debug/tdb.so
> > > > > >
> libtdb/1.3.0-r0/sysroot-destdir/usr/lib/python2.7/site-packages/tdb.
> > > > > > so libtdb/1.3.0-r0/tdb-1.3.0/bin/python/tdb.so
> > > > > >
> > > > >
> > > > > Thanks for your time.
> > > > >
> > > > > I'm sorry for that, but would you mind to apply this patch which
> > > > > is based on master-next, and then build libldb again to catch
> > > > > more information
> > > > for me.
> > > > > https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0a
> > > > > bad5
> > > > > 78
> > > > > e74d9f7b8f1c3ff951
> > > >
> > > > | Checking for
> > > > getgrouplist                                                         :
> ok
> > > > | Checking for system tdb >=
> > > > 1.2.13                                                 : yes
> > > > | module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux8
> > > > | 6-64 /u sr/lib/python2.7/site-packages/tdb.so] exists in
> > > > | [/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/u
> > > > | sr/l
> > > > | ib
> > > > | /python2.7/site-packages] Cross
> > > > |
> > > > module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-
> > > > 64/u sr/l ib/python2.7/site-packages/tdb.so] can not be loaded.
> > > > | Close
> > > > module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-
> > > > 64/u sr/l ib/python2.7/site-packages/tdb.so]. Note: maybe some
> > > > exception was caught!
> > > > | ERROR: Python module pytdb of version 1.2.13 not found, and
> > > > | bundling disabled
> > > > | WARNING: exit code 1 from a shell command.
> > > > | ERROR: Function failed: do_configure (log file is located at
> > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux
> > > > | /lib
> > > > | ld
> > > > | b/1.1.17-r0/temp/log.do_configure.15453)
> > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > >
> > > > >
> > > > > Thanks
> > > > >  Bian
> > > > >
> > > > > > >
> > > > > > > Thanks
> > > > > > >  Bian
> > > > > > >
> > > > > > > > > > - samba
> > > > > > > > > >
> > > > > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/25430e
> > > > > > > > > > e92b
> > > > > > > > > > bb
> > > > > > > > > > 2820
> > > > > > > > > > 294c
> > > > > > > > > > b9ce239d9d4dccc492ea
> > > > > > > > > >
> > > > > > > > > > Thanks
> > > > > > > > > >  Bian
> > > > > > > > > >
> > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > From:
> > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedde
> > > > > > > > > > > d.or g] On Behalf Of Bian, Naimeng
> > > > > > > > > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > add new recipe
> > > > > > > > > > >
> > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > From:
> > > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.
> > > > > > > > > > > > or g] On Behalf Of Martin Jansa
> > > > > > > > > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > > > > > > > > To: openembedded-devel
> > > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > > add new recipe
> > > > > > > > > > > >
> > > > > > > > > > > > I don't have access to that build anymore (because
> > > > > > > > > > > > it's jenkins job using tmpfs for TMPDIR, so after
> > > > > > > > > > > > the build the TMPDIR is gone), but it's failing
> > > > > > > > > > > > only in
> > > > > > > > > > > > qemux86-64 builds, so I assume that it's finding
> > > > > > > > > > > > host tdb or python directories, because it's
> > > > > > > > > > > > running on
> > > > > > > > > > > > 12.04 Ubuntu
> > > > x86-64.
> > > > > > > > > > > >
> > > > > > > > > > > > Try to install tdb on your build host if it allows
> > > > > > > > > > > > you to reproduce the issue, otherwise I'll try to
> > > > > > > > > > > > reproduce it again in some
> > > > > > > > next jenkins build.
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > My host is CentOS6.5 x86-64, and although I
> > > > > > > > > > > installed tdb.so into my host, i still cannot reproduce
> it.
> > > > > > > > > > >
> > > > > > > > > > > And, I have exported
> > > > > > > > > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_
> > > > > > > > > > > DIR} in waf-samba.bbclasss which is inherited by
> > > > > > > > > > > libldb. IMO, it should find modules in PYTHONPATH
> > > > > > > > > > > firstly.
> > > > > > > > > > >
> > > > > > > > > > > Thanks
> > > > > > > > > > >  Bian
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > > > From:
> > > > > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.
> > > > > > > > > > > > > > org
> > > > > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.opene
> > > > > > > > > > > > > > mbed de d.or g] On Behalf Of Martin Jansa
> > > > > > > > > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > > > > add new recipe
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian
> > > > > > > > > > > > > > Naimeng
> > > wrote:
> > > > > > > > > > > > > > > libldb is required by samba4
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Signed-off-by: Bian Naimeng
> > > > > > > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > > > > > > ---
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > .../do-not-import-target-module-in-configure
> > > > > > > > > > > > > > > .pat
> > > > > > > > > > > > > > > ch
> > > > > > > > > > > > > > > |
> > > > > > > > > > > > > > > 32
> > > > > > > > > > > > > +++++++++++++++
> > > > > > > > > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> |
> > > > 45
> > > > > > > > > > > > > > ++++++++++++++++++++++
> > > > > > > > > > > > > > >  2 files changed, 77 insertions(+)  create
> > > > > > > > > > > > > > > mode
> > > > > > > > > > > > > > > 100644
> > > > > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not
> > > > > > > > > > > > > > > -imp
> > > > > > > > > > > > > > > or
> > > > > > > > > > > > > > > t-ta
> > > > > > > > > > > > > > > rget
> > > > > > > > > > > > > > > -modul
> > > > > > > > > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17
> > > > > > > > > > > > > > > .bb
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Fails to build in bitbake world:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > | Checking for system tdb >=
> > > > > > > > > > > > > >
> 1.2.13                                                 :
> > > > yes
> > > > > > > > > > > > > > | ERROR: Python module pytdb of version 1.2.13
> > > > > > > > > > > > > > | not found, and bundling disabled
> > > > > > > > > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > > > > > > > > | ERROR: Function failed: do_configure (log
> > > > > > > > > > > > > > | file is located at
> > > > > > > > > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/wo
> > > > > > > > > > > > > > | rk/c
> > > > > > > > > > > > > > | or
> > > > > > > > > > > > > > | e2-6
> > > > > > > > > > > > > > | 4-oe
> > > > > > > > > > > > > > | -linux
> > > > > > > > > > > > > > | /l
> > > > > > > > > > > > > > | ibld
> > > > > > > > > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > > > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure:
> > > > > > > > > > > > > > Failed
> > > > > > > > > > > > > > ERROR: Task 25505
> > > > > > > > > > > > > >
> > > > > > > > > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedd
> > > > > > > > > > > > > ed/m
> > > > > > > > > > > > > et
> > > > > > > > > > > > > a-oe
> > > > > > > > > > > > > /rec
> > > > > > > > > > > > > ipes-s
> > > > > > > > > > > > > up
> > > > > > > > > > > > > port
> > > > > > > > > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed
> > > > > > > > > > > > > > with exit code
> > > > > > '1'
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > tdb.so is provided by libtdb which is DEPEND-ed
> > > > > > > > > > > > > by libldb, I think it should be installed into
> > > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Because I could not reproduce it in my building,
> > > > > > > > > > > > > would you mind telling me whether does tdb.so
> > > > > > > > > > > > > exist in
> > > > > > > > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while
> > > > > > > > > > > > > this error was
> > > > > > caught.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thanks
> > > > > > > > > > > > >  Bian
> > > > > > > > > > > > >
> > > > > > > > > > > > > > > diff --git
> > > > > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-n
> > > > > > > > > > > > > > > ot-i
> > > > > > > > > > > > > > > mp
> > > > > > > > > > > > > > > ort-
> > > > > > > > > > > > > > > targ
> > > > > > > > > > > > > > > et-mod
> > > > > > > > > > > > > > > ul
> > > > > > > > > > > > > > > e-in
> > > > > > > > > > > > > > > -configure.patch
> > > > > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-n
> > > > > > > > > > > > > > > ot-i
> > > > > > > > > > > > > > > mp
> > > > > > > > > > > > > > > ort-
> > > > > > > > > > > > > > > targ
> > > > > > > > > > > > > > > et-mod
> > > > > > > > > > > > > > > ul
> > > > > > > > > > > > > > > e-in
> > > > > > > > > > > > > > > -configure.patch new file mode 100644 index
> > > > > > > > > > > > > > > 0000000..b4d522a
> > > > > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/
> > > > > > > > > > > > > > > +++ do-n
> > > > > > > > > > > > > > > +++ ot
> > > > > > > > > > > > > > > +++ -imp
> > > > > > > > > > > > > > > +++ ort-
> > > > > > > > > > > > > > > +++ target
> > > > > > > > > > > > > > > +++ -m
> > > > > > > > > > > > > > > +++ odul
> > > > > > > > > > > > > > > +++ e-in-configure.patch
> > > > > > > > > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > > > > > > > > +Some module can be loaded while cross
> > > > > > > > > > > > > > > +compile, we jst check whether the module
> > > > > > > > > > > > > > > +exist
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +Signed-off-by: Bian Naimeng
> > > > > > > > > > > > > > > +<biannm@cn.fujitsu.com>
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +---
> > > > > > > > > > > > > > > +ldb-1.1.17.orig/buildtools/wafsamba/samba_b
> > > > > > > > > > > > > > > +undl
> > > > > > > > > > > > > > > +ed
> > > > > > > > > > > > > > > +.py
> > > > > > > > > > > 2014-05-05
> > > > > > > > > > > > > > 17:00:41.000000000 +0900
> > > > > > > > > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
> > > > > > > > > > > > > > > ++++ py
> > > > > > > > > > > 2015-06-15
> > > > > > > > > > > > > > 10:09:50.210000217 +0900
> > > > > > > > > > > > > > > +@@ -1,7 +1,7 @@  # functions to support
> > > > > > > > > > > > > > > +bundled libraries
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > + from Configure import conf -import sys,
> > > > > > > > > > > > > > > + Logs
> > > > > > > > > > > > > > > ++import sys, Logs, imp
> > > > > > > > > > > > > > > + from samba_utils import *
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > + def PRIVATE_NAME(bld, name,
> > > > > > > > > > > > > > > + private_extension,
> > > > > > private_library):
> > > > > > > > > > > > > > > +@@ -222,6 +222,16 @@ def
> > > > > > > > > > > > > > > +CHECK_BUNDLED_SYSTEM_PYTHON(conf,
> > > > > > li
> > > > > > > > > > > > > > > +         m = __import__(modulename)
> > > > > > > > > > > > > > > +     except ImportError:
> > > > > > > > > > > > > > > +         found = False
> > > > > > > > > > > > > > > ++
> > > > > > > > > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > > > > > > > > ++            # Some modules maybe can not
> > > > > > > > > > > > > > > ++ be imported while cross
> > > > > > > > > > > > > compile
> > > > > > > > > > > > > > > ++            # We just check whether the module
> exist
> > > > > > > > > > > > > > > ++            stuff =
> > > > > > > > > > > > > > > ++ imp.find_module(modulename,
> > > > > > > > > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > > > > > > > > ++            if stuff != None:
> > > > > > > > > > > > > > > ++                Logs.warn('Cross
> > > > > > > > > > > > > > > ++ module[%s] has been found, but can
> > > > > > > > > > > > > not
> > > > > > > > > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > > > > > > > > ++                found = True
> > > > > > > > > > > > > > > +     else:
> > > > > > > > > > > > > > > +         try:
> > > > > > > > > > > > > > > +             version = m.__version__
> > > > > > > > > > > > > > > diff --git
> > > > > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.
> > > > > > > > > > > > > > > 17.b
> > > > > > > > > > > > > > > b
> > > > > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.
> > > > > > > > > > > > > > > 17.b b new file mode 100644 index
> > > > > > > > > > > > > > > 0000000..17607f7
> > > > > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.
> > > > > > > > > > > > > > > +++ 17
> > > > > > > > > > > > > > > +++ .bb
> > > > > > > > > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > > > > > > > > +SUMMARY = "Hierarchical, reference counted
> > > > > > > > > > > > > > > +memory pool system with
> > > > > > > > > > > > > > destructors"
> > > > > > > > > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > > > > > > > > +SECTION = "libs"
> > > > > > > > > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +SRC_URI =
> > > > > > > > > > > > > > > +"http://samba.org/ftp/ldb/ldb-${PV}.tar.gz
> > > > > > > > > > > > > > > +\
> > > > > > > > > > > > > > > +
> > > > > > > > file://do-not-import-target-module-in-configure.patch"
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > > > > > > > > >
> > > > > > > > > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.
> > > > > > > > > > > > > 0;md
> > > > > > > > > > > > > 5=bf
> > > > > > > > > > > > > ccfe95
> > > > > > > > > > > > > 22
> > > > > > > > > > > > > 69ff
> > > > > > > > > > > > > > f2b407dd11f2f3083b \
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > >
> > > > > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/LG
> > > > > > > > > > > > > PL-2
> > > > > > > > > > > > > .1
> > > > > > > > > > > > > ;md5
> > > > > > > > > > > > > =1a6
> > > > > > > > > > > > > d268fd
> > > > > > > > > > > > > 21
> > > > > > > > > > > > > 8675
> > > > > > > > > > > > > > ffea8be556788b780 \
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > >
> > > > > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.
> > > > > > > > > > > > > 0;
> > > > > > > > > > > > > md5=
> > > > > > > > > > > > > c79f
> > > > > > > > > > > > > f39f19
> > > > > > > > > > > > > df
> > > > > > > > > > > > > ec6d
> > > > > > > > > > > > > > 293b95dea7b07891"
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > > > > > > > > +SRC_URI[sha256sum] =
> > > > > > > > > > > > > >
> > > > > > > >
> "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +inherit waf-samba
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > > > > > > > > +                 --disable-rpath-install \
> > > > > > > > > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +--builtin-libraries=replace \
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +--with-modulesdir=${libdir}/ldb/modules
> > > > > > \
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > + --with-privatelibdir=${libdir}/ldb \
> > > > > > > > > > > > > > > +
> > > > > > --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > > > > > > > > +                "
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > > > > > > > > +
> ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > +FILES_pyldb =
> > > > > > > > > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site
> > > > > > > > > > > > > > > +-pac
> > > > > > > > > > > > > > > +ka
> > > > > > > > > > > > > > > +ges/
> > > > > > > > > > > > > > > +*
> > > > > > > > > > > > \
> > > > > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17
> \
> > > > > > > > > > > > > > > +              "
> > > > > > > > > > > > > > > +FILES_pyldb-dbg =
> > > > > > > > > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-pa
> > > > > > > > > > > > > > ckag
> > > > > > > > > > > > > > es
> > > > > > > > > > > > > > /.de
> > > > > > > > > > > > > > bug
> > > > > > > > > > > > > > \
> > > > > > > > > > > > > > > +
> > > > ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > 1.9.1
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > ____________________________________________
> > > > > > > > > > > > > > > ___ Openembedded-devel mailing list
> > > > > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > > > http://lists.openembedded.org/mailman/listin
> > > > > > > > > > > > > > > fo/o
> > > > > > > > > > > > > > > pe
> > > > > > > > > > > > > > > nemb
> > > > > > > > > > > > > > > edde
> > > > > > > > > > > > > > > d-deve
> > > > > > > > > > > > > > > l
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > > > > > > --
> > > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/o
> > > > > > > > > > > > > pene
> > > > > > > > > > > > > mb
> > > > > > > > > > > > > edde
> > > > > > > > > > > > > d-de
> > > > > > > > > > > > > vel
> > > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/ope
> > > > > > > > > > > > nemb
> > > > > > > > > > > > ed
> > > > > > > > > > > > ded-
> > > > > > > > > > > > deve
> > > > > > > > > > > > l
> > > > > > > > > > > --
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/opene
> > > > > > > > > > > mbed
> > > > > > > > > > > de
> > > > > > > > > > > d-de
> > > > > > > > > > > vel
> > > > > > > > > > --
> > > > > > > > > > _______________________________________________
> > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openemb
> > > > > > > > > > edde
> > > > > > > > > > d-
> > > > > > > > > > deve
> > > > > > > > > > l
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > --
> > > > > > > _______________________________________________
> > > > > > > Openembedded-devel mailing list
> > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-
> > > > > > > deve
> > > > > > > l
> > > > > >
> > > > > > --
> > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > --
> > > > > _______________________________________________
> > > > > Openembedded-devel mailing list
> > > > > Openembedded-devel@lists.openembedded.org
> > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > l
> > > >
> > > > --
> > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe
  2015-08-06  6:57                               ` Bian, Naimeng
@ 2015-08-18 10:41                                 ` Martin Jansa
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Jansa @ 2015-08-18 10:41 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 31313 bytes --]

On Thu, Aug 06, 2015 at 06:57:08AM +0000, Bian, Naimeng wrote:
> > -----Original Message-----
> > From: openembedded-devel-bounces@lists.openembedded.org
> > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> > Martin Jansa
> > Sent: Monday, August 03, 2015 5:40 PM
> > To: openembedded-devel@lists.openembedded.org
> > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > 
> > On Mon, Aug 03, 2015 at 08:58:04AM +0000, Bian, Naimeng wrote:
> > > Hi Martin
> > >
> > > Thanks a lot for your help.
> > > The patchset has been removed from master-next, does it mean I should re-send
> > it again.
> > > If not, would you telling me what should I do at the next-step.
> > 
> > It was still failing with updated libldb and samba, so I've moved it from
> > master-next to contrib/jansa/master-next-unresolved-review and I'm waiting
> > for updated version.
> > 
> 
> I have pushed the updated patch to my git-hub tree.
> Because I just updated the patch of libldb and samba, so please rebase them from there.
> 
> - libldb
>   https://github.com/bendaaron/meta-oe-dev/commit/972123f0722033ddc7d1c8feb2eb0479ea774edb
> 
> - samba
>   https://github.com/bendaaron/meta-oe-dev/commit/c14b4b8ef8827d305bdd680cb0e8a00e08b8fba0
> 
> If you think that it's better to re-send patcheset to this ML, I will do it.

I've taken all 7 commits before c14b4b8ef8827d305bdd680cb0e8a00e08b8fba0
to master-next, lets see if it helps.

Please work with Koen to compare your implementations and find good
version which works for all.

http://lists.openembedded.org/pipermail/openembedded-devel/2015-August/102624.html

> 
> Thanks
>  Bian
> 
> > > Thanks
> > >  Bian
> > >
> > > > -----Original Message-----
> > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> > > > Of Bian, Naimeng
> > > > Sent: Friday, July 17, 2015 3:40 PM
> > > > To: openembedded-devel@lists.openembedded.org
> > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > >
> > > > Thanks for your help.
> > > >
> > > > Please rebase the patch of libldb and samba from here.
> > > > - libldb
> > > >
> > > > https://github.com/bendaaron/meta-oe-dev/commit/f7a7d49164c8f5a4e8b1
> > > > 2ccdc9
> > > > 2e08d73952a97c
> > > >
> > > > - samba
> > > >
> > > > https://github.com/bendaaron/meta-oe-dev/commit/db03404a4b6fed975345
> > > > 7055fe
> > > > c88b523ceeda3c
> > > >
> > > > Thanks
> > > >  Bian
> > > >
> > > > > -----Original Message-----
> > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > Behalf Of Martin Jansa
> > > > > Sent: Tuesday, July 14, 2015 12:17 AM
> > > > > To: openembedded-devel@lists.openembedded.org
> > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe
> > > > >
> > > > > On Fri, Jul 10, 2015 at 03:49:02AM +0000, Bian, Naimeng wrote:
> > > > > > > -----Original Message-----
> > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> > > > > > > Behalf Of Martin Jansa
> > > > > > > Sent: Thursday, July 09, 2015 11:54 PM
> > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > recipe
> > > > > > >
> > > > > > > On Thu, Jul 09, 2015 at 12:30:42AM +0000, Bian, Naimeng wrote:
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.org]
> > > > > > > > > On Behalf Of Martin Jansa
> > > > > > > > > Sent: Wednesday, July 08, 2015 7:59 PM
> > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new
> > > > > > > > > recipe
> > > > > > > > >
> > > > > > > > > On Wed, Jul 08, 2015 at 12:32:37PM +0200, Martin Jansa wrote:
> > > > > > > > > > On Thu, Jul 02, 2015 at 09:01:14AM +0000, Bian, Naimeng wrote:
> > > > > > > > > > > Hi Martin,
> > > > > > > > > > >
> > > > > > > > > > > I think I have fixed them and pushed them to github,
> > > > > > > > > > > please cherry-pick
> > > > > > > > > them.
> > > > > > > > > > >
> > > > > > > > > > > - libldb
> > > > > > > > > > >
> > > > > > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/c6cade
> > > > > > > > > > > 4236
> > > > > > > > > > > 22
> > > > > > > > > > > 6646
> > > > > > > > > > > fde9
> > > > > > > > > > > 9611c20fe3fcc6612e7a
> > > > > > > > > >
> > > > > > > > > > Hi Bian,
> > > > > > > > > >
> > > > > > > > > > it's still failing with this patch. I'll try to build it
> > > > > > > > > > manually and provide more details.
> > > > > > > > >
> > > > > > > > > find /usr/lib/python* -name \*tdb\* =nothing=
> > > > > > > > >
> > > > > > > > > ldb and tdb workdirs are here:
> > > > > > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libldb.tar.
> > > > > > > > > bz2
> > > > > > > > > http://logs.nslu2-linux.org/buildlogs/oe/world/libtdb.tar.
> > > > > > > > > bz2
> > > > > > > > >
> > > > > > > >
> > > > > > > > Thank you very much.
> > > > > > > > I confirmed that tdb.so is exists in
> > > > > > > > ${D}/usr/lib/python2.7/site-packages
> > > > > > > of libtdb.
> > > > > > > >
> > > > > > > > Would you helping me check whether does tdb.so exist in
> > > > > > > > ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}
> > > > > > > > after building libtdb.
> > > > > > > > # find
> > > > > > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-6
> > > > > > > > 4/us r/ lib/ python2.7/site-packages -name \*tdb\*
> > > > > > >
> > > > > > > that server is already buiding domething else and tmpfs is
> > > > > > > gone, but in the archive I've sent you we can see that it's in
> > > > > > > sysroot-destdir directory so I believe it was also in
> > > > > > > /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/
> > > > > > > usr/
> > > > > > > li
> > > > > > > b/pyth
> > > > > > > on2.7/site-packages
> > > > > > >
> > > > > > > jenkins@aruba:~/oe/world/shr-core$ find libtdb/ -name tdb.so
> > > > > > > libtdb/1.3.0-r0/image/usr/lib/python2.7/site-packages/tdb.so
> > > > > > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/.debug
> > > > > > > /tdb
> > > > > > > .s o
> > > > > > > libtdb/1.3.0-r0/package/usr/lib/python2.7/site-packages/tdb.so
> > > > > > > libtdb/1.3.0-r0/packages-split/python-tdb/usr/lib/python2.7/si
> > > > > > > te-p
> > > > > > > ac
> > > > > > > kages/
> > > > > > > tdb.so
> > > > > > > libtdb/1.3.0-r0/packages-split/python-tdb-dbg/usr/lib/python2.
> > > > > > > 7/si
> > > > > > > te
> > > > > > > -packa
> > > > > > > ges/.debug/tdb.so
> > > > > > >
> > libtdb/1.3.0-r0/sysroot-destdir/usr/lib/python2.7/site-packages/tdb.
> > > > > > > so libtdb/1.3.0-r0/tdb-1.3.0/bin/python/tdb.so
> > > > > > >
> > > > > >
> > > > > > Thanks for your time.
> > > > > >
> > > > > > I'm sorry for that, but would you mind to apply this patch which
> > > > > > is based on master-next, and then build libldb again to catch
> > > > > > more information
> > > > > for me.
> > > > > > https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0a
> > > > > > bad5
> > > > > > 78
> > > > > > e74d9f7b8f1c3ff951
> > > > >
> > > > > | Checking for
> > > > > getgrouplist                                                         :
> > ok
> > > > > | Checking for system tdb >=
> > > > > 1.2.13                                                 : yes
> > > > > | module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux8
> > > > > | 6-64 /u sr/lib/python2.7/site-packages/tdb.so] exists in
> > > > > | [/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-64/u
> > > > > | sr/l
> > > > > | ib
> > > > > | /python2.7/site-packages] Cross
> > > > > |
> > > > > module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-
> > > > > 64/u sr/l ib/python2.7/site-packages/tdb.so] can not be loaded.
> > > > > | Close
> > > > > module[/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86-
> > > > > 64/u sr/l ib/python2.7/site-packages/tdb.so]. Note: maybe some
> > > > > exception was caught!
> > > > > | ERROR: Python module pytdb of version 1.2.13 not found, and
> > > > > | bundling disabled
> > > > > | WARNING: exit code 1 from a shell command.
> > > > > | ERROR: Function failed: do_configure (log file is located at
> > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux
> > > > > | /lib
> > > > > | ld
> > > > > | b/1.1.17-r0/temp/log.do_configure.15453)
> > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure: Failed
> > > > >
> > > > > >
> > > > > > Thanks
> > > > > >  Bian
> > > > > >
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > >  Bian
> > > > > > > >
> > > > > > > > > > > - samba
> > > > > > > > > > >
> > > > > > > > > > > https://github.com/bendaaron/meta-oe-dev/commit/25430e
> > > > > > > > > > > e92b
> > > > > > > > > > > bb
> > > > > > > > > > > 2820
> > > > > > > > > > > 294c
> > > > > > > > > > > b9ce239d9d4dccc492ea
> > > > > > > > > > >
> > > > > > > > > > > Thanks
> > > > > > > > > > >  Bian
> > > > > > > > > > >
> > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > From:
> > > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedde
> > > > > > > > > > > > d.or g] On Behalf Of Bian, Naimeng
> > > > > > > > > > > > Sent: Wednesday, June 24, 2015 3:05 PM
> > > > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > > add new recipe
> > > > > > > > > > > >
> > > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > > From:
> > > > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.org
> > > > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.openembedded.
> > > > > > > > > > > > > or g] On Behalf Of Martin Jansa
> > > > > > > > > > > > > Sent: Tuesday, June 23, 2015 4:05 PM
> > > > > > > > > > > > > To: openembedded-devel
> > > > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > > > add new recipe
> > > > > > > > > > > > >
> > > > > > > > > > > > > I don't have access to that build anymore (because
> > > > > > > > > > > > > it's jenkins job using tmpfs for TMPDIR, so after
> > > > > > > > > > > > > the build the TMPDIR is gone), but it's failing
> > > > > > > > > > > > > only in
> > > > > > > > > > > > > qemux86-64 builds, so I assume that it's finding
> > > > > > > > > > > > > host tdb or python directories, because it's
> > > > > > > > > > > > > running on
> > > > > > > > > > > > > 12.04 Ubuntu
> > > > > x86-64.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Try to install tdb on your build host if it allows
> > > > > > > > > > > > > you to reproduce the issue, otherwise I'll try to
> > > > > > > > > > > > > reproduce it again in some
> > > > > > > > > next jenkins build.
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > My host is CentOS6.5 x86-64, and although I
> > > > > > > > > > > > installed tdb.so into my host, i still cannot reproduce
> > it.
> > > > > > > > > > > >
> > > > > > > > > > > > And, I have exported
> > > > > > > > > > > > PYTHONPATH=${STAGING_DIR_HOST}${PYTHON_SITEPACKAGES_
> > > > > > > > > > > > DIR} in waf-samba.bbclasss which is inherited by
> > > > > > > > > > > > libldb. IMO, it should find modules in PYTHONPATH
> > > > > > > > > > > > firstly.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks
> > > > > > > > > > > >  Bian
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > > On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
> > > > > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > > > > wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > > > > From:
> > > > > > > > > > > > > > > openembedded-devel-bounces@lists.openembedded.
> > > > > > > > > > > > > > > org
> > > > > > > > > > > > > > > [mailto:openembedded-devel-bounces@lists.opene
> > > > > > > > > > > > > > > mbed de d.or g] On Behalf Of Martin Jansa
> > > > > > > > > > > > > > > Sent: Friday, June 19, 2015 11:57 PM
> > > > > > > > > > > > > > > To: openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > > > Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
> > > > > > > > > > > > > > > add new recipe
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > On Wed, Jun 17, 2015 at 03:49:09PM +0800, Bian
> > > > > > > > > > > > > > > Naimeng
> > > > wrote:
> > > > > > > > > > > > > > > > libldb is required by samba4
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > Signed-off-by: Bian Naimeng
> > > > > > > > > > > > > > > > <biannm@cn.fujitsu.com>
> > > > > > > > > > > > > > > > ---
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > .../do-not-import-target-module-in-configure
> > > > > > > > > > > > > > > > .pat
> > > > > > > > > > > > > > > > ch
> > > > > > > > > > > > > > > > |
> > > > > > > > > > > > > > > > 32
> > > > > > > > > > > > > > +++++++++++++++
> > > > > > > > > > > > > > > >  meta-oe/recipes-support/libldb/libldb_1.1.17.bb
> > |
> > > > > 45
> > > > > > > > > > > > > > > ++++++++++++++++++++++
> > > > > > > > > > > > > > > >  2 files changed, 77 insertions(+)  create
> > > > > > > > > > > > > > > > mode
> > > > > > > > > > > > > > > > 100644
> > > > > > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb/do-not
> > > > > > > > > > > > > > > > -imp
> > > > > > > > > > > > > > > > or
> > > > > > > > > > > > > > > > t-ta
> > > > > > > > > > > > > > > > rget
> > > > > > > > > > > > > > > > -modul
> > > > > > > > > > > > > > > > e- in-c onfigure.patch  create mode 100644
> > > > > > > > > > > > > > > > meta-oe/recipes-support/libldb/libldb_1.1.17
> > > > > > > > > > > > > > > > .bb
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Fails to build in bitbake world:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > | Checking for system tdb >=
> > > > > > > > > > > > > > >
> > 1.2.13                                                 :
> > > > > yes
> > > > > > > > > > > > > > > | ERROR: Python module pytdb of version 1.2.13
> > > > > > > > > > > > > > > | not found, and bundling disabled
> > > > > > > > > > > > > > > | WARNING: exit code 1 from a shell command.
> > > > > > > > > > > > > > > | ERROR: Function failed: do_configure (log
> > > > > > > > > > > > > > > | file is located at
> > > > > > > > > > > > > > > | /home/jenkins/oe/world/shr-core/tmp-glibc/wo
> > > > > > > > > > > > > > > | rk/c
> > > > > > > > > > > > > > > | or
> > > > > > > > > > > > > > > | e2-6
> > > > > > > > > > > > > > > | 4-oe
> > > > > > > > > > > > > > > | -linux
> > > > > > > > > > > > > > > | /l
> > > > > > > > > > > > > > > | ibld
> > > > > > > > > > > > > > > | b/1.1.17-r0/temp/log.do_configure.22697)
> > > > > > > > > > > > > > > NOTE: recipe libldb-1.1.17-r0: task do_configure:
> > > > > > > > > > > > > > > Failed
> > > > > > > > > > > > > > > ERROR: Task 25505
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > (/home/jenkins/oe/world/shr-core/meta-openembedd
> > > > > > > > > > > > > > ed/m
> > > > > > > > > > > > > > et
> > > > > > > > > > > > > > a-oe
> > > > > > > > > > > > > > /rec
> > > > > > > > > > > > > > ipes-s
> > > > > > > > > > > > > > up
> > > > > > > > > > > > > > port
> > > > > > > > > > > > > > > /libldb/libldb_1.1.17.bb, do_configure) failed
> > > > > > > > > > > > > > > with exit code
> > > > > > > '1'
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > tdb.so is provided by libtdb which is DEPEND-ed
> > > > > > > > > > > > > > by libldb, I think it should be installed into
> > > > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Because I could not reproduce it in my building,
> > > > > > > > > > > > > > would you mind telling me whether does tdb.so
> > > > > > > > > > > > > > exist in
> > > > > > > > > > > > > > STAGING_DIR_HOST/PYTHON_SITEPACKAGES_DIR/ while
> > > > > > > > > > > > > > this error was
> > > > > > > caught.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Thanks
> > > > > > > > > > > > > >  Bian
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > diff --git
> > > > > > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb/do-n
> > > > > > > > > > > > > > > > ot-i
> > > > > > > > > > > > > > > > mp
> > > > > > > > > > > > > > > > ort-
> > > > > > > > > > > > > > > > targ
> > > > > > > > > > > > > > > > et-mod
> > > > > > > > > > > > > > > > ul
> > > > > > > > > > > > > > > > e-in
> > > > > > > > > > > > > > > > -configure.patch
> > > > > > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb/do-n
> > > > > > > > > > > > > > > > ot-i
> > > > > > > > > > > > > > > > mp
> > > > > > > > > > > > > > > > ort-
> > > > > > > > > > > > > > > > targ
> > > > > > > > > > > > > > > > et-mod
> > > > > > > > > > > > > > > > ul
> > > > > > > > > > > > > > > > e-in
> > > > > > > > > > > > > > > > -configure.patch new file mode 100644 index
> > > > > > > > > > > > > > > > 0000000..b4d522a
> > > > > > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb/
> > > > > > > > > > > > > > > > +++ do-n
> > > > > > > > > > > > > > > > +++ ot
> > > > > > > > > > > > > > > > +++ -imp
> > > > > > > > > > > > > > > > +++ ort-
> > > > > > > > > > > > > > > > +++ target
> > > > > > > > > > > > > > > > +++ -m
> > > > > > > > > > > > > > > > +++ odul
> > > > > > > > > > > > > > > > +++ e-in-configure.patch
> > > > > > > > > > > > > > > > @@ -0,0 +1,32 @@
> > > > > > > > > > > > > > > > +Some module can be loaded while cross
> > > > > > > > > > > > > > > > +compile, we jst check whether the module
> > > > > > > > > > > > > > > > +exist
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +Signed-off-by: Bian Naimeng
> > > > > > > > > > > > > > > > +<biannm@cn.fujitsu.com>
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +---
> > > > > > > > > > > > > > > > +ldb-1.1.17.orig/buildtools/wafsamba/samba_b
> > > > > > > > > > > > > > > > +undl
> > > > > > > > > > > > > > > > +ed
> > > > > > > > > > > > > > > > +.py
> > > > > > > > > > > > 2014-05-05
> > > > > > > > > > > > > > > 17:00:41.000000000 +0900
> > > > > > > > > > > > > > > > ++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
> > > > > > > > > > > > > > > > ++++ py
> > > > > > > > > > > > 2015-06-15
> > > > > > > > > > > > > > > 10:09:50.210000217 +0900
> > > > > > > > > > > > > > > > +@@ -1,7 +1,7 @@  # functions to support
> > > > > > > > > > > > > > > > +bundled libraries
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > + from Configure import conf -import sys,
> > > > > > > > > > > > > > > > + Logs
> > > > > > > > > > > > > > > > ++import sys, Logs, imp
> > > > > > > > > > > > > > > > + from samba_utils import *
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > + def PRIVATE_NAME(bld, name,
> > > > > > > > > > > > > > > > + private_extension,
> > > > > > > private_library):
> > > > > > > > > > > > > > > > +@@ -222,6 +222,16 @@ def
> > > > > > > > > > > > > > > > +CHECK_BUNDLED_SYSTEM_PYTHON(conf,
> > > > > > > li
> > > > > > > > > > > > > > > > +         m = __import__(modulename)
> > > > > > > > > > > > > > > > +     except ImportError:
> > > > > > > > > > > > > > > > +         found = False
> > > > > > > > > > > > > > > > ++
> > > > > > > > > > > > > > > > ++        build_arch = os.environ["BUILD_ARCH"]
> > > > > > > > > > > > > > > > ++        host_arch = os.environ["HOST_ARCH"]
> > > > > > > > > > > > > > > > ++        if build_arch != host_arch:
> > > > > > > > > > > > > > > > ++            # Some modules maybe can not
> > > > > > > > > > > > > > > > ++ be imported while cross
> > > > > > > > > > > > > > compile
> > > > > > > > > > > > > > > > ++            # We just check whether the module
> > exist
> > > > > > > > > > > > > > > > ++            stuff =
> > > > > > > > > > > > > > > > ++ imp.find_module(modulename,
> > > > > > > > > > > > > > > [os.environ["PYTHONPATH"]])
> > > > > > > > > > > > > > > > ++            if stuff != None:
> > > > > > > > > > > > > > > > ++                Logs.warn('Cross
> > > > > > > > > > > > > > > > ++ module[%s] has been found, but can
> > > > > > > > > > > > > > not
> > > > > > > > > > > > > > > be loaded.' % (stuff[1]))
> > > > > > > > > > > > > > > > ++                found = True
> > > > > > > > > > > > > > > > +     else:
> > > > > > > > > > > > > > > > +         try:
> > > > > > > > > > > > > > > > +             version = m.__version__
> > > > > > > > > > > > > > > > diff --git
> > > > > > > > > > > > > > > > a/meta-oe/recipes-support/libldb/libldb_1.1.
> > > > > > > > > > > > > > > > 17.b
> > > > > > > > > > > > > > > > b
> > > > > > > > > > > > > > > > b/meta-oe/recipes-support/libldb/libldb_1.1.
> > > > > > > > > > > > > > > > 17.b b new file mode 100644 index
> > > > > > > > > > > > > > > > 0000000..17607f7
> > > > > > > > > > > > > > > > --- /dev/null
> > > > > > > > > > > > > > > > +++ b/meta-oe/recipes-support/libldb/libldb_1.1.
> > > > > > > > > > > > > > > > +++ 17
> > > > > > > > > > > > > > > > +++ .bb
> > > > > > > > > > > > > > > > @@ -0,0 +1,45 @@
> > > > > > > > > > > > > > > > +SUMMARY = "Hierarchical, reference counted
> > > > > > > > > > > > > > > > +memory pool system with
> > > > > > > > > > > > > > > destructors"
> > > > > > > > > > > > > > > > +HOMEPAGE = "http://ldb.samba.org"
> > > > > > > > > > > > > > > > +SECTION = "libs"
> > > > > > > > > > > > > > > > +LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +DEPENDS += "libtdb talloc libtevent libtdb"
> > > > > > > > > > > > > > > > +RDEPENDS_${PN} += "libtevent popt libtalloc"
> > > > > > > > > > > > > > > > +RDEPENDS_pyldb += "python libtdb libtalloc"
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +SRC_URI =
> > > > > > > > > > > > > > > > +"http://samba.org/ftp/ldb/ldb-${PV}.tar.gz
> > > > > > > > > > > > > > > > +\
> > > > > > > > > > > > > > > > +
> > > > > > > > > file://do-not-import-target-module-in-configure.patch"
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +LIC_FILES_CHKSUM =
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > "file://${COREBASE}/meta/files/common-licenses/LGPL-3.
> > > > > > > > > > > > > > 0;md
> > > > > > > > > > > > > > 5=bf
> > > > > > > > > > > > > > ccfe95
> > > > > > > > > > > > > > 22
> > > > > > > > > > > > > > 69ff
> > > > > > > > > > > > > > > f2b407dd11f2f3083b \
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/LG
> > > > > > > > > > > > > > PL-2
> > > > > > > > > > > > > > .1
> > > > > > > > > > > > > > ;md5
> > > > > > > > > > > > > > =1a6
> > > > > > > > > > > > > > d268fd
> > > > > > > > > > > > > > 21
> > > > > > > > > > > > > > 8675
> > > > > > > > > > > > > > > ffea8be556788b780 \
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > file://${COREBASE}/meta/files/common-licenses/GPL-3.
> > > > > > > > > > > > > > 0;
> > > > > > > > > > > > > > md5=
> > > > > > > > > > > > > > c79f
> > > > > > > > > > > > > > f39f19
> > > > > > > > > > > > > > df
> > > > > > > > > > > > > > ec6d
> > > > > > > > > > > > > > > 293b95dea7b07891"
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
> > > > > > > > > > > > > > > > +SRC_URI[sha256sum] =
> > > > > > > > > > > > > > >
> > > > > > > > >
> > "b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +inherit waf-samba
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +S = "${WORKDIR}/ldb-${PV}"
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +EXTRA_OECONF += "--disable-rpath \
> > > > > > > > > > > > > > > > +                 --disable-rpath-install \
> > > > > > > > > > > > > > > > +                 --bundled-libraries=NONE \
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +--builtin-libraries=replace \
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +--with-modulesdir=${libdir}/ldb/modules
> > > > > > > \
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > + --with-privatelibdir=${libdir}/ldb \
> > > > > > > > > > > > > > > > +
> > > > > > > --with-libiconv=${STAGING_DIR_HOST}${prefix}\
> > > > > > > > > > > > > > > > +                "
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +PACKAGES += "pyldb pyldb-dbg pyldb-dev"
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +FILES_${PN} += "${libdir}/ldb/*"
> > > > > > > > > > > > > > > > +FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
> > > > > > > > > > > > > > > > +
> > ${libdir}/ldb/modules/ldb/.debug/*"
> > > > > > > > > > > > > > > > +
> > > > > > > > > > > > > > > > +FILES_pyldb =
> > > > > > > > > > > > > > > > +"${libdir}/python${PYTHON_BASEVERSION}/site
> > > > > > > > > > > > > > > > +-pac
> > > > > > > > > > > > > > > > +ka
> > > > > > > > > > > > > > > > +ges/
> > > > > > > > > > > > > > > > +*
> > > > > > > > > > > > > \
> > > > > > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1 \
> > > > > > > > > > > > > > > > +               ${libdir}/libpyldb-util.so.1.1.17
> > \
> > > > > > > > > > > > > > > > +              "
> > > > > > > > > > > > > > > > +FILES_pyldb-dbg =
> > > > > > > > > > > > > > > "${libdir}/python${PYTHON_BASEVERSION}/site-pa
> > > > > > > > > > > > > > > ckag
> > > > > > > > > > > > > > > es
> > > > > > > > > > > > > > > /.de
> > > > > > > > > > > > > > > bug
> > > > > > > > > > > > > > > \
> > > > > > > > > > > > > > > > +
> > > > > ${libdir}/.debug/libpyldb-util.so.1.1.17"
> > > > > > > > > > > > > > > > +FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
> > > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > > 1.9.1
> > > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > > ____________________________________________
> > > > > > > > > > > > > > > > ___ Openembedded-devel mailing list
> > > > > > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > > > > http://lists.openembedded.org/mailman/listin
> > > > > > > > > > > > > > > > fo/o
> > > > > > > > > > > > > > > > pe
> > > > > > > > > > > > > > > > nemb
> > > > > > > > > > > > > > > > edde
> > > > > > > > > > > > > > > > d-deve
> > > > > > > > > > > > > > > > l
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/o
> > > > > > > > > > > > > > pene
> > > > > > > > > > > > > > mb
> > > > > > > > > > > > > > edde
> > > > > > > > > > > > > > d-de
> > > > > > > > > > > > > > vel
> > > > > > > > > > > > > >
> > > > > > > > > > > > > --
> > > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/ope
> > > > > > > > > > > > > nemb
> > > > > > > > > > > > > ed
> > > > > > > > > > > > > ded-
> > > > > > > > > > > > > deve
> > > > > > > > > > > > > l
> > > > > > > > > > > > --
> > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/opene
> > > > > > > > > > > > mbed
> > > > > > > > > > > > de
> > > > > > > > > > > > d-de
> > > > > > > > > > > > vel
> > > > > > > > > > > --
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > Openembedded-devel mailing list
> > > > > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > > > > http://lists.openembedded.org/mailman/listinfo/openemb
> > > > > > > > > > > edde
> > > > > > > > > > > d-
> > > > > > > > > > > deve
> > > > > > > > > > > l
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > > > --
> > > > > > > > _______________________________________________
> > > > > > > > Openembedded-devel mailing list
> > > > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-
> > > > > > > > deve
> > > > > > > > l
> > > > > > >
> > > > > > > --
> > > > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > > > --
> > > > > > _______________________________________________
> > > > > > Openembedded-devel mailing list
> > > > > > Openembedded-devel@lists.openembedded.org
> > > > > > http://lists.openembedded.org/mailman/listinfo/openembedded-deve
> > > > > > l
> > > > >
> > > > > --
> > > > > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> > > > --
> > > > _______________________________________________
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > 
> > --
> > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2015-08-18 10:41 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-17  7:49 [meta-oe][PATCH v2 0/7] add samba4 and required recipe Bian Naimeng
2015-06-17  7:49 ` [meta-oe][PATCH v2 1/7] waf-samba: add new class Bian Naimeng
2015-06-17  7:49 ` [meta-oe][PATCH v2 2/7] ctdb: add new recipe Bian Naimeng
2015-06-17  7:49 ` [meta-oe][PATCH v2 3/7] libldb: " Bian Naimeng
2015-06-19 15:56   ` Martin Jansa
2015-06-23  5:47     ` Bian, Naimeng
2015-06-23  8:05       ` Martin Jansa
2015-06-24  7:04         ` Bian, Naimeng
2015-07-02  9:01           ` Bian, Naimeng
2015-07-08 10:32             ` Martin Jansa
2015-07-08 11:59               ` Martin Jansa
2015-07-09  0:30                 ` Bian, Naimeng
2015-07-09 15:54                   ` Martin Jansa
2015-07-10  3:49                     ` Bian, Naimeng
2015-07-13 16:17                       ` Martin Jansa
2015-07-17  7:39                         ` Bian, Naimeng
2015-08-03  8:58                           ` Bian, Naimeng
2015-08-03  9:39                             ` Martin Jansa
2015-08-06  6:57                               ` Bian, Naimeng
2015-08-18 10:41                                 ` Martin Jansa
2015-06-17  7:49 ` [meta-oe][PATCH v2 4/7] libtdb: " Bian Naimeng
2015-06-17  7:49 ` [meta-oe][PATCH v2 5/7] libtevent: " Bian Naimeng
2015-06-17  7:49 ` [meta-oe][PATCH v2 6/7] talloc: upgrade to 2.1.1 Bian Naimeng
2015-06-17  7:49 ` [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12 Bian Naimeng
2015-06-17 20:36   ` Martin Jansa
2015-06-18  0:59     ` Bian, Naimeng
2015-06-18 15:31       ` Martin Jansa
2015-06-19  3:16         ` Bian, Naimeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.