talloc: rename to libtalloc and cleanup dependency mess
PATCH 2/6 talloc: rename to libtalloc and cleanup dependency mess
To avoid errors when building dev-images (talloc-dev is missing), and to avoid insane empty packages for that, rename talloc -> libtalloc as libtevent shows.
With that, remove dependencies to attr/xattr - unless explicitely enabled via PACKAGECONFIG.
---
.../recipes-connectivity/samba/samba_4.1.12.bb | 2 +-
.../recipes-support/cifs/cifs-utils_git.bb | 2 +-
meta-networking/recipes-support/ctdb/ctdb_2.5.1.bb | 2 +-
.../recipes-support/libldb/libldb_1.1.17.bb | 6 +++---
.../libtalloc/avoid-attr-unless-wanted.patch | 20 +++++++++++++++++
.../libtalloc_2.1.1.bb} | 25 +++++++++-------------
.../recipes-support/libtevent/libtevent_0.9.21.bb | 3 +--
7 files changed, 37 insertions(+), 23 deletions(-)
create mode 100644 meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch
rename meta-networking/recipes-support/{talloc/talloc_2.1.1.bb => libtalloc/libtalloc_2.1.1.bb} (70%)meta-networking/recipes-connectivity/samba/samba_4.1.12.bb +1 -1
@@ -40,7 +40,7 @@ SRC_URI[sha256sum] = "033604674936bf5c77d7df299b0626052b84a41505a6a6afe902f6274f inherit systemd waf-samba cpan-base perlnative -DEPENDS += "readline virtual/libiconv zlib popt talloc libtdb libtevent libldb krb5 ctdb libbsd cyrus-sasl" +DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libldb krb5 ctdb libbsd cyrus-sasl" SYSVINITTYPE_linuxstdbase = "lsb"
meta-networking/recipes-support/cifs/cifs-utils_git.bb +1 -1
@@ -17,7 +17,7 @@ PACKAGECONFIG[cap] = "--with-libcap,--without-libcap,libcap" # when enabled, it creates ${bindir}/cifscreds and --ignore-fail-on-non-empty in do_install_append is needed PACKAGECONFIG[cifscreds] = "--enable-cifscreds,--disable-cifscreds,keyutils" # when enabled, it creates ${sbindir}/cifs.upcall and --ignore-fail-on-non-empty in do_install_append is needed -PACKAGECONFIG[cifsupcall] = "--enable-cifsupcall,--disable-cifsupcall,krb5 talloc keyutils" +PACKAGECONFIG[cifsupcall] = "--enable-cifsupcall,--disable-cifsupcall,krb5 libtalloc keyutils" inherit autotools pkgconfig
meta-networking/recipes-support/ctdb/ctdb_2.5.1.bb +1 -1
@@ -26,7 +26,7 @@ inherit autotools-brokensep pkgconfig systemd PARALLEL_MAKE = "" -DEPENDS += "popt libtevent talloc" +DEPENDS += "popt libtevent libtalloc" do_configure() { oe_runconf
meta-networking/recipes-support/libldb/libldb_1.1.17.bb +3 -3
@@ -3,9 +3,9 @@ HOMEPAGE = "http://ldb.samba.org" SECTION = "libs" LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+" -DEPENDS += "libtdb talloc libtevent popt" -RDEPENDS_${PN} += "libtevent popt libtalloc openldap" -RDEPENDS_pyldb += "python libtdb libtalloc" +DEPENDS += "libtdb libtalloc libtevent popt" +RDEPENDS_${PN} += "openldap" +RDEPENDS_pyldb += "python" SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ file://do-not-import-target-module-while-cross-compile.patch \
meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch new file +20 -0
@@ -0,0 +1,20 @@ +--- a/lib/replace/wscript 2015-11-13 16:04:04.000000000 +0100 ++++ b/lib/replace/wscript 2015-11-13 16:23:20.000000000 +0100 +@@ -636,8 +636,6 @@ + if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' + if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' + if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c' +- if not bld.CONFIG_SET('HAVE_GETXATTR') or bld.CONFIG_SET('XATTR_ADDITIONAL_OPTIONS'): +- REPLACE_SOURCE += ' xattr.c' + + bld.SAMBA_LIBRARY('replace', + source=REPLACE_SOURCE, +@@ -648,7 +646,7 @@ + # at the moment: + # hide_symbols=bld.BUILTIN_LIBRARY('replace'), + private_library=True, +- deps='crypt dl nsl socket rt attr' + extra_libs) ++ deps='crypt dl nsl socket rt ' + extra_libs) + + bld.SAMBA_SUBSYSTEM('replace-test', + source='''test/testsuite.c test/strptime.c
meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb renamed from meta-networking/recipes-support/talloc/talloc_2.1.1.bb +10 -15
@@ -3,7 +3,9 @@ HOMEPAGE = "http://talloc.samba.org" SECTION = "libs" LICENSE = "LGPL-3.0+ & GPL-3.0+" -SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz" +DEPENDS += "libbsd" + +SRC_URI = "http://samba.org/ftp/${BPN}/talloc-${PV}.tar.gz" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \ file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
@@ -12,6 +14,12 @@ SRC_URI[sha256sum] = "3e29ce6c3ba3c4f7c2d57ce8cf0fbc24c86618c519f2b2fb6a45902548 inherit waf-samba +PACKAGECONFIG[attr] = ",,attr" + +SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" + +S = "${WORKDIR}/talloc-${PV}" + EXTRA_OECONF += "--disable-rpath \ --disable-rpath-install \ --bundled-libraries=NONE \
@@ -20,20 +28,7 @@ EXTRA_OECONF += "--disable-rpath \ --with-libiconv=${STAGING_DIR_HOST}${prefix}\ " -PACKAGES += "libtalloc libtalloc-dbg libtalloc-dev pytalloc pytalloc-dbg pytalloc-dev" - -#ALLOW_EMPTY_${PN} = "1" -FILES_${PN} = "" -FILES_${PN}-dev = "" -FILES_${PN}-dbg = "" - -FILES_libtalloc = "${libdir}/libtalloc.so.2 \ - ${libdir}/libtalloc.so.2.1.1" -FILES_libtalloc-dbg = "/usr/src/debug/ \ - ${libdir}/.debug/libtalloc.so.2.1.1" -FILES_libtalloc-dev = "${includedir}/ \ - ${libdir}/libtalloc.so \ - ${libdir}/pkgconfig/" +PACKAGES += "pytalloc pytalloc-dbg pytalloc-dev" FILES_pytalloc = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ ${libdir}/libpytalloc-util.so.2 \
meta-networking/recipes-support/libtevent/libtevent_0.9.21.bb +1 -2
@@ -3,8 +3,7 @@ HOMEPAGE = "http://tevent.samba.org" SECTION = "libs" LICENSE = "LGPLv3+" -DEPENDS += "talloc libcap" -RDEPENDS_${PN} += "libtalloc" +DEPENDS += "libtalloc libcap" RDEPENDS_python-tevent = "python" SRC_URI = "http://samba.org/ftp/tevent/tevent-${PV}.tar.gz"
Signature · 4 lines
1.9.1 -- Jens Rehsack - [email protected]
Hi,
Quoted 8 lines · Jens Rehsack
To avoid errors when building dev-images (talloc-dev is missing), and to avoid insane empty packages for that, rename talloc -> libtalloc as libtevent shows.
With that, remove dependencies to attr/xattr - unless explicitely enabled via PACKAGECONFIG.
Signed-off-by Jens Rehsack <[email protected]>
I am trying to build dev images using jethro and this patch fixes the following failure I encounter during rootfs creation:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for libldb-dev:
* talloc (= 2.1.1-r0) *
* opkg_install_cmd: Cannot install package libldb-dev.
Could you please apply this patch to jethro branch also?
Thank you very much
Reinette
Quoted 8 lines · Jens Rehsack
meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb renamed from meta-networking/recipes-support/talloc/talloc_2.1.1.bb +0
-0
meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb HOMEPAGE ="http://talloc.samba.org" · line 8
Quoted 7 lines
meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb renamed from meta-networking/recipes-support/talloc/talloc_2.1.1.bb +3
-1@@ -3,7 +3,9 @@ HOMEPAGE ="http://talloc.samba.org" SECTION = "libs" LICENSE = "LGPL-3.0+ & GPL-3.0+" -SRC_URI ="http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz" +DEPENDS += "libbsd" + +SRC_URI ="http://samba.org/ftp/${BPN}/talloc-${PV}.tar.gz"
Both the ${BPN} are needed to be replaced with talloc.
--Kai
Quoted 3 lines
meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb renamed from meta-networking/recipes-support/talloc/talloc_2.1.1.bb +0
-0LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \ file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
Signature · 2 lines
Regards, Neil | Kai Kang