Skip to contentSkip to conversation

glibmm: Fix compile error with latest glib

PATCH In review Gary Thomas 3 participants 4 messages Jul 30, 2012 – Aug 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glibmm: Fix compile error with latest glib

Internal <glib/XXX.h> files should not be included directly.

---
 .../glib-2.0/glibmm/fix-compile-error.patch        |   13 +++++++++++++
 meta-oe/recipes-core/glib-2.0/glibmm_2.28.2.bb     |    5 ++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-core/glib-2.0/glibmm/fix-compile-error.patch
meta-oe/recipes-core/glib-2.0/glibmm/fix-compile-error.patch new file +13 -0
new file mode 100644
index 0000000..33c6215
@@ -0,0 +1,13 @@
+Index: glibmm-2.28.2/glib/glibmm/varianttype.cc
+===================================================================
+--- glibmm-2.28.2.orig/glib/glibmm/varianttype.cc
++++ glibmm-2.28.2/glib/glibmm/varianttype.cc
+@@ -23,7 +23,7 @@
+ 
+ #include <glibmm/varianttype.h>
+ #include <glibmm/utility.h>
+-#include <glib/gvarianttype.h>
++#include <glib.h>
+ 
+ namespace Glib
+ {
meta-oe/recipes-core/glib-2.0/glibmm_2.28.2.bb +4 -1
index 6604091..7ec0be2 100644
@@ -6,4 +6,7 @@ SRC_URI[archive.md5sum] = "cf33d1861d09fb2952a6a1d69e0502e3"
 SRC_URI[archive.sha256sum] = "7b67178363f8494c94f8b3dd704a4c8db7ad75a253fc84a4ad229e5e179ec192"
 
 SRC_URI += " file://remove-examples.patch \
-             file://glib-2.32.patch"
+             file://fix-compile-error.patch \
+"
+
+
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 libxml++: New recipe

Library for C++ bindings to libxml

---
 meta-oe/recipes-core/libxml/libxml++_2.35.3.bb |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-oe/recipes-core/libxml/libxml++_2.35.3.bb
meta-oe/recipes-core/libxml/libxml++_2.35.3.bb new file +16 -0
new file mode 100644
index 0000000..ca9388c
@@ -0,0 +1,16 @@
+SUMMARY = "C++ wrapper for libxml library"
+DESCRIPTION = "C++ wrapper for libxml library"
+HOMEPAGE = "http://libxmlplusplus.sourceforge.net"
+BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml%2B%2B"
+SECTION = "libs"
+LICENSE = "GPLv2"
+
+SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.35/libxml++-2.35.3.tar.xz"
+SRC_URI[md5sum] = "196a2dcdc84ab987fe3852b3f29cafd7"
+SRC_URI[sha256sum] = "715a4214bbff90365cc8406a28e427febd90461006d608fbdcdcea7fc9891eaf"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34 "
+
+DEPENDS = "libxml2 glibmm"
+
+inherit autotools pkgconfig
+
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH] [meta-oe] libxml++: New recipe

Quoted 14 lines · Gary Thomas

Library for C++ bindings to libxml

---
 meta-oe/recipes-core/libxml/libxml++_2.35.3.bb |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-oe/recipes-core/libxml/libxml++_2.35.3.bb
meta-oe/recipes-core/libxml/libxml++_2.35.3.bb new file +0 -0
new file mode 100644
index 0000000..ca9388c

meta-oe/recipes-core/libxml/libxml++_2.35.3.bb line 8

Quoted 8 lines
meta-oe/recipes-core/libxml/libxml++_2.35.3.bb new file +8 -0
@@ -0,0 +1,16 @@
+SUMMARY = "C++ wrapper for libxml library"
+DESCRIPTION = "C++ wrapper for libxml library"
+HOMEPAGE = "http://libxmlplusplus.sourceforge.net"
+BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml%2B%2B"
+SECTION = "libs"
+LICENSE = "GPLv2"
+
+SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.35/libxml++-2.35.3.tar.xz"

Use something like:
SHRT_VER = "${@d.getVar('PV',True).split('.')[0]}.${@d.getVar('PV',True).split('.')[1]}" SRC_URI = "${GNOME_MIRROR}/${BPN}/${SHRT_VER}/${BP}.tar.xz"

Quoted 16 lines
meta-oe/recipes-core/libxml/libxml++_2.35.3.bb new file +8 -0
+SRC_URI[md5sum] = "196a2dcdc84ab987fe3852b3f29cafd7"
+SRC_URI[sha256sum] = "715a4214bbff90365cc8406a28e427febd90461006d608fbdcdcea7fc9891eaf"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34 "
+
+DEPENDS = "libxml2 glibmm"
+
+inherit autotools pkgconfig
+
Signature · 7 lines
1.7.9.5


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
In reply to Gary Thomas

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 30-07-12 17:04, Gary Thomas schreef:

Quoted 26 lines

Internal <glib/XXX.h> files should not be included directly.

.../glib-2.0/glibmm/fix-compile-error.patch | 13 +++++++++++++
meta-oe/recipes-core/glib-2.0/glibmm_2.28.2.bb | 5 ++++- 2 files
changed, 17 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-core/glib-2.0/glibmm/fix-compile-error.patch

(quoted diff) +0 -0

b/meta-oe/recipes-core/glib-2.0/glibmm/fix-compile-error.patch new file mode 100644 index 0000000..33c6215 --- /dev/null +++ b/meta-oe/recipes-core/glib-2.0/glibmm/fix-compile-error.patch @@ -0,0 +1,13 @@ +Index: glibmm-2.28.2/glib/glibmm/varianttype.cc +=================================================================== +--- glibmm-2.28.2.orig/glib/glibmm/varianttype.cc ++++ glibmm-2.28.2/glib/glibmm/varianttype.cc +@@ -23,7 +23,7 @@ + + #include <glibmm/varianttype.h> + #include <glibmm/utility.h> +-#include <glib/gvarianttype.h> ++#include <glib.h> + + namespace Glib + { diff --git a/meta-oe/recipes-core/glib-2.0/glibmm_2.28.2.bb b/meta-oe/recipes-core/glib-2.0/glibmm_2.28.2.bb index 6604091..7ec0be2 100644 --- a/meta-oe/recipes-core/glib-2.0/glibmm_2.28.2.bb +++ b/meta-oe/recipes-core/glib-2.0/glibmm_2.28.2.bb @@ -6,4 +6,7 @@ SRC_URI[archive.md5sum] = "cf33d1861d09fb2952a6a1d69e0502e3" SRC_URI[archive.sha256sum] = "7b67178363f8494c94f8b3dd704a4c8db7ad75a253fc84a4ad229e5e179ec192"

Quoted 3 lines

SRC_URI += " file://remove-examples.patch \ -
file://glib-2.32.patch" + file://fix-compile-error.patch \
+" + +

Missing PR bump

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFQIOxwMkyGM64RGpERAkycAJ4hOFLKhAA8mTFHrfBhqUdoJgEUlwCgiUzJ zpg2yHjwZv9RFJEdV4DCmE8=
=7PlM
-----END PGP SIGNATURE-----