talloc: Fix swig interface install path
PATCH 1/4 talloc: Fix swig interface install path
From: Andrei Gherzan <[email protected]>
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.
As well, LICENSE variable modified to reflect the real license:
LGPL-3.0
--- .../install-swig-interface-in-SWINGLIBDIR.patch | 23 ++++++++++++++++++++ meta-oe/recipes-support/talloc/talloc_2.0.1.bb | 17 ++++++++++++-- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch
meta-oe/recipes-support/talloc/talloc/install-swig-interface-in-SWINGLIBDIR.patch new file +23 -0
@@ -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 <[email protected]> + +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 +
meta-oe/recipes-support/talloc/talloc_2.0.1.bb +14 -3
@@ -1,17 +1,19 @@ DESCRIPTION = "Hierarchical, reference counted memory pool system with destructors" HOMEPAGE = "http://talloc.samba.org" -LICENSE = "LGPL" +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" +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 = "r1" +PR = "r2" # autoreconf doesn't work well while reconfiguring included libreplace do_configure () {
@@ -19,9 +21,18 @@ do_configure () { 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}"
Signature · 1 line
1.7.2.5
PATCH 2/4 lockdev: Add recipe based on upcoming 1.0.4 version
--- meta-oe/recipes-support/lockdev/lockdev_git.bb | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-support/lockdev/lockdev_git.bb
meta-oe/recipes-support/lockdev/lockdev_git.bb new file +20 -0
@@ -0,0 +1,20 @@ +DESCRIPTION = "Locking devices library" +SECTION = "libs" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM="file://COPYING;md5=4fbd65380cdd255951079008b364516c" + +PV = "1.0.3+git${SRCPV}" + +SRCREV = "16b899645d32012cc94cc9232f64d4ddaaf0b795" +SRC_URI = "git://anonscm.debian.org/lockdev/lockdev.git;protocol=git" + +S = "${WORKDIR}/git" + +inherit lib_package autotools + +do_configure_prepend () { + ./scripts/git-version > VERSION + + # Make automake happy + touch ChangeLog +}
Signature · 1 line
1.7.2.5
PATCH 3/4 libcec: Update to 1.9.0 version
In reply to Otavio Salvador--- meta-oe/recipes-extended/libcec/libcec_git.bb | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
meta-oe/recipes-extended/libcec/libcec_git.bb +5 -5
@@ -2,13 +2,13 @@ DESCRIPTION = "USB CEC Adaptor communication Library" HOMEPAGE = "http://libcec.pulse-eight.com/" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=185ead350fec5fc223da0f65f9a802af" +LIC_FILES_CHKSUM = "file://COPYING;md5=5e8e16396992369f73f3d28875f846da" -DEPENDS = "udev" +DEPENDS = "udev lockdev" -PR = "r1" -PV = "1.4.0" -SRCREV = "2db8981f49fbd167ddbbf19c1fbadd064abc332a" +PV = "1.9.0" + +SRCREV = "9884e9ffc5293de5bb9092db1ed581f213a678df" SRC_URI = "git://github.com/Pulse-Eight/libcec.git" S = "${WORKDIR}/git"
Signature · 1 line
1.7.2.5
Re: [meta-oe][PATCH 3/4] libcec: Update to 1.9.0 version
I think somebody already sent a patch for this. But as i see, it's not merged. Maybe it was forgotten.
ag
Quoted 38 lines · Otavio Salvador
Signed-off-by Otavio Salvador <[email protected]>--- meta-oe/recipes-extended/libcec/libcec_git.bb | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)(quoted diff) +0
-0libcec_git.bb
index 142b2e2..8b1f086 100644meta-oe/recipes-extended/libcec/libcec_git.bb +5
-6@@ -2,13 +2,13 @@ DESCRIPTION = "USB CEC Adaptor communication Library" HOMEPAGE = "http://libcec.pulse-eight.com/" LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=185ead350fec5fc223da0f65f9a802af" +LIC_FILES_CHKSUM = "file://COPYING;md5=5e8e16396992369f73f3d28875f846da" -DEPENDS = "udev" +DEPENDS = "udev lockdev" -PR = "r1" -PV = "1.4.0" -SRCREV = "2db8981f49fbd167ddbbf19c1fbadd064abc332a" +PV = "1.9.0" + +SRCREV = "9884e9ffc5293de5bb9092db1ed581f213a678df" SRC_URI = "git://github.com/Pulse-Eight/libcec.git" S = "${WORKDIR}/git" --1.7.2.5
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
PATCH 4/4 libtinyxml: Add recipe for 2.6.2
In reply to Otavio SalvadorThis imports the recipe for TinyXML from meta-WebOS@e5c99c2cf, does some minor fixes on the recipe and import the patches included in the Debian package.
We use PR as r5 to ensure the package is updated when removed from meta-WebOS layer.
--- .../libtinyxml/libtinyxml/enforce-use-stl.patch | 20 ++++++ .../libtinyxml/libtinyxml/entity-encoding.patch | 62 ++++++++++++++++++++ .../recipes-support/libtinyxml/libtinyxml_2.6.2.bb | 43 ++++++++++++++ 3 files changed, 125 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-support/libtinyxml/libtinyxml/enforce-use-stl.patch create mode 100644 meta-oe/recipes-support/libtinyxml/libtinyxml/entity-encoding.patch create mode 100644 meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb
meta-oe/recipes-support/libtinyxml/libtinyxml/enforce-use-stl.patch new file +20 -0
@@ -0,0 +1,20 @@ +Description: TinyXml is built with TIXML_USE_STL, so we have to + enforce it when the library is used. +Author: Felix Geyer <[email protected]> + +Upstream-Status: Pending + +diff -Nur tinyxml-2.5.3/tinyxml.h tinyxml-2.5.3.patch/tinyxml.h +--- tinyxml-2.5.3/tinyxml.h 2007-05-07 00:41:23.000000000 +0200 ++++ tinyxml-2.5.3.patch/tinyxml.h 2009-07-08 22:32:03.000000000 +0200 +@@ -26,6 +26,10 @@ + #ifndef TINYXML_INCLUDED + #define TINYXML_INCLUDED + ++#ifndef TIXML_USE_STL ++ #define TIXML_USE_STL ++#endif ++ + #ifdef _MSC_VER + #pragma warning( push ) + #pragma warning( disable : 4530 )
meta-oe/recipes-support/libtinyxml/libtinyxml/entity-encoding.patch new file +62 -0
62 lines not on this page · raw message
meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
1.7.2.5