[oe] [meta-oe][PATCH 6/7] libtdb: add new recipe

Martin Jansa martin.jansa at gmail.com
Tue Jun 16 11:44:21 UTC 2015


On Mon, Jun 15, 2015 at 04:52:15PM +0800, Bian Naimeng wrote:
> libtdb is required by samba4

It conflicts with samba3, should we just replace samba_3* with samba_4?

NOTE: recipe libtdb-1.3.0-r0: task do_populate_sysroot: Started
ERROR: The recipe libtdb is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/pkgdata/runtime-rprovides/libtdb/libtdb
 Matched in manifest-qemuarm-samba.packagedata
 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/pkgdata/runtime-reverse/libtdb1
 Matched in manifest-qemuarm-samba.packagedata
 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/pkgdata/runtime/libtdb.packaged
 Matched in manifest-qemuarm-samba.packagedata
 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/pkgdata/runtime/libtdb
 Matched in manifest-qemuarm-samba.packagedata
 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/pkgdata/shlibs2/libtdb.list
 Matched in manifest-qemuarm-samba.packagedata
Please verify which recipe should provide the above files.
The build has stopped as continuing in this scenario WILL break things, if not now, possibly in the future (we've seen builds fail several months later). If the system knew how to recover from this automatically it would however there are several different scenarios which can result in this and we don't know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error however switching DISTRO_FEATURES on an existing build directory is not supported, you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above.
ERROR: If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.
ERROR: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/libtdb/1.3.0-r0/temp/log.do_packagedata.27608
NOTE: recipe libtdb-1.3.0-r0: task do_packagedata: Failed
ERROR: Task 27734 (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb, do_packagedata) failed with exit code '1'
NOTE: Running task 20344 of 31972 (ID: 27663, /home/jenkins/oe/world/shr-core/meta-openembedded/meta-gnome/recipes-gnome/evince/evince_2.32.0.bb, do_package)
ERROR: The recipe libtdb is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/usr/lib/libtdb.so.1
 Matched in manifest-qemuarm-samba.populate_sysroot
 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/usr/lib/libtdb.so
 Matched in manifest-qemuarm-samba.populate_sysroot
 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/usr/lib/pkgconfig/tdb.pc
 Matched in manifest-qemuarm-samba.populate_sysroot
 /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemuarm/usr/include/tdb.h
 Matched in manifest-qemuarm-samba.populate_sysroot
Please verify which recipe should provide the above files.
The build has stopped as continuing in this scenario WILL break things, if not now, possibly in the future (we've seen builds fail several months later). If the system knew how to recover from this automatically it would however there are several different scenarios which can result in this and we don't know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error however switching DISTRO_FEATURES on an existing build directory is not supported, you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above.
ERROR: If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.
ERROR: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/libtdb/1.3.0-r0/temp/log.do_populate_sysroot.27647
NOTE: recipe libtdb-1.3.0-r0: task do_populate_sysroot: Failed
ERROR: Task 27729 (/home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-support/libtdb/libtdb_1.3.0.bb, do_populate_sysroot) failed with exit code '1'

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

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



More information about the Openembedded-devel mailing list