[oe-commits] Khem Raj : apex-env_1.5.14.bb: Fix compile error discovered with gcc 4.5

git version control git at git.openembedded.org
Sun Jan 9 22:15:06 UTC 2011


Module: openembedded.git
Branch: master
Commit: 198ced43fdaf50dc9672f6f70eb4c6440d60b4ff
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=198ced43fdaf50dc9672f6f70eb4c6440d60b4ff

Author: Khem Raj <raj.khem at gmail.com>
Date:   Sun Jan  9 14:09:57 2011 -0800

apex-env_1.5.14.bb: Fix compile error discovered with gcc 4.5

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/apex/apex-env_1.5.14.bb             |    3 ++-
 recipes/apex/files/invalid-conversion.patch |   13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/recipes/apex/apex-env_1.5.14.bb b/recipes/apex/apex-env_1.5.14.bb
index 38a8960..896d8d1 100644
--- a/recipes/apex/apex-env_1.5.14.bb
+++ b/recipes/apex/apex-env_1.5.14.bb
@@ -3,10 +3,11 @@ SECTION = "misc"
 PRIORITY = "optional"
 HOMEPAGE = "http://wiki.buici.com/twiki/bin/view/Main/ApexBootloader"
 LICENSE = "GPL"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.buici.com/pub/apex/apex-${PV}.tar.gz \
 	file://find-apex-partition.patch \
+	file://invalid-conversion.patch \
 	"
 S = ${WORKDIR}/apex-${PV}/usr
 
diff --git a/recipes/apex/files/invalid-conversion.patch b/recipes/apex/files/invalid-conversion.patch
new file mode 100644
index 0000000..496d0d4
--- /dev/null
+++ b/recipes/apex/files/invalid-conversion.patch
@@ -0,0 +1,13 @@
+Index: usr/link.cc
+===================================================================
+--- usr/link.cc
++++ usr/link.cc
+@@ -232,7 +232,7 @@ static struct descriptor parse_region (c
+   struct descriptor d;
+   memset (&d, 0, sizeof (d));
+ 
+-  char* pch;
++  const char* pch;
+   if ((pch = index (sz, ':'))) {
+     int c = pch - sz;
+     if (c > sizeof (d.driver) - 1)





More information about the Openembedded-commits mailing list