Skip to contentSkip to conversation

add samba4 and required recipe

PATCH In review Bian Naimeng 2 participants 28 messages Jun 17, 2015 – Aug 18, 2015

lore
Share & tools
lore
#0 lore raw

v2 cover add samba4 and required recipe

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
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/7 waf-samba: add new class

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

---
 meta-oe/classes/waf-samba.bbclass | 51 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 meta-oe/classes/waf-samba.bbclass
meta-oe/classes/waf-samba.bbclass new file +51 -0
new file mode 100644
index 0000000..23c5556
@@ -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}
+}
Signature · 1 line
1.9.1
#2 lore raw

PATCH v2 2/7 ctdb: add new recipe

In reply to Bian Naimeng

ctdb is required by samba4

---
 .../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
meta-oe/recipes-support/ctdb/ctdb/01-support-cross-compile-for-linux-os.patch new file +24 -0
new file mode 100644
index 0000000..c9195b4
@@ -0,0 +1,24 @@
+support cross-compile for linux-os.
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+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.  */
meta-oe/recipes-support/ctdb/ctdb/02-link-rep_snprintf-for-ltdbtool.patch new file +16 -0
new file mode 100644
index 0000000..1dd9b93
@@ -0,0 +1,16 @@
+link rep_snprintf from lib/replace/snprintf.o for ltdbtool
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+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)
+ 
meta-oe/recipes-support/ctdb/ctdb_2.5.1.bb new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
1.9.1
#3 lore raw

PATCH v2 3/7 libldb: add new recipe

In reply to Bian Naimeng

libldb is required by samba4

---
 .../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
meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch new file +32 -0
new file mode 100644
index 0000000..b4d522a
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- 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__
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
1.9.1
#4 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 9 lines · Bian Naimeng

libldb is required by samba4

---
 .../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'

Quoted 97 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-module-in-configure.patch new file +32 -0
new file mode 100644
index 0000000..b4d522a
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- 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__
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +45 -0
new file mode 100644
index 0000000..17607f7
@@ -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"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#5 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 32 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines · Bian Naimeng

libldb is required by samba4

---
 .../do-not-import-target-module-in-configure.patch | 32 +++++++++++++++
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 5 lines
 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)
Quoted 5 lines

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

Quoted 120 lines
Quoted 11 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +1 -0
+++ e-in-configure.patch

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul line 6

Quoted 6 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +6 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check whether
+the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py	2014-05-05

17:00:41.000000000 +0900

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul line 7

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py	2015-06-15

10:09:50.210000217 +0900

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +10 -0
+@@ -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

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul line 27

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +10 -0
+         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"]])

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul line 29

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +2 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been found, but can not

be loaded.' % (stuff[1]))

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 1

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +4 -0
++                found = True
+     else:
+         try:
+             version = m.__version__
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
new file mode 100644
index 0000000..17607f7
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool system with

destructors"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +12 -0
+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 \

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 14

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675 ffea8be556788b780 \

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 15

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d 293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 15 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +15 -0
+
+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"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +10 -0
+
+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 \

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

#6 lore raw

Re: [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.

Quoted 182 lines · Naimeng
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines
Quoted 5 lines · Bian Naimeng

libldb is required by samba4

---
 .../do-not-import-target-module-in-configure.patch | 32

+++++++++++++++

Quoted 12 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 5 lines
 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

Quoted 9 lines
| 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

Quoted 2 lines

/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

Quoted 30 lines
Quoted 11 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +1 -0
+++ e-in-configure.patch

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul line 6

Quoted 6 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +6 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check whether
+the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py   2014-05-05

17:00:41.000000000 +0900

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul line 7

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py        2015-06-15

10:09:50.210000217 +0900

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +10 -0
+@@ -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
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul line 25

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +8 -0
+         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

Quoted 5 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul line 27

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +2 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been found, but can

not

Quoted 14 lines

be loaded.' % (stuff[1]))

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 1

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-modul new file +4 -0
++                found = True
+     else:
+         try:
+             version = m.__version__
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
new file mode 100644
index 0000000..17607f7
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool system with

destructors"

Quoted 13 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +12 -0
+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

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d

Quoted 36 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 15 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +15 -0
+
+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"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +10 -0
+
+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 \

Quoted 5 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#7 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] 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

Quoted 8 lines

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

Quoted 199 lines
Quoted 158 lines · Naimeng
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines
Quoted 5 lines · Bian Naimeng

libldb is required by samba4

---
 .../do-not-import-target-module-in-configure.patch | 32

+++++++++++++++

Quoted 18 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 4 lines
 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)
Quoted 3 lines

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

Quoted 2 lines

/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

Quoted 33 lines
Quoted 14 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-import-target-m new file +2 -0
+++ odul
+++ e-in-configure.patch

meta-oe/recipes-support/libldb/libldb/do-not-import-target-m line 6

Quoted 6 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-m new file +6 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check
+whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py   2014-05-05

17:00:41.000000000 +0900

meta-oe/recipes-support/libldb/libldb/do-not-import-target-m line 7

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-import-target-m new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py        2015-06-15

10:09:50.210000217 +0900

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-m new file +10 -0
+@@ -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
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target-m line 25

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-m new file +8 -0
+         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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target-m line 27

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-m new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-m new file +3 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been found, but
++ can

not

Quoted 15 lines

be loaded.' % (stuff[1]))

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 2

Quoted 13 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target-m new file +4 -0
++                found = True
+     else:
+         try:
+             version = m.__version__
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
new file mode 100644
index 0000000..17607f7
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool system
+with

destructors"

Quoted 13 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +12 -0
+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

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd21 8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19df ec6d

