[oe-commits] Kirtika Ruchandani : wvstreams_4.4.1.bb: Make it compilable with gcc 4.3

git version control git at git.openembedded.org
Sat Aug 8 03:32:56 UTC 2009


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

Author: Kirtika Ruchandani <kirtibr at gmail.com>
Date:   Fri Aug  7 20:32:18 2009 -0700

wvstreams_4.4.1.bb: Make it compilable with gcc 4.3

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

---

 recipes/wvstreams/files/dont-forget-header.patch |   13 +++++++++++++
 recipes/wvstreams/files/gcc4.3.patch             |   15 +++++++++++++++
 recipes/wvstreams/wvstreams_4.4.1.bb             |   11 ++++++++---
 3 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/recipes/wvstreams/files/dont-forget-header.patch b/recipes/wvstreams/files/dont-forget-header.patch
new file mode 100644
index 0000000..9befe49
--- /dev/null
+++ b/recipes/wvstreams/files/dont-forget-header.patch
@@ -0,0 +1,13 @@
+Index: wvstreams-4.4.1/include/uniconfkey.h
+===================================================================
+--- wvstreams-4.4.1.orig/include/uniconfkey.h	2009-07-28 17:42:39.000000000 +0530
++++ wvstreams-4.4.1/include/uniconfkey.h	2009-07-28 17:42:55.000000000 +0530
+@@ -9,7 +9,7 @@
+ 
+ #include "wvstring.h"
+ #include "wvlinklist.h"
+-
++#include <limits.h>
+ 
+ // The Python headers try to #define ANY as void.  If we're building Python
+ // wrappers, get rid of that.
diff --git a/recipes/wvstreams/files/gcc4.3.patch b/recipes/wvstreams/files/gcc4.3.patch
new file mode 100644
index 0000000..f7315ee
--- /dev/null
+++ b/recipes/wvstreams/files/gcc4.3.patch
@@ -0,0 +1,15 @@
+Index: wvstreams-4.4.1/include/wvserialize.h
+===================================================================
+--- wvstreams-4.4.1.orig/include/wvserialize.h	2009-07-28 17:46:50.000000000 +0530
++++ wvstreams-4.4.1/include/wvserialize.h	2009-07-28 17:48:30.000000000 +0530
+@@ -348,8 +348,9 @@
+  * (zero) character.  Serialized WvStrings are guaranteed not to contain nul
+  * except as the last character.
+  */
++/*No storage class allowed here as per gcc 4.3 specs*/
+ template <>
+-extern WvString _wv_deserialize<WvString>(WvBuf &buf);
++WvString _wv_deserialize<WvString>(WvBuf &buf);
+ 
+ 
+ /** Deserialize a WvBuf. */
diff --git a/recipes/wvstreams/wvstreams_4.4.1.bb b/recipes/wvstreams/wvstreams_4.4.1.bb
index 8cf1d1b..6aeefc7 100644
--- a/recipes/wvstreams/wvstreams_4.4.1.bb
+++ b/recipes/wvstreams/wvstreams_4.4.1.bb
@@ -1,12 +1,17 @@
 HOMEPAGE = "http://alumnit.ca/wiki/index.php?page=WvStreams"
 LICENSE = "LGPL"
 DESCRIPTION = "WvStreams is a network programming library in C++"
-DEPENDS = "zlib openssl (>= 0.9.8)"
+#DEPENDS = "zlib openssl (>= 0.9.8)"
+DEPENDS = "zlib openssl"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "http://wvstreams.googlecode.com/files/${PN}-${PV}.tar.gz \
-           file://build-fixes-and-sanity.patch;patch=1 "
+	file://build-fixes-and-sanity.patch;patch=1 \
+	file://dont-forget-header.patch;patch=1 \
+	file://gcc4.3.patch;patch=1 \
+	"
+
 
 inherit autotools pkgconfig
 





More information about the Openembedded-commits mailing list