From 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 10 Oct 2014 03:20:04 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- .../install-swig-interface-in-SWINGLIBDIR.patch | 23 +++++++++++++ meta-oe/recipes-support/talloc/talloc_2.0.1.bb | 38 ++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch create mode 100644 meta-oe/recipes-support/talloc/talloc_2.0.1.bb (limited to 'meta-oe/recipes-support/talloc') 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 new file mode 100644 index 0000000000..e1339a078e --- /dev/null +++ b/meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch @@ -0,0 +1,23 @@ +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 + +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 talloc.i $(DESTDIR)/$(SWIGLIBDIR) || true + + doc:: talloc.3 talloc.3.html + diff --git a/meta-oe/recipes-support/talloc/talloc_2.0.1.bb b/meta-oe/recipes-support/talloc/talloc_2.0.1.bb new file mode 100644 index 0000000000..6b7e4f1cfd --- /dev/null +++ b/meta-oe/recipes-support/talloc/talloc_2.0.1.bb @@ -0,0 +1,38 @@ +SUMMARY = "Hierarchical, reference counted memory pool system with destructors" +HOMEPAGE = "http://talloc.samba.org" +LICENSE = "LGPL-3.0" +LIC_FILES_CHKSUM = "file://NEWS;md5=5fe776b23a711c9153ee94bc87e47334" + +inherit autotools pkgconfig + +SRC_URI = "http://samba.org/ftp/${BPN}/${BPN}-${PV}.tar.gz \ + file://install-swig-interface-in-SWINGLIBDIR.patch \ +" +SRC_URI[md5sum] = "c6e736540145ca58cb3dcb42f91cf57b" +SRC_URI[sha256sum] = "5b810527405f29d54f50efd78bf2c89e318f2cd8bed001f22f2a1412fd27c9b4" + +TARGET_CC_ARCH += "${LDFLAGS}" + +PR = "r2" + +# autoreconf doesn't work well while reconfiguring included libreplace +do_configure () { + gnu-configize + oe_runconf +} + +do_install_prepend() { + # Hack the way swig interface for talloc is installed + # This hack is accompanied by install-swig-interface-in-SWINGLIBDIR.patch + type swig > /dev/null 2>&1 && SWIGLIBDIR=`swig -swiglib` && SWIGLIBDIR=${SWIGLIBDIR##${STAGING_DIR_NATIVE}} && export SWIGLIBDIR || echo "No swig found" +} + +do_install_append() { + install -d ${D}${libdir} + ln -s libtalloc.so.2.0.1 ${D}${libdir}/libtalloc.so.2.0 + ln -s libtalloc.so.2.0 ${D}${libdir}/libtalloc.so.2 + ln -s libtalloc.so.2 ${D}${libdir}/libtalloc.so +} + +PACKAGES += "${PN}-swig" +FILES_${PN}-swig += "${datadir}" -- cgit v1.2.3-54-g00ecf