From d9f64014e9c71383a58536716181e12ecf063f0a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 26 Oct 2010 16:42:31 -0700 Subject: ubahnnav_0.4.1.bb: Fix complilation with gcc 4.5 Signed-off-by: Khem Raj --- .../ubahnnav/gcc45-compilation-fixes.patch | 109 +++++++++++++++++++++ recipes/ubahnnav/ubahnnav_0.4.1.bb | 6 +- 2 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 recipes/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch diff --git a/recipes/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch b/recipes/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch new file mode 100644 index 0000000000..73e46b5441 --- /dev/null +++ b/recipes/ubahnnav/ubahnnav/gcc45-compilation-fixes.patch @@ -0,0 +1,109 @@ +Index: ubahnnav-0.4.1/src/libsubwaymap/baseclasses.cpp +=================================================================== +--- ubahnnav-0.4.1.orig/src/libsubwaymap/baseclasses.cpp ++++ ubahnnav-0.4.1/src/libsubwaymap/baseclasses.cpp +@@ -493,7 +493,7 @@ int String::strnicmp(const char *rval, i + + + +-ostream& operator<<(ostream& os, const String& s) ++std::ostream& operator<<(std::ostream& os, const String& s) + { + return os << s._string; + } +Index: ubahnnav-0.4.1/src/libsubwaymap/baseclasses.h +=================================================================== +--- ubahnnav-0.4.1.orig/src/libsubwaymap/baseclasses.h ++++ ubahnnav-0.4.1/src/libsubwaymap/baseclasses.h +@@ -36,12 +36,14 @@ + #include + #include + +-#include ++#include + + #ifdef MPATROL + #include + #endif + ++using namespace std; ++ + class ObjectList; + class ObjectListIterator; + class ObjectListContainer; +Index: ubahnnav-0.4.1/src/libsubwaymap/debug.h +=================================================================== +--- ubahnnav-0.4.1.orig/src/libsubwaymap/debug.h ++++ ubahnnav-0.4.1/src/libsubwaymap/debug.h +@@ -21,7 +21,7 @@ + #ifndef __DEBUG_H__ + #define __DEBUG_H__ + +- ++using namespace std; + #include "baseclasses.h" + + class Debug : public Object +Index: ubahnnav-0.4.1/src/libsubwaymap/subwaymap/SMXMLWriter.h +=================================================================== +--- ubahnnav-0.4.1.orig/src/libsubwaymap/subwaymap/SMXMLWriter.h ++++ ubahnnav-0.4.1/src/libsubwaymap/subwaymap/SMXMLWriter.h +@@ -23,15 +23,15 @@ + + #include "baseclasses.h" + #include "SMError.h" +-#include +-#include ++#include ++#include + + +-class SMXMLWriter : public ofstream ++class SMXMLWriter : public std::ofstream + { + public: +- SMXMLWriter(const char *filename) : ofstream(filename) { +- *this<< "" << endl <" << std::endl < ++#include + #include "baseclasses.h" + + +Index: ubahnnav-0.4.1/src/ubahnnav/UBahnNavMain.cpp +=================================================================== +--- ubahnnav-0.4.1.orig/src/ubahnnav/UBahnNavMain.cpp ++++ ubahnnav-0.4.1/src/ubahnnav/UBahnNavMain.cpp +@@ -18,7 +18,7 @@ + ######################################################################### + */ + +-#include ++#include + #include + #include + diff --git a/recipes/ubahnnav/ubahnnav_0.4.1.bb b/recipes/ubahnnav/ubahnnav_0.4.1.bb index 72f882b5f2..89d91fbc7b 100644 --- a/recipes/ubahnnav/ubahnnav_0.4.1.bb +++ b/recipes/ubahnnav/ubahnnav_0.4.1.bb @@ -10,10 +10,12 @@ LICENSE = "GPL" APPNAME = "ubahnnav" APPTYPE = "binary" APPDESKTOP = "${S}/src/ubahnnav" -PR = "r0" +PR = "r1" SRC_URI = "http://ubahnstation.net/source/ubahnnav-${PV}.tar.gz \ - file://qmake.patch" + file://qmake.patch \ + file://gcc45-compilation-fixes.patch \ + " S = "${WORKDIR}/ubahnnav-${PV}" inherit opie -- cgit 1.2.3-korg