[oe-commits] Michael 'Mickey' Lauer : python-pyid3lib: fix compiling for gcc4.x

git version control git at git.openembedded.org
Sun Jan 17 15:06:03 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 8cb3620fee3c4011367f53d7c69d014e21d45461
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8cb3620fee3c4011367f53d7c69d014e21d45461

Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Sun Jan 17 16:06:29 2010 +0100

python-pyid3lib: fix compiling for gcc4.x

---

 recipes/python/python-pyid3lib/gcc4-fix.patch |   13 +++++++++++++
 recipes/python/python-pyid3lib_0.5.1.bb       |    9 +++++----
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/recipes/python/python-pyid3lib/gcc4-fix.patch b/recipes/python/python-pyid3lib/gcc4-fix.patch
new file mode 100644
index 0000000..cfd9727
--- /dev/null
+++ b/recipes/python/python-pyid3lib/gcc4-fix.patch
@@ -0,0 +1,13 @@
+Index: pyid3lib-0.5.1/pyid3lib.cc
+===================================================================
+--- pyid3lib-0.5.1.orig/pyid3lib.cc
++++ pyid3lib-0.5.1/pyid3lib.cc
+@@ -1013,7 +1013,7 @@
+     {
+         ID3_Frame* frame;
+ 	const char* str;
+-	char* slash;
++	const char* slash;
+         ID3_Field* fld;
+ 	int i;
+ 
diff --git a/recipes/python/python-pyid3lib_0.5.1.bb b/recipes/python/python-pyid3lib_0.5.1.bb
index bf7e3d0..1d24b34 100644
--- a/recipes/python/python-pyid3lib_0.5.1.bb
+++ b/recipes/python/python-pyid3lib_0.5.1.bb
@@ -4,11 +4,12 @@ PRIORITY = "optional"
 LICENSE = "LGPL"
 DEPENDS = "id3lib"
 SRCNAME = "pyid3lib"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/pyid3lib/${SRCNAME}-${PV}.tar.bz2"
+SRC_URI = "\
+  ${SOURCEFORGE_MIRROR}/pyid3lib/${SRCNAME}-${PV}.tar.bz2\
+  file://gcc4-fix.patch;patch=1 \
+"
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit distutils
-
-





More information about the Openembedded-commits mailing list