Quoted 18 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 13 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +13 -0
+
+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}\
+                "
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +8 -0
+
+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/*

\

Quoted 16 lines
Quoted 16 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =

"${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 8 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#8 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

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

Quoted 255 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] 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

Quoted 9 lines

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

Quoted 71 lines
Quoted 68 lines · Naimeng
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines
Quoted 5 lines · Bian Naimeng

libldb is required by samba4

---
 .../do-not-import-target-module-in-configure.patch | 32

+++++++++++++++

Quoted 19 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 4 lines
 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)
Quoted 3 lines

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

Quoted 2 lines

/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

Quoted 15 lines
Quoted 15 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +2 -0
+++ -m
+++ odul
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 6

Quoted 8 lines

+++ e-in-configure.patch

meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +6 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check
+whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py

2014-05-05

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

17:00:41.000000000 +0900

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py

2015-06-15

Quoted 124 lines
Quoted 90 lines
Quoted 12 lines

10:09:50.210000217 +0900

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +11 -0
+@@ -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)
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 26

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +8 -0
+     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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 28

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +3 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been found,
++ but can

not

Quoted 15 lines

be loaded.' % (stuff[1]))

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 2

Quoted 13 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +4 -0
++                found = True
+     else:
+         try:
+             version = m.__version__
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
new file mode 100644
index 0000000..17607f7
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool system
+with

destructors"

Quoted 13 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +12 -0
+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

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd 21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19 df
ec6d

Quoted 19 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 14 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +14 -0
+
+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}\
+                "
+
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +8 -0
+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/*

\

Quoted 17 lines
Quoted 17 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =

"${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

Quoted 8 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#9 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines · Naimeng

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.

Quoted 266 lines

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

Thanks
Bian

Quoted 255 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] 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

Quoted 9 lines

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

Quoted 71 lines
Quoted 68 lines · Naimeng
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines
Quoted 5 lines · Bian Naimeng

libldb is required by samba4

---
 .../do-not-import-target-module-in-configure.patch | 32

+++++++++++++++

Quoted 19 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 4 lines
 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)
Quoted 3 lines

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

Quoted 2 lines

/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

Quoted 15 lines
Quoted 15 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +2 -0
+++ -m
+++ odul
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 6

Quoted 8 lines

+++ e-in-configure.patch

meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +6 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check
+whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py

2014-05-05

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

17:00:41.000000000 +0900

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py

2015-06-15

Quoted 124 lines
Quoted 90 lines
Quoted 12 lines

10:09:50.210000217 +0900

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +11 -0
+@@ -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)
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 26

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +8 -0
+     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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 28

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +3 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been found,
++ but can

not

Quoted 15 lines

be loaded.' % (stuff[1]))

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 2

Quoted 13 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +4 -0
++                found = True
+     else:
+         try:
+             version = m.__version__
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
new file mode 100644
index 0000000..17607f7
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool system
+with

destructors"

Quoted 13 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +12 -0
+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

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd 21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19 df
ec6d

Quoted 19 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 14 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +14 -0
+
+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}\
+                "
+
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +8 -0
+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/*

\

Quoted 17 lines
Quoted 17 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =

"${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

Quoted 8 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#10 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Martin Jansa
Quoted 4 lines · Naimeng

Hi Martin,

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

Quoted 7 lines
Quoted 2 lines

- 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

Quoted 269 lines
Quoted 266 lines

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

Thanks
Bian

Quoted 255 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] 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

Quoted 9 lines

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

Quoted 71 lines
Quoted 68 lines · Naimeng
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines
Quoted 5 lines · Bian Naimeng

libldb is required by samba4

---
 .../do-not-import-target-module-in-configure.patch | 32

+++++++++++++++

Quoted 19 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 4 lines
 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)
Quoted 3 lines

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

Quoted 2 lines

/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

Quoted 15 lines
Quoted 15 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +2 -0
+++ -m
+++ odul
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 6

Quoted 8 lines

+++ e-in-configure.patch

meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +6 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst check
+whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py

2014-05-05

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

17:00:41.000000000 +0900

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py

2015-06-15

Quoted 124 lines
Quoted 90 lines
Quoted 12 lines

10:09:50.210000217 +0900

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +11 -0
+@@ -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)
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 26

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +8 -0
+     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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not-import-target line 28

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +3 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been found,
++ but can

not

Quoted 15 lines

be loaded.' % (stuff[1]))

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 2

Quoted 13 lines
meta-oe/recipes-support/libldb/libldb/do-not-import-target new file +4 -0
++                found = True
+     else:
+         try:
+             version = m.__version__
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
new file mode 100644
index 0000000..17607f7
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool system
+with

destructors"

Quoted 13 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 14

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +12 -0
+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

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd 21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19 df
ec6d

Quoted 19 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 19

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 14 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +14 -0
+
+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}\
+                "
+
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 41

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +8 -0
+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/*

\

Quoted 17 lines
Quoted 17 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 45

Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =

"${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

Quoted 8 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#11 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 25 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 4 lines · Martin Jansa
Quoted 3 lines · Naimeng

Hi Martin,

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

them.

Quoted 10 lines
Quoted 5 lines

- 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.

Quoted 7 lines

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

Quoted 296 lines
Quoted 24 lines
Quoted 24 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 16 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] 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

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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.

Quoted 63 lines
Quoted 63 lines
Quoted 63 lines
Quoted 1 line

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

Quoted 49 lines
Quoted 45 lines · Naimeng
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines
Quoted 5 lines · Bian Naimeng

libldb is required by samba4

---
 .../do-not-import-target-module-in-configure.patch | 32

+++++++++++++++

Quoted 22 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 5 lines
 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)
Quoted 3 lines

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

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

/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.

Quoted 81 lines
Quoted 81 lines
Quoted 81 lines
Quoted 26 lines
Quoted 26 lines

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

Quoted 18 lines
Quoted 18 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-import- new file +3 -0
+++ target
+++ -m
+++ odul
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import- line 6

Quoted 8 lines

+++ e-in-configure.patch

meta-oe/recipes-support/libldb/libldb/do-not-import- new file +6 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst
+check whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py

2014-05-05

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

17:00:41.000000000 +0900

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py

2015-06-15

Quoted 43 lines
Quoted 43 lines
Quoted 11 lines

10:09:50.210000217 +0900

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +10 -0
+@@ -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)
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import- line 25

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +8 -0
+     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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not-import- line 27

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +3 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been
++ found, but can

not

Quoted 16 lines

be loaded.' % (stuff[1]))

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +4 -0
++                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

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 2

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool
+system with

destructors"

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 12

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +10 -0
+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"

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 3 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 14

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bf ccfe95
22
69ff

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6 d268fd
21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79f f39f19
df
ec6d

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 19

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 62 lines
Quoted 62 lines
Quoted 62 lines
Quoted 51 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +14 -0
+
+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}\
+                "
+
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 41

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +8 -0
+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/*

\

Quoted 19 lines
Quoted 19 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 45

Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =

"${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedde
d-deve
l

Quoted 9 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-de
vel

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
Martin 'JaMa' Jansa jabber: [email protected]

#12 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 33 lines · Naimeng
Quoted 25 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 4 lines · Martin Jansa
Quoted 3 lines · Naimeng

Hi Martin,

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

them.

Quoted 10 lines
Quoted 5 lines

- 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.

Quoted 7 lines

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

Quoted 6 lines

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
Quoted 305 lines

Thanks
Bian

Quoted 296 lines
Quoted 24 lines
Quoted 24 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 16 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] 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

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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.

Quoted 63 lines
Quoted 63 lines
Quoted 63 lines
Quoted 1 line

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

Quoted 49 lines
Quoted 45 lines · Naimeng
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 6 lines
Quoted 5 lines · Bian Naimeng

libldb is required by samba4

---
 .../do-not-import-target-module-in-configure.patch | 32

+++++++++++++++

Quoted 22 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 5 lines
 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)
Quoted 3 lines

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

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

/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.

Quoted 81 lines
Quoted 81 lines
Quoted 81 lines
Quoted 26 lines
Quoted 26 lines

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

Quoted 18 lines
Quoted 18 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-import- new file +3 -0
+++ target
+++ -m
+++ odul
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import- line 6

Quoted 8 lines

+++ e-in-configure.patch

meta-oe/recipes-support/libldb/libldb/do-not-import- new file +6 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst
+check whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py

2014-05-05

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

17:00:41.000000000 +0900

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py

2015-06-15

Quoted 43 lines
Quoted 43 lines
Quoted 11 lines

10:09:50.210000217 +0900

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +10 -0
+@@ -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)
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-import- line 25

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +8 -0
+     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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not-import- line 27

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +3 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been
++ found, but can

not

Quoted 16 lines

be loaded.' % (stuff[1]))

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb/do-not-import- new file +4 -0
++                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

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 2

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory pool
+system with

destructors"

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 12

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +10 -0
+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"

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 3 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 14

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bf ccfe95
22
69ff

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6 d268fd
21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79f f39f19
df
ec6d

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 19

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 62 lines
Quoted 62 lines
Quoted 62 lines
Quoted 51 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +14 -0
+
+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}\
+                "
+
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 41

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +8 -0
+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/*

\

Quoted 19 lines
Quoted 19 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 45

Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =

"${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedde
d-deve
l

Quoted 9 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-de
vel

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
Martin 'JaMa' Jansa jabber: [email protected]

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#13 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 61 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, July 09, 2015 11:54 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 30 lines · Naimeng
Quoted 30 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Martin Jansa
Quoted 4 lines · Naimeng

Hi Martin,

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

them.

Quoted 11 lines
Quoted 6 lines

- 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=

Quoted 7 lines
Quoted 4 lines

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.

Quoted 7 lines

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

Quoted 11 lines
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

Quoted 337 lines
Quoted 109 lines

Thanks
Bian

Quoted 105 lines
Quoted 33 lines
Quoted 33 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820
294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 24 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 15 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] 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.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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.

Quoted 68 lines
Quoted 68 lines
Quoted 68 lines
Quoted 1 line

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

Quoted 54 lines
Quoted 50 lines · Naimeng
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected] g] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 7 lines
Quoted 6 lines · Bian Naimeng

libldb is required by samba4

---
.../do-not-import-target-module-in-configure.patch |
32

+++++++++++++++

Quoted 24 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 6 lines
 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)
Quoted 3 lines

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

Quoted 1 line

/libldb/libldb_1.1.17.bb, do_configure) failed with exit code

'1'

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

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.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Quoted 39 lines
Quoted 39 lines
Quoted 39 lines
Quoted 39 lines
Quoted 39 lines
Quoted 26 lines
Quoted 26 lines

Thanks
Bian

Quoted 22 lines
Quoted 22 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-imp new file +5 -0
+++ ort-
+++ target
+++ -m
+++ odul
+++ e-in-configure.patch
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-imp line 7

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +7 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst
+check whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+---
+ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py

2014-05-05

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

17:00:41.000000000 +0900

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py

2015-06-15

Quoted 1 line
Quoted 1 line
Quoted 1 line

10:09:50.210000217 +0900

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-imp line 16

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +8 -0
+@@ -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):

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

meta-oe/recipes-support/libldb/libldb/do-not-imp line 17

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +1 -0
+@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf,

li

Quoted 75 lines
Quoted 75 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 9 lines

meta-oe/recipes-support/libldb/libldb/do-not-imp line 26

Quoted 9 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +9 -0
+         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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not-imp line 28

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +3 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been
++ found, but can

not

Quoted 16 lines

be loaded.' % (stuff[1]))

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +4 -0
++                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

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 2

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory
+pool system with

destructors"

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 13

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +11 -0
+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"

Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 3 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 15

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md 5=bf
ccfe95
22
69ff

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5 =1a6
d268fd
21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5= c79f
f39f19
df
ec6d

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 20

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 30

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +10 -0
+
+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

\

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 32

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
+                 --with-privatelibdir=${libdir}/ldb \
+

--with-libiconv=${STAGING_DIR_HOST}${prefix}\

Quoted 68 lines
Quoted 68 lines
Quoted 65 lines
Quoted 56 lines
Quoted 50 lines
Quoted 43 lines
Quoted 11 lines
Quoted 11 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 43

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +11 -0
+                "
+
+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/
+*

\

Quoted 23 lines
Quoted 21 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =

"${libdir}/python${PYTHON_BASEVERSION}/site-packages/.de bug
\

Quoted 5 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openemb
edde
d-deve
l

Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedde
d-de
vel

Quoted 7 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-
deve
l

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-de
vel

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

#14 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 73 lines · Naimeng
Quoted 61 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, July 09, 2015 11:54 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 30 lines · Naimeng
Quoted 30 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Martin Jansa
Quoted 4 lines · Naimeng

Hi Martin,

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

them.

Quoted 11 lines
Quoted 6 lines

- 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=

Quoted 7 lines
Quoted 4 lines

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.

Quoted 7 lines

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

Quoted 11 lines
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
Quoted 5 lines

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

Quoted 346 lines

Thanks
Bian

Quoted 337 lines
Quoted 109 lines

Thanks
Bian

Quoted 105 lines
Quoted 33 lines
Quoted 33 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb2820
294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 24 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 15 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] 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.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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.

Quoted 68 lines
Quoted 68 lines
Quoted 68 lines
Quoted 1 line

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

Quoted 54 lines
Quoted 50 lines · Naimeng
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected] g] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 7 lines
Quoted 6 lines · Bian Naimeng

libldb is required by samba4

---
.../do-not-import-target-module-in-configure.patch |
32

+++++++++++++++

Quoted 24 lines
Quoted 1 line
 meta-oe/recipes-support/libldb/libldb_1.1.17.bb    | 45

++++++++++++++++++++++

Quoted 6 lines
 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)
Quoted 3 lines

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

Quoted 1 line

/libldb/libldb_1.1.17.bb, do_configure) failed with exit code

'1'

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

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.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Quoted 39 lines
Quoted 39 lines
Quoted 39 lines
Quoted 39 lines
Quoted 39 lines
Quoted 26 lines
Quoted 26 lines

Thanks
Bian

Quoted 22 lines
Quoted 22 lines

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

meta-oe/recipes-support/libldb/libldb/do-not-imp new file +5 -0
+++ ort-
+++ target
+++ -m
+++ odul
+++ e-in-configure.patch
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-imp line 7

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +7 -0
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we jst
+check whether the module exist
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+---
+ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled.py

2014-05-05

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

17:00:41.000000000 +0900

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +1 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.py

2015-06-15

Quoted 1 line
Quoted 1 line
Quoted 1 line

10:09:50.210000217 +0900

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not-imp line 16

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +8 -0
+@@ -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):

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

meta-oe/recipes-support/libldb/libldb/do-not-imp line 17

Quoted 1 line
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +1 -0
+@@ -222,6 +222,16 @@ def CHECK_BUNDLED_SYSTEM_PYTHON(conf,

li

Quoted 75 lines
Quoted 75 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 9 lines

meta-oe/recipes-support/libldb/libldb/do-not-imp line 26

Quoted 9 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +9 -0
+         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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not-imp line 28

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +3 -0
++            if stuff != None:
++                Logs.warn('Cross module[%s] has been
++ found, but can

not

Quoted 16 lines

be loaded.' % (stuff[1]))

Quoted 12 lines
meta-oe/recipes-support/libldb/libldb/do-not-imp new file +4 -0
++                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

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 2

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory
+pool system with

destructors"

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 13

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +11 -0
+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"

Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 3 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 15

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md 5=bf
ccfe95
22
69ff

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5 =1a6
d268fd
21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5= c79f
f39f19
df
ec6d

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 20

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 30

Quoted 10 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +10 -0
+
+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

\

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 32

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -0
+                 --with-privatelibdir=${libdir}/ldb \
+

--with-libiconv=${STAGING_DIR_HOST}${prefix}\

Quoted 68 lines
Quoted 68 lines
Quoted 65 lines
Quoted 56 lines
Quoted 50 lines
Quoted 43 lines
Quoted 11 lines
Quoted 11 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb line 43

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +11 -0
+                "
+
+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/
+*

\

Quoted 23 lines
Quoted 21 lines

meta-oe/recipes-support/libldb/libldb_1.1.17.bb

Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =

"${libdir}/python${PYTHON_BASEVERSION}/site-packages/.de bug
\

Quoted 5 lines
meta-oe/recipes-support/libldb/libldb_1.1.17.bb new file +2 -1
+                   ${libdir}/.debug/libpyldb-util.so.1.1.17"
+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--

1.9.1

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openemb
edde
d-deve
l

Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedde
d-de
vel

Quoted 7 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-
deve
l

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-de
vel

Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#15 lore raw

Re: [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/f7a7d49164c8f5a4e8b12ccdc92e08d73952a97c

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

Thanks
Bian

Quoted 500 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, July 14, 2015 12:17 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 77 lines · Naimeng
Quoted 63 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, July 09, 2015 11:54 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 30 lines · Naimeng
Quoted 30 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Martin Jansa
Quoted 4 lines · Naimeng

Hi Martin,

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

them.

Quoted 8 lines
Quoted 7 lines

- libldb

https://github.com/bendaaron/meta-oe-dev/commit/c6cade423622
6646
fde9
9611c20fe3fcc6612e7a

Quoted 4 lines

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=

Quoted 8 lines
Quoted 4 lines

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.

Quoted 7 lines

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

Quoted 13 lines
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
Quoted 4 lines

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.

Quoted 2 lines

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

Quoted 41 lines

Thanks
Bian

Quoted 37 lines
Quoted 37 lines

Thanks
Bian

Quoted 33 lines
Quoted 33 lines
Quoted 33 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430ee92bbb
2820
294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 23 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 14 lines

-----Original Message-----
From: [email protected] [mailto:[email protected] 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.

Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 40 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 1 line

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

Quoted 21 lines
Quoted 17 lines · Naimeng
Quoted 17 lines

-----Original Message-----
From:
[email protected] [mailto:[email protected] d.or g] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
add new recipe

Quoted 6 lines · Bian Naimeng

libldb is required by samba4

Signed-off-by: Bian Naimeng
<[email protected]>
---

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

.../do-not-import-target-module-in-configure.patch |
32

+++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-support/libldb/libldb_1.1.17.bb |

45

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

++++++++++++++++++++++

Quoted 8 lines
 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

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Fails to build in bitbake world:

| Checking for system tdb >=
1.2.13 :

yes

Quoted 204 lines
Quoted 204 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
| 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

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(/home/jenkins/oe/world/shr-core/meta-openembedded/met a-oe
/rec
ipes-s
up
port

Quoted 2 lines

/libldb/libldb_1.1.17.bb, do_configure) failed with exit code

'1'

Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

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.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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.

Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
Quoted 30 lines
Quoted 30 lines

Thanks
Bian

Quoted 26 lines
Quoted 26 lines

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

meta-oe/recipes-support/libldb/libldb/do-not new file +7 -0
+++ -imp
+++ ort-
+++ target
+++ -m
+++ odul
+++ e-in-configure.patch
@@ -0,0 +1,32 @@
+Some module can be loaded while cross compile, we
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not line 9

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not new file +8 -0
+jst check whether the module exist
+
+Signed-off-by: Bian Naimeng
+<[email protected]>
+
+---
+ldb-1.1.17.orig/buildtools/wafsamba/samba_bundled
+.py

2014-05-05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

17:00:41.000000000 +0900

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not new file +2 -0
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
++++ py

2015-06-15

Quoted 1 line
Quoted 1 line
Quoted 1 line

10:09:50.210000217 +0900

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb/do-not line 19

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb/do-not new file +8 -0
+@@ -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):

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

meta-oe/recipes-support/libldb/libldb/do-not line 21

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not new file +2 -0
+@@ -222,6 +222,16 @@ def
+CHECK_BUNDLED_SYSTEM_PYTHON(conf,

li

Quoted 79 lines
Quoted 79 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 33 lines
Quoted 9 lines

meta-oe/recipes-support/libldb/libldb/do-not line 30

Quoted 9 lines
meta-oe/recipes-support/libldb/libldb/do-not new file +9 -0
+         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

Quoted 6 lines

meta-oe/recipes-support/libldb/libldb/do-not line 32

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb/do-not new file +2 -0
++            # We just check whether the module exist
++            stuff = imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines

++ if stuff != None:
++ Logs.warn('Cross module[%s] has
++ been found, but can

not

Quoted 16 lines

be loaded.' % (stuff[1]))

Quoted 12 lines

++ found = True

meta-oe/recipes-support/libldb/libldb/do-not new file +3 -0
+     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

meta-oe/recipes-support/libldb/libldb_1.1.17 new file +1 -0
+++ .bb

meta-oe/recipes-support/libldb/libldb_1.1.17 line 2

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +2 -0
@@ -0,0 +1,45 @@
+SUMMARY = "Hierarchical, reference counted memory
+pool system with

destructors"

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +4 -0
+HOMEPAGE = "http://ldb.samba.org"
+SECTION = "libs"
+LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
+
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb_1.1.17 line 14

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +8 -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"

Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 3 lines

meta-oe/recipes-support/libldb/libldb_1.1.17 line 16

Quoted 2 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +2 -0
+
+LIC_FILES_CHKSUM =

"file://${COREBASE}/meta/files/common-licenses/LGPL-3. 0;md
5=bf
ccfe95
22
69ff

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2.1 ;md5
=1a6
d268fd
21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +1 -0
+

file://${COREBASE}/meta/files/common-licenses/GPL-3.0; md5=
c79f
f39f19
df
ec6d

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"

meta-oe/recipes-support/libldb/libldb_1.1.17 line 21

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +3 -0
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

meta-oe/recipes-support/libldb/libldb_1.1.17 line 32

Quoted 11 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +11 -0
+
+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

\

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

meta-oe/recipes-support/libldb/libldb_1.1.17 line 35

Quoted 3 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +3 -0
+
+ --with-privatelibdir=${libdir}/ldb \
+

--with-libiconv=${STAGING_DIR_HOST}${prefix}\

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +4 -0
+                "
+
+PACKAGES += "pyldb pyldb-dbg pyldb-dev"
+
Quoted 8 lines
Quoted 8 lines

meta-oe/recipes-support/libldb/libldb_1.1.17

Quoted 8 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +8 -0
+FILES_${PN} += "${libdir}/ldb/*"
+FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
+                    ${libdir}/ldb/modules/ldb/.debug/*"
+
+FILES_pyldb =
+"${libdir}/python${PYTHON_BASEVERSION}/site-packa
+ges/
+*

\

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta-oe/recipes-support/libldb/libldb_1.1.17 new file +4 -0
+               ${libdir}/libpyldb-util.so.1 \
+               ${libdir}/libpyldb-util.so.1.1.17 \
+              "
+FILES_pyldb-dbg =
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

"${libdir}/python${PYTHON_BASEVERSION}/site-packages /.de
bug
\

Quoted 1 line

+

${libdir}/.debug/libpyldb-util.so.1.1.17"

Quoted 61 lines
Quoted 61 lines
Quoted 60 lines
Quoted 48 lines
Quoted 48 lines
Quoted 47 lines
Quoted 33 lines
Quoted 25 lines
Quoted 16 lines
Quoted 14 lines
Quoted 4 lines

+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--
1.9.1

Quoted 9 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/ope
nemb
edde
d-deve
l

Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 9 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openemb
edde
d-de
vel

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembed
ded-
deve
l

Quoted 7 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedde
d-de
vel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-
deve
l

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

#16 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

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

Quoted 565 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Friday, July 17, 2015 3:40 PM
To: [email protected]
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

Quoted 206 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, July 14, 2015 12:17 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 83 lines · Naimeng
Quoted 66 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, July 09, 2015 11:54 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 32 lines · Naimeng
Quoted 32 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Martin Jansa
Quoted 4 lines · Naimeng

Hi Martin,

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

them.

Quoted 9 lines
Quoted 8 lines

- libldb

https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236
22
6646
fde9
9611c20fe3fcc6612e7a

Quoted 4 lines

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=

Quoted 8 lines
Quoted 4 lines

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.

Quoted 7 lines

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

Quoted 16 lines
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
Quoted 5 lines

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.

Quoted 3 lines

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

Quoted 44 lines

Thanks
Bian

Quoted 40 lines
Quoted 40 lines

Thanks
Bian

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430ee92b
bb
2820
294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 25 lines

-----Original Message-----
From: [email protected] [mailto:[email protected] g] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 16 lines

-----Original Message-----
From:
[email protected] [mailto:[email protected]. 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.

Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 1 line

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

Quoted 15 lines
Quoted 11 lines · Naimeng
Quoted 11 lines

-----Original Message-----
From:
[email protected] [mailto:[email protected] de d.or g] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
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

Quoted 321 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

libldb is required by samba4

Signed-off-by: Bian Naimeng
<[email protected]>
---

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

.../do-not-import-target-module-in-configure.pat
ch
|
32

+++++++++++++++

Quoted 1 line
Quoted 1 line

meta-oe/recipes-support/libldb/libldb_1.1.17.bb |

45

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

++++++++++++++++++++++

Quoted 9 lines

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

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Fails to build in bitbake world:

| Checking for system tdb >=
1.2.13 :

yes

Quoted 216 lines
Quoted 216 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 13 lines
| 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)
Quoted 4 lines

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/libldb/libldb_1.1.17.bb, do_configure) failed
with exit code

'1'

Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

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.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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.

Quoted 48 lines
Quoted 48 lines
Quoted 48 lines
Quoted 48 lines
Quoted 48 lines
Quoted 34 lines
Quoted 34 lines

Thanks
Bian

Quoted 30 lines
Quoted 30 lines

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

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+
+Signed-off-by: Bian Naimeng
+<[email protected]>
+
+---
+ldb-1.1.17.orig/buildtools/wafsamba/samba_bundl
+ed
+.py

2014-05-05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

17:00:41.000000000 +0900

Quoted 2 lines

++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
++++ py

2015-06-15

Quoted 1 line
Quoted 1 line
Quoted 1 line

10:09:50.210000217 +0900

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+@@ -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):

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+@@ -222,6 +222,16 @@ def
+CHECK_BUNDLED_SYSTEM_PYTHON(conf,

li

Quoted 84 lines
Quoted 84 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 9 lines
Quoted 9 lines

+ 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

Quoted 7 lines
Quoted 3 lines

++ # We just check whether the module exist
++ stuff =
++ imp.find_module(modulename,

[os.environ["PYTHONPATH"]])

Quoted 3 lines

++ if stuff != None:
++ Logs.warn('Cross module[%s]
++ has been found, but can

not

Quoted 18 lines

be loaded.' % (stuff[1]))

Quoted 16 lines

++ 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"

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+HOMEPAGE = "http://ldb.samba.org"
+SECTION = "libs"
+LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
+

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+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"

Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 3 lines
Quoted 2 lines

+
+LIC_FILES_CHKSUM =

"file://${COREBASE}/meta/files/common-licenses/LGPL-3. 0;md
5=bf
ccfe95
22
69ff

Quoted 3 lines

f2b407dd11f2f3083b \

Quoted 1 line

+

file://${COREBASE}/meta/files/common-licenses/LGPL-2 .1
;md5
=1a6
d268fd
21
8675

Quoted 3 lines

ffea8be556788b780 \

Quoted 1 line

+

file://${COREBASE}/meta/files/common-licenses/GPL-3. 0;
md5=
c79f
f39f19
df
ec6d

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"

Quoted 3 lines

+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

+
+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

\

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+
+ --with-privatelibdir=${libdir}/ldb \
+

--with-libiconv=${STAGING_DIR_HOST}${prefix}\

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

+ "
+
+PACKAGES += "pyldb pyldb-dbg pyldb-dev"
+
+FILES_${PN} += "${libdir}/ldb/*"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
+ ${libdir}/ldb/modules/ldb/.debug/*"
+
+FILES_pyldb =
+"${libdir}/python${PYTHON_BASEVERSION}/site-pac
+ka
+ges/
+*

\

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+ ${libdir}/libpyldb-util.so.1 \
+ ${libdir}/libpyldb-util.so.1.1.17 \
+ "
+FILES_pyldb-dbg =

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

"${libdir}/python${PYTHON_BASEVERSION}/site-packag es
/.de
bug
\

Quoted 1 line

+

${libdir}/.debug/libpyldb-util.so.1.1.17"

Quoted 69 lines
Quoted 69 lines
Quoted 58 lines
Quoted 58 lines
Quoted 55 lines
Quoted 44 lines
Quoted 36 lines
Quoted 27 lines
Quoted 17 lines
Quoted 15 lines
Quoted 14 lines

+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--
1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/o
pe
nemb
edde
d-deve
l

Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 10 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/opene
mb
edde
d-de
vel

Quoted 9 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openemb
ed
ded-
deve
l

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembed
de
d-de
vel

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedde
d-
deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 8 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#17 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Naimeng

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.

Quoted 573 lines

Thanks
Bian

Quoted 565 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Friday, July 17, 2015 3:40 PM
To: [email protected]
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

Quoted 206 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, July 14, 2015 12:17 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 83 lines · Naimeng
Quoted 66 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, July 09, 2015 11:54 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 32 lines · Naimeng
Quoted 32 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Martin Jansa
Quoted 4 lines · Naimeng

Hi Martin,

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

them.

Quoted 9 lines
Quoted 8 lines

- libldb

https://github.com/bendaaron/meta-oe-dev/commit/c6cade4236
22
6646
fde9
9611c20fe3fcc6612e7a

Quoted 4 lines

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=

Quoted 8 lines
Quoted 4 lines

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.

Quoted 7 lines

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

Quoted 16 lines
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
Quoted 5 lines

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.

Quoted 3 lines

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

Quoted 44 lines

Thanks
Bian

Quoted 40 lines
Quoted 40 lines

Thanks
Bian

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430ee92b
bb
2820
294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 25 lines

-----Original Message-----
From: [email protected] [mailto:[email protected] g] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 16 lines

-----Original Message-----
From:
[email protected] [mailto:[email protected]. 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.

Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 1 line

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

Quoted 15 lines
Quoted 11 lines · Naimeng
Quoted 11 lines

-----Original Message-----
From:
[email protected]
[mailto:[email protected]
de d.or g] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
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

Quoted 321 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

libldb is required by samba4

Signed-off-by: Bian Naimeng
<[email protected]>
---

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

.../do-not-import-target-module-in-configure.pat
ch
|
32

+++++++++++++++

Quoted 1 line

meta-oe/recipes-support/libldb/libldb_1.1.17.bb |

45

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

++++++++++++++++++++++
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

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Fails to build in bitbake world:

| Checking for system tdb >=
1.2.13 :

yes

Quoted 216 lines
Quoted 216 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 17 lines

| 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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/libldb/libldb_1.1.17.bb, do_configure) failed
with exit code

'1'

Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

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.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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.

Quoted 48 lines
Quoted 48 lines
Quoted 48 lines
Quoted 48 lines
Quoted 48 lines
Quoted 34 lines
Quoted 34 lines

Thanks
Bian

Quoted 30 lines

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

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+
+Signed-off-by: Bian Naimeng
+<[email protected]>
+
+---
+ldb-1.1.17.orig/buildtools/wafsamba/samba_bundl
+ed
+.py

2014-05-05

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

17:00:41.000000000 +0900
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
++++ py

2015-06-15

Quoted 1 line
Quoted 1 line
Quoted 1 line

10:09:50.210000217 +0900

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+@@ -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):

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+@@ -222,6 +222,16 @@ def
+CHECK_BUNDLED_SYSTEM_PYTHON(conf,

li

Quoted 84 lines
Quoted 84 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 9 lines

+ 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

Quoted 7 lines

++ # 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

Quoted 18 lines

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"

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+HOMEPAGE = "http://ldb.samba.org"
+SECTION = "libs"
+LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
+

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+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"

Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 3 lines

+
+LIC_FILES_CHKSUM =

"file://${COREBASE}/meta/files/common-licenses/LGPL-3. 0;md
5=bf
ccfe95
22
69ff

Quoted 3 lines

f2b407dd11f2f3083b \
+

file://${COREBASE}/meta/files/common-licenses/LGPL-2 .1
;md5
=1a6
d268fd
21
8675

Quoted 3 lines

ffea8be556788b780 \
+

file://${COREBASE}/meta/files/common-licenses/GPL-3. 0;
md5=
c79f
f39f19
df
ec6d

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

+
+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

\

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+
+ --with-privatelibdir=${libdir}/ldb \
+

--with-libiconv=${STAGING_DIR_HOST}${prefix}\

Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Quoted 5 lines
Quoted 5 lines

+ "
+
+PACKAGES += "pyldb pyldb-dbg pyldb-dev"
+
+FILES_${PN} += "${libdir}/ldb/*"

Quoted 8 lines
Quoted 8 lines

+FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
+ ${libdir}/ldb/modules/ldb/.debug/*"
+
+FILES_pyldb =
+"${libdir}/python${PYTHON_BASEVERSION}/site-pac
+ka
+ges/
+*

\

Quoted 4 lines
Quoted 4 lines

+ ${libdir}/libpyldb-util.so.1 \
+ ${libdir}/libpyldb-util.so.1.1.17 \
+ "
+FILES_pyldb-dbg =

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

"${libdir}/python${PYTHON_BASEVERSION}/site-packag
es
/.de
bug
\
+

${libdir}/.debug/libpyldb-util.so.1.1.17"

Quoted 69 lines
Quoted 69 lines
Quoted 58 lines
Quoted 58 lines
Quoted 55 lines
Quoted 44 lines
Quoted 36 lines
Quoted 27 lines
Quoted 17 lines
Quoted 17 lines

+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--
1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/o
pe
nemb
edde
d-deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 10 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/opene
mb
edde
d-de
vel

Quoted 9 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openemb
ed
ded-
deve
l

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembed
de
d-de
vel

Quoted 8 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedde
d-
deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 8 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#18 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Monday, August 03, 2015 5:40 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 2 lines · Naimeng

Hi Martin

Quoted 9 lines
Quoted 2 lines

Thanks a lot for your help.
The patchset has been removed from master-next, does it mean I should re-send

it again.

Quoted 1 line

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

Quoted 632 lines
Quoted 126 lines

Thanks
Bian

Quoted 123 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Friday, July 17, 2015 3:40 PM
To: [email protected]
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

Quoted 97 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, July 14, 2015 12:17 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 88 lines · Naimeng
Quoted 88 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, July 09, 2015 11:54 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 40 lines · Naimeng
Quoted 31 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Martin Jansa
Quoted 4 lines · Naimeng

Hi Martin,

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

them.

Quoted 10 lines
Quoted 9 lines

- libldb

https://github.com/bendaaron/meta-oe-dev/commit/c6cade
4236
22
6646
fde9
9611c20fe3fcc6612e7a

Quoted 4 lines

Hi Bian,

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

Quoted 8 lines

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

Quoted 3 lines

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

of libtdb.

Quoted 7 lines

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.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

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

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

for me.

Quoted 4 lines

https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0a
bad5
78
e74d9f7b8f1c3ff951

| Checking for
getgrouplist :

ok

Quoted 75 lines
Quoted 75 lines
Quoted 75 lines

| 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

Quoted 48 lines

Thanks
Bian

Quoted 44 lines
Quoted 44 lines

Thanks
Bian

Quoted 40 lines
Quoted 40 lines
Quoted 40 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430e
e92b
bb
2820
294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 28 lines

-----Original Message-----
From:
[email protected] [mailto:[email protected] d.or g] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
add new recipe

Quoted 18 lines

-----Original Message-----
From:
[email protected] [mailto:[email protected]. 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.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

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

it.

Quoted 35 lines
Quoted 35 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines

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

Quoted 17 lines
Quoted 13 lines · Naimeng

-----Original Message-----
From:
[email protected].
org
[mailto:[email protected]
mbed de d.or g] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
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

Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

libldb is required by samba4

Signed-off-by: Bian Naimeng
<[email protected]>
---

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

.../do-not-import-target-module-in-configure
.pat
ch
|
32
+++++++++++++++
meta-oe/recipes-support/libldb/libldb_1.1.17.bb

|

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

45

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

++++++++++++++++++++++
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:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

| Checking for system tdb >=

1.2.13 :

Quoted 118 lines
Quoted 118 lines
Quoted 118 lines

yes

Quoted 117 lines
Quoted 117 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines

| 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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/libldb/libldb_1.1.17.bb, do_configure) failed
with exit code

'1'

Quoted 11 lines
Quoted 11 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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.

Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 39 lines
Quoted 39 lines

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
+

Quoted 8 lines
Quoted 8 lines

+Signed-off-by: Bian Naimeng
+<[email protected]>
+
+---
+ldb-1.1.17.orig/buildtools/wafsamba/samba_b
+undl
+ed
+.py

2014-05-05

Quoted 3 lines
Quoted 3 lines

17:00:41.000000000 +0900
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
++++ py

2015-06-15

Quoted 1 line
Quoted 1 line

10:09:50.210000217 +0900

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

+@@ -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):

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+@@ -222,6 +222,16 @@ def
+CHECK_BUNDLED_SYSTEM_PYTHON(conf,

li

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

+ 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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

compile
++ # We just check whether the module

exist

Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines

++ 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"

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+HOMEPAGE = "http://ldb.samba.org"
+SECTION = "libs"
+LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
+

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+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"

Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines

+
+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

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+
+inherit waf-samba
+
+S = "${WORKDIR}/ldb-${PV}"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+
+EXTRA_OECONF += "--disable-rpath \
+ --disable-rpath-install \
+ --bundled-libraries=NONE \
+
+--builtin-libraries=replace \
+
+--with-modulesdir=${libdir}/ldb/modules

\

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+
+ --with-privatelibdir=${libdir}/ldb \
+

--with-libiconv=${STAGING_DIR_HOST}${prefix}\

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

+ "
+
+PACKAGES += "pyldb pyldb-dbg pyldb-dev"
+
+FILES_${PN} += "${libdir}/ldb/*"
+FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
+

${libdir}/ldb/modules/ldb/.debug/*"

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 7 lines

+
+FILES_pyldb =
+"${libdir}/python${PYTHON_BASEVERSION}/site
+-pac
+ka
+ges/
+*

\

Quoted 2 lines

+ ${libdir}/libpyldb-util.so.1 \
+ ${libdir}/libpyldb-util.so.1.1.17

\

Quoted 99 lines
Quoted 92 lines
Quoted 92 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

+ "
+FILES_pyldb-dbg =
"${libdir}/python${PYTHON_BASEVERSION}/site-pa
ckag
es
/.de
bug
\
+

${libdir}/.debug/libpyldb-util.so.1.1.17"

Quoted 81 lines
Quoted 73 lines
Quoted 65 lines
Quoted 58 lines
Quoted 58 lines
Quoted 57 lines
Quoted 39 lines
Quoted 29 lines
Quoted 29 lines

+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--
1.9.1

--
____________________________________________
___ Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listin
fo/o
pe
nemb
edde
d-deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/o
pene
mb
edde
d-de
vel

Quoted 10 lines

--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/ope
nemb
ed
ded-
deve
l

Quoted 9 lines

--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/opene
mbed
de
d-de
vel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openemb
edde
d-
deve
l

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 7 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-
deve
l

Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

#19 lore raw

Re: [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 24 lines · Naimeng
Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Monday, August 03, 2015 5:40 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 2 lines · Naimeng

Hi Martin

Quoted 9 lines
Quoted 2 lines

Thanks a lot for your help.
The patchset has been removed from master-next, does it mean I should re-send

it again.

Quoted 1 line

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.

Quoted 7 lines

- 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

Quoted 641 lines

Thanks
Bian

Quoted 632 lines
Quoted 126 lines

Thanks
Bian

Quoted 123 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bian, Naimeng
Sent: Friday, July 17, 2015 3:40 PM
To: [email protected]
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

Quoted 97 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, July 14, 2015 12:17 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 88 lines · Naimeng
Quoted 88 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, July 09, 2015 11:54 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 40 lines · Naimeng
Quoted 31 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, July 08, 2015 7:59 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb: add new recipe

Quoted 5 lines · Martin Jansa
Quoted 4 lines · Naimeng

Hi Martin,

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

them.

Quoted 10 lines
Quoted 9 lines

- libldb

https://github.com/bendaaron/meta-oe-dev/commit/c6cade
4236
22
6646
fde9
9611c20fe3fcc6612e7a

Quoted 4 lines

Hi Bian,

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

Quoted 8 lines

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

Quoted 3 lines

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

of libtdb.

Quoted 7 lines

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.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

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

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

for me.

Quoted 4 lines

https://github.com/bendaaron/meta-oe-dev/commit/e1f5e847e197cf0a
bad5
78
e74d9f7b8f1c3ff951

| Checking for
getgrouplist :

ok

Quoted 75 lines
Quoted 75 lines
Quoted 75 lines

| 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

Quoted 48 lines

Thanks
Bian

Quoted 44 lines
Quoted 44 lines

Thanks
Bian

Quoted 40 lines
Quoted 40 lines
Quoted 40 lines

- samba

https://github.com/bendaaron/meta-oe-dev/commit/25430e
e92b
bb
2820
294c
b9ce239d9d4dccc492ea

Thanks
Bian

Quoted 28 lines

-----Original Message-----
From:
[email protected] [mailto:[email protected] d.or g] On Behalf Of Bian, Naimeng
Sent: Wednesday, June 24, 2015 3:05 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 3/7] libldb:
add new recipe

Quoted 18 lines

-----Original Message-----
From:
[email protected]
[mailto:[email protected].
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.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

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

it.

Quoted 35 lines
Quoted 35 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines

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

Quoted 17 lines

On Tue, Jun 23, 2015 at 7:47 AM, Bian, Naimeng
<[email protected]>
wrote:

-----Original Message-----
From:
[email protected].
org
[mailto:[email protected]
mbed de d.or g] On Behalf Of Martin Jansa
Sent: Friday, June 19, 2015 11:57 PM
To: [email protected]
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

Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

libldb is required by samba4

Signed-off-by: Bian Naimeng
<[email protected]>
---

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

.../do-not-import-target-module-in-configure
.pat
ch
|
32
+++++++++++++++
meta-oe/recipes-support/libldb/libldb_1.1.17.bb

|

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

45

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines

++++++++++++++++++++++
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:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

| Checking for system tdb >=

1.2.13 :

Quoted 118 lines
Quoted 118 lines
Quoted 118 lines

yes

Quoted 117 lines
Quoted 117 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines

| 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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

/libldb/libldb_1.1.17.bb, do_configure) failed
with exit code

'1'

Quoted 11 lines
Quoted 11 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

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.

Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
Quoted 47 lines

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
+<[email protected]>
+
+---
+ldb-1.1.17.orig/buildtools/wafsamba/samba_b
+undl
+ed
+.py

2014-05-05

Quoted 3 lines

17:00:41.000000000 +0900
++++ ldb-1.1.17/buildtools/wafsamba/samba_bundled.
++++ py

2015-06-15

Quoted 1 line

10:09:50.210000217 +0900

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

+@@ -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):

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+@@ -222,6 +222,16 @@ def
+CHECK_BUNDLED_SYSTEM_PYTHON(conf,

li

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

+ 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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

compile
++ # We just check whether the module

exist

Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 70 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines

++ 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"

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+HOMEPAGE = "http://ldb.samba.org"
+SECTION = "libs"
+LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+"
+

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+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"

Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines

+
+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

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

293b95dea7b07891"
+
+SRC_URI[md5sum] = "7c2ab4e3f2a4186493aa06eabbc61cc0"
+SRC_URI[sha256sum] =

"b9a312aad19e9463716d257d8f2529fd7fc1a5ef24f6dcdc0c4a1930d7bdb6e6"

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+
+inherit waf-samba
+
+S = "${WORKDIR}/ldb-${PV}"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

+
+EXTRA_OECONF += "--disable-rpath \
+ --disable-rpath-install \
+ --bundled-libraries=NONE \
+
+--builtin-libraries=replace \
+
+--with-modulesdir=${libdir}/ldb/modules

\

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+
+ --with-privatelibdir=${libdir}/ldb \
+

--with-libiconv=${STAGING_DIR_HOST}${prefix}\

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

+ "
+
+PACKAGES += "pyldb pyldb-dbg pyldb-dev"
+
+FILES_${PN} += "${libdir}/ldb/*"
+FILES_${PN}-dbg += "${libdir}/ldb/.debug/* \
+

${libdir}/ldb/modules/ldb/.debug/*"

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

+
+FILES_pyldb =
+"${libdir}/python${PYTHON_BASEVERSION}/site
+-pac
+ka
+ges/
+*
\
+ ${libdir}/libpyldb-util.so.1 \
+ ${libdir}/libpyldb-util.so.1.1.17

\

Quoted 99 lines
Quoted 92 lines
Quoted 92 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

+ "
+FILES_pyldb-dbg =
"${libdir}/python${PYTHON_BASEVERSION}/site-pa
ckag
es
/.de
bug
\
+

${libdir}/.debug/libpyldb-util.so.1.1.17"

Quoted 81 lines
Quoted 73 lines
Quoted 65 lines
Quoted 58 lines
Quoted 58 lines
Quoted 57 lines
Quoted 39 lines
Quoted 39 lines

+FILES_pyldb-dev = "${libdir}/libpyldb-util.so"
--
1.9.1

--
____________________________________________
___ Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listin
fo/o
pe
nemb
edde
d-deve
l

--
Martin 'JaMa' Jansa jabber: [email protected]
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/o
pene
mb
edde
d-de
vel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/ope
nemb
ed
ded-
deve
l

Quoted 9 lines

--
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/opene
mbed
de
d-de
vel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openemb
edde
d-
deve
l

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
Martin 'JaMa' Jansa jabber: [email protected]

Quoted 7 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-
deve
l

Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-deve
l

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#20 lore raw

PATCH v2 4/7 libtdb: add new recipe

In reply to Bian Naimeng

libtdb is required by samba4

---
 .../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
meta-oe/recipes-support/libtdb/libtdb/do-not-check-xsltproc-manpages.patch new file +15 -0
new file mode 100644
index 0000000..bcc45c9
@@ -0,0 +1,15 @@
+Don't check manpages for xsltproc.
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+--- 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
meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb new file +30 -0
new file mode 100644
index 0000000..0b9e1f2
@@ -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"
Signature · 1 line
1.9.1
#21 lore raw

PATCH v2 5/7 libtevent: add new recipe

In reply to Bian Naimeng

libtevent is required by samba4

---
 .../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
meta-oe/recipes-support/libtevent/libtevent/do-not-check-xsltproc-manpages.patch new file +16 -0
new file mode 100644
index 0000000..1ce4dda
@@ -0,0 +1,16 @@
+Don't check manpages for xsltproc.
+
+Signed-off-by: Bian Naimeng <[email protected]>
+
+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
meta-oe/recipes-support/libtevent/libtevent_0.9.21.bb new file +30 -0
new file mode 100644
index 0000000..5c7c560
@@ -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"
Signature · 1 line
1.9.1
#22 lore raw

PATCH v2 6/7 talloc: upgrade to 2.1.1

In reply to Bian Naimeng
---
 .../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
meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch deleted +0 -23
deleted file mode 100644
index 635c60e..0000000
@@ -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 <[email protected]>
-
-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
- 
meta-oe/recipes-support/talloc/talloc/sepbuild.patch deleted +0 -27
deleted file mode 100644
index 05506c3..0000000
@@ -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
meta-oe/recipes-support/talloc/talloc_2.0.1.bb deleted +0 -45

45 lines not on this page · raw message

meta-oe/recipes-support/talloc/talloc_2.1.1.bb new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
1.9.1
#24 lore raw

Re: [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12

Quoted 7 lines · Bian Naimeng

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 <[email protected]>
AuthorDate: Wed Apr 29 17:25:02 2015 +0800
Commit:     Martin Jansa <[email protected]>
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.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#25 lore raw

Re: [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12

Quoted 31 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, June 18, 2015 4:37 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12

Quoted 9 lines · Bian Naimeng

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 <[email protected]>
AuthorDate: Wed Apr 29 17:25:02 2015 +0800
Commit:     Martin Jansa <[email protected]>
CommitDate: Mon May 11 10:27:28 2015 +0200
Quoted 6 lines
    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

Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

#26 lore raw

Re: [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12

Quoted 35 lines · Naimeng
Quoted 35 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, June 18, 2015 4:37 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12

Quoted 9 lines · Bian Naimeng

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 <[email protected]>
AuthorDate: Wed Apr 29 17:25:02 2015 +0800
Commit:     Martin Jansa <[email protected]>
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.

Quoted 7 lines
Quoted 2 lines

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?

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#27 lore raw

Re: [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12

Quoted 89 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, June 18, 2015 11:31 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12

Quoted 36 lines · Naimeng
Quoted 36 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Thursday, June 18, 2015 4:37 AM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 7/7] samba: upgrade to 4.1.12

Quoted 10 lines · Bian Naimeng

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 <[email protected]>
AuthorDate: Wed Apr 29 17:25:02 2015 +0800
Commit:     Martin Jansa <[email protected]>
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.

Quoted 8 lines
Quoted 2 lines

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

(quoted diff) +0 -2
-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

(quoted diff) +0 -3
-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)
Quoted 6 lines

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

Quoted 3 lines

--
Martin 'JaMa' Jansa jabber: [email protected]