diff options
| author | Jens Rehsack <rehsack@gmail.com> | 2015-11-19 20:44:32 +0100 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-01-04 12:58:10 -0500 |
| commit | 0db903b44c8f983823a4f35622567efbc13f0f5b (patch) | |
| tree | 256f632ccd3cda26e923adc79c0e48cc3a4389c4 /meta-networking/recipes-support/libtalloc | |
| parent | 40d6a19aa300eb114ea4aa2de3c27a3fc22706f7 (diff) | |
| download | meta-openembedded-0db903b44c8f983823a4f35622567efbc13f0f5b.tar.gz | |
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.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/libtalloc')
| -rw-r--r-- | meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch | 20 | ||||
| -rw-r--r-- | meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb | 40 |
2 files changed, 60 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch b/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch new file mode 100644 index 0000000000..a3ee9ccd97 --- /dev/null +++ b/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | --- a/lib/replace/wscript 2015-11-13 16:04:04.000000000 +0100 | ||
| 2 | +++ b/lib/replace/wscript 2015-11-13 16:23:20.000000000 +0100 | ||
| 3 | @@ -636,8 +636,6 @@ | ||
| 4 | if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' | ||
| 5 | if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' | ||
| 6 | if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c' | ||
| 7 | - if not bld.CONFIG_SET('HAVE_GETXATTR') or bld.CONFIG_SET('XATTR_ADDITIONAL_OPTIONS'): | ||
| 8 | - REPLACE_SOURCE += ' xattr.c' | ||
| 9 | |||
| 10 | bld.SAMBA_LIBRARY('replace', | ||
| 11 | source=REPLACE_SOURCE, | ||
| 12 | @@ -648,7 +646,7 @@ | ||
| 13 | # at the moment: | ||
| 14 | # hide_symbols=bld.BUILTIN_LIBRARY('replace'), | ||
| 15 | private_library=True, | ||
| 16 | - deps='crypt dl nsl socket rt attr' + extra_libs) | ||
| 17 | + deps='crypt dl nsl socket rt ' + extra_libs) | ||
| 18 | |||
| 19 | bld.SAMBA_SUBSYSTEM('replace-test', | ||
| 20 | source='''test/testsuite.c test/strptime.c | ||
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb b/meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb new file mode 100644 index 0000000000..9016f42af1 --- /dev/null +++ b/meta-networking/recipes-support/libtalloc/libtalloc_2.1.1.bb | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | SUMMARY = "Hierarchical, reference counted memory pool system with destructors" | ||
| 2 | HOMEPAGE = "http://talloc.samba.org" | ||
| 3 | SECTION = "libs" | ||
| 4 | LICENSE = "LGPL-3.0+ & GPL-3.0+" | ||
| 5 | |||
| 6 | DEPENDS += "libbsd" | ||
| 7 | |||
| 8 | SRC_URI = "http://samba.org/ftp/${BPN}/talloc-${PV}.tar.gz" | ||
| 9 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \ | ||
| 10 | file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891" | ||
| 11 | |||
| 12 | SRC_URI[md5sum] = "5dffb86414218a91864ed4453ba9be07" | ||
| 13 | SRC_URI[sha256sum] = "3e29ce6c3ba3c4f7c2d57ce8cf0fbc24c86618c519f2b2fb6a459025488b6174" | ||
| 14 | |||
| 15 | inherit waf-samba | ||
| 16 | |||
| 17 | PACKAGECONFIG[attr] = ",,attr" | ||
| 18 | |||
| 19 | SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr-unless-wanted.patch', d)}" | ||
| 20 | |||
| 21 | S = "${WORKDIR}/talloc-${PV}" | ||
| 22 | |||
| 23 | EXTRA_OECONF += "--disable-rpath \ | ||
| 24 | --disable-rpath-install \ | ||
| 25 | --bundled-libraries=NONE \ | ||
| 26 | --builtin-libraries=replace \ | ||
| 27 | --disable-silent-rules \ | ||
| 28 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ | ||
| 29 | " | ||
| 30 | |||
| 31 | PACKAGES += "pytalloc pytalloc-dbg pytalloc-dev" | ||
| 32 | |||
| 33 | FILES_pytalloc = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ | ||
| 34 | ${libdir}/libpytalloc-util.so.2 \ | ||
| 35 | ${libdir}/libpytalloc-util.so.2.1.1 \ | ||
| 36 | " | ||
| 37 | FILES_pytalloc-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \ | ||
| 38 | ${libdir}/.debug/libpytalloc-util.so.2.1.1" | ||
| 39 | FILES_pytalloc-dev = "${libdir}/libpytalloc-util.so" | ||
| 40 | RDEPENDS_pytalloc = "python" | ||
