[oe-commits] Khem Raj : kstars-embedded_0.8.5.bb: Fix complilation with gcc 4.5

git version control git at git.openembedded.org
Wed Oct 27 01:24:20 UTC 2010


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

Author: Khem Raj <raj.khem at gmail.com>
Date:   Tue Oct 26 16:41:01 2010 -0700

kstars-embedded_0.8.5.bb: Fix complilation with gcc 4.5

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

---

 .../gcc45-compilation-fixes.patch                  |   34 ++++++++++++++++++++
 recipes/kstars/kstars-embedded_0.8.5.bb            |    6 ++-
 2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/recipes/kstars/kstars-embedded-0.8.5/gcc45-compilation-fixes.patch b/recipes/kstars/kstars-embedded-0.8.5/gcc45-compilation-fixes.patch
new file mode 100644
index 0000000..4004ede
--- /dev/null
+++ b/recipes/kstars/kstars-embedded-0.8.5/gcc45-compilation-fixes.patch
@@ -0,0 +1,34 @@
+Index: kstars/kstars.cpp
+===================================================================
+--- kstars.orig/kstars.cpp
++++ kstars/kstars.cpp
+@@ -37,9 +37,9 @@
+ #include <qpe/mimetype.h>
+ #include <qpe/applnk.h>
+ 
+-#include <stdio.h>
+-#include <stdlib.h>
+-#include <stream.h>
++#include <cstdio>
++#include <cstdlib>
++#include <iostream>
+ 
+ #include "timedialog.h"
+ #include "locationdialog.h"
+Index: kstars/skymap.cpp
+===================================================================
+--- kstars.orig/skymap.cpp
++++ kstars/skymap.cpp
+@@ -36,9 +36,9 @@
+ #include <qpe/mimetype.h>
+ #include <qpe/applnk.h>
+ 
+-#include <math.h>
+-#include <stdlib.h>
+-#include <stream.h>
++#include <cmath>
++#include <cstdlib>
++#include <iostream>
+ #include <unistd.h>
+ 
+ #include "kstars.h"
diff --git a/recipes/kstars/kstars-embedded_0.8.5.bb b/recipes/kstars/kstars-embedded_0.8.5.bb
index 8dac901..a792972 100644
--- a/recipes/kstars/kstars-embedded_0.8.5.bb
+++ b/recipes/kstars/kstars-embedded_0.8.5.bb
@@ -5,9 +5,11 @@ LICENSE = "GPL"
 APPNAME = "kstars"
 APPTYPE = "binary"
 APPDESKTOP = "${WORKDIR}/apps/Applications"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "http://kstars.sourceforge.net/kstars-embedded-${PV}.tar.gz"
+SRC_URI = "http://kstars.sourceforge.net/kstars-embedded-${PV}.tar.gz \
+           file://gcc45-compilation-fixes.patch \
+          "
 S = "${WORKDIR}/kstars"
 
 inherit opie





More information about the Openembedded-commits mailing list