diff options
| author | Bian Naimeng <biannm@cn.fujitsu.com> | 2015-06-17 14:44:10 +0900 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-08-24 14:01:37 +0200 |
| commit | 3a22c67fe39dcb63561881d7b190660d7d8b6644 (patch) | |
| tree | 4d9b8f474bdb015126940973bc30b52f23d3073f | |
| parent | dbbdf3d241f76e2bcfc7e615e771f3907a597aa6 (diff) | |
| download | meta-openembedded-3a22c67fe39dcb63561881d7b190660d7d8b6644.tar.gz | |
talloc: upgrade to 2.1.1
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
4 files changed, 45 insertions, 95 deletions
diff --git a/meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch b/meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch deleted file mode 100644 index 635c60e461..0000000000 --- a/meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | Using the way swig interface is installed leads to a bad path in ${D}. | ||
| 2 | The interface ended up in ${D}/${STAGING_DIR_NATIVE} which is wrong. The | ||
| 3 | fix is to define a variable in recipe which is used in install rule by | ||
| 4 | talloc. | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [build system specific] | ||
| 7 | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | ||
| 8 | |||
| 9 | Index: talloc-2.0.1/talloc.mk | ||
| 10 | =================================================================== | ||
| 11 | --- talloc-2.0.1.orig/talloc.mk 2009-10-11 16:42:24.000000000 +0300 | ||
| 12 | +++ talloc-2.0.1/talloc.mk 2012-09-13 23:15:05.283539702 +0300 | ||
| 13 | @@ -23,8 +23,8 @@ | ||
| 14 | ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig | ||
| 15 | if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi | ||
| 16 | if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi | ||
| 17 | - which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)`swig -swiglib` || true | ||
| 18 | - which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 talloc.i $(DESTDIR)`swig -swiglib` || true | ||
| 19 | + which swig >/dev/null 2>&1 && ${INSTALLCMD} -d $(DESTDIR)/$(SWIGLIBDIR) || true | ||
| 20 | + which swig >/dev/null 2>&1 && ${INSTALLCMD} -m 644 $(srcdir)/$(tallocdir)/talloc.i $(DESTDIR)/$(SWIGLIBDIR) || true | ||
| 21 | |||
| 22 | doc:: talloc.3 talloc.3.html | ||
| 23 | |||
diff --git a/meta-oe/recipes-support/talloc/talloc/sepbuild.patch b/meta-oe/recipes-support/talloc/talloc/sepbuild.patch deleted file mode 100644 index 05506c3423..0000000000 --- a/meta-oe/recipes-support/talloc/talloc/sepbuild.patch +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | Index: talloc-2.0.1/Makefile.in | ||
| 2 | =================================================================== | ||
| 3 | --- talloc-2.0.1.orig/Makefile.in | ||
| 4 | +++ talloc-2.0.1/Makefile.in | ||
| 5 | @@ -33,8 +33,8 @@ EXPORTSFILE = @EXPORTSFILE@ | ||
| 6 | |||
| 7 | all:: showflags $(EXTRA_TARGETS) | ||
| 8 | |||
| 9 | -include $(tallocdir)/rules.mk | ||
| 10 | -include $(tallocdir)/talloc.mk | ||
| 11 | +include $(srcdir)/$(tallocdir)/rules.mk | ||
| 12 | +include $(srcdir)/$(tallocdir)/talloc.mk | ||
| 13 | |||
| 14 | @TALLOC_COMPAT1_MK@ | ||
| 15 | |||
| 16 | Index: talloc-2.0.1/libtalloc.m4 | ||
| 17 | =================================================================== | ||
| 18 | --- talloc-2.0.1.orig/libtalloc.m4 | ||
| 19 | +++ talloc-2.0.1/libtalloc.m4 | ||
| 20 | @@ -33,6 +33,6 @@ if test $ac_cv_sizeof_size_t -lt $ac_cv_ | ||
| 21 | fi | ||
| 22 | |||
| 23 | if test x"$VERSIONSCRIPT" != "x"; then | ||
| 24 | - EXPORTSFILE=talloc.exports | ||
| 25 | + EXPORTSFILE=$srcdir/$tallocdir/talloc.exports | ||
| 26 | AC_SUBST(EXPORTSFILE) | ||
| 27 | fi | ||
diff --git a/meta-oe/recipes-support/talloc/talloc_2.0.1.bb b/meta-oe/recipes-support/talloc/talloc_2.0.1.bb deleted file mode 100644 index 7bbfbc291c..0000000000 --- a/meta-oe/recipes-support/talloc/talloc_2.0.1.bb +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 1 | SUMMARY = "Hierarchical, reference counted memory pool system with destructors" | ||
| 2 | HOMEPAGE = "http://talloc.samba.org" | ||
| 3 | LICENSE = "LGPL-3.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://NEWS;md5=5fe776b23a711c9153ee94bc87e47334" | ||
| 5 | |||
| 6 | inherit autotools pkgconfig | ||
| 7 | |||
| 8 | SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz \ | ||
| 9 | file://install-swig-interface-in-SWINGLIBDIR.patch \ | ||
| 10 | file://sepbuild.patch \ | ||
| 11 | " | ||
| 12 | SRC_URI[md5sum] = "c6e736540145ca58cb3dcb42f91cf57b" | ||
| 13 | SRC_URI[sha256sum] = "5b810527405f29d54f50efd78bf2c89e318f2cd8bed001f22f2a1412fd27c9b4" | ||
| 14 | |||
| 15 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 16 | |||
| 17 | PR = "r2" | ||
| 18 | |||
| 19 | EXTRA_AUTORECONF = "--exclude=autopoint --exclude=aclocal" | ||
| 20 | |||
| 21 | DEPENDS += "swig-native" | ||
| 22 | |||
| 23 | do_install_prepend() { | ||
| 24 | # Hack the way swig interface for talloc is installed | ||
| 25 | # This hack is accompanied by install-swig-interface-in-SWINGLIBDIR.patch | ||
| 26 | if which swig > /dev/null; then | ||
| 27 | SWIGLIBDIR="$(echo $(readlink -f $(swig -swiglib)) | \ | ||
| 28 | sed -e 's#^${STAGING_DIR_NATIVE}##')" | ||
| 29 | fi | ||
| 30 | if [ -n "$SWIGLIBDIR" ]; then | ||
| 31 | export SWIGLIBDIR | ||
| 32 | else | ||
| 33 | echo "No swig found" | ||
| 34 | fi | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install_append() { | ||
| 38 | install -d ${D}${libdir} | ||
| 39 | ln -s libtalloc.so.2.0.1 ${D}${libdir}/libtalloc.so.2.0 | ||
| 40 | ln -s libtalloc.so.2.0 ${D}${libdir}/libtalloc.so.2 | ||
| 41 | ln -s libtalloc.so.2 ${D}${libdir}/libtalloc.so | ||
| 42 | } | ||
| 43 | |||
| 44 | PACKAGES += "${PN}-swig" | ||
| 45 | FILES_${PN}-swig += "${datadir}" | ||
diff --git a/meta-oe/recipes-support/talloc/talloc_2.1.1.bb b/meta-oe/recipes-support/talloc/talloc_2.1.1.bb new file mode 100644 index 0000000000..89c390f01d --- /dev/null +++ b/meta-oe/recipes-support/talloc/talloc_2.1.1.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 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 | SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz" | ||
| 7 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-3.0;md5=bfccfe952269fff2b407dd11f2f3083b \ | ||
| 8 | file://${COREBASE}/meta/files/common-licenses/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891" | ||
| 9 | |||
| 10 | SRC_URI[md5sum] = "5dffb86414218a91864ed4453ba9be07" | ||
| 11 | SRC_URI[sha256sum] = "3e29ce6c3ba3c4f7c2d57ce8cf0fbc24c86618c519f2b2fb6a459025488b6174" | ||
| 12 | |||
| 13 | inherit waf-samba | ||
| 14 | |||
| 15 | EXTRA_OECONF += "--disable-rpath \ | ||
| 16 | --disable-rpath-install \ | ||
| 17 | --bundled-libraries=NONE \ | ||
| 18 | --builtin-libraries=replace \ | ||
| 19 | --disable-silent-rules \ | ||
| 20 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ | ||
| 21 | " | ||
| 22 | |||
| 23 | PACKAGES += "libtalloc libtalloc-dbg libtalloc-dev pytalloc pytalloc-dbg pytalloc-dev" | ||
| 24 | |||
| 25 | #ALLOW_EMPTY_${PN} = "1" | ||
| 26 | FILES_${PN} = "" | ||
| 27 | FILES_${PN}-dev = "" | ||
| 28 | FILES_${PN}-dbg = "" | ||
| 29 | |||
| 30 | FILES_libtalloc = "${libdir}/libtalloc.so.2 \ | ||
| 31 | ${libdir}/libtalloc.so.2.1.1" | ||
| 32 | FILES_libtalloc-dbg = "/usr/src/debug/ \ | ||
| 33 | ${libdir}/.debug/libtalloc.so.2.1.1" | ||
| 34 | FILES_libtalloc-dev = "${includedir}/ \ | ||
| 35 | ${libdir}/libtalloc.so \ | ||
| 36 | ${libdir}/pkgconfig/" | ||
| 37 | |||
| 38 | FILES_pytalloc = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ | ||
| 39 | ${libdir}/libpytalloc-util.so.2 \ | ||
| 40 | ${libdir}/libpytalloc-util.so.2.1.1 \ | ||
| 41 | " | ||
| 42 | FILES_pytalloc-dbg = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug \ | ||
| 43 | ${libdir}/.debug/libpytalloc-util.so.2.1.1" | ||
| 44 | FILES_pytalloc-dev = "${libdir}/libpytalloc-util.so" | ||
| 45 | RDEPENDS_pytalloc = "python" | ||
