opensp 1.5: Fix compile issues with various compilers, fix from
authorJamie Lenehan <lenehan@twibble.org>
Sat, 2 Jun 2007 02:34:13 +0000 (02:34 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Sat, 2 Jun 2007 02:34:13 +0000 (02:34 +0000)
opensp cvs and also as specified in bug #301. Tested with gcc 3.4.4
and 4.1.2 for both opensp and opensp-native. Fixes #301 and #2366.

packages/opensp/opensp-1.5/rangmap-fix.patch [new file with mode: 0644]
packages/opensp/opensp_1.5.bb

diff --git a/packages/opensp/opensp-1.5/rangmap-fix.patch b/packages/opensp/opensp-1.5/rangmap-fix.patch
new file mode 100644 (file)
index 0000000..55c00a8
--- /dev/null
@@ -0,0 +1,12 @@
+Index: OpenSP-1.5/include/RangeMap.cxx
+===================================================================
+--- OpenSP-1.5.orig/include/RangeMap.cxx       2000-02-26 03:55:21.000000000 +1100
++++ OpenSP-1.5/include/RangeMap.cxx    2007-06-02 11:48:17.000000000 +1000
+@@ -7,6 +7,7 @@
+ #include "RangeMap.h"
+ #include "ISet.h"
+ #include "types.h"
++#include "constant.h"
+ #ifdef SP_NAMESPACE
+ namespace SP_NAMESPACE {
index 5d6ad63..de28a5f 100644 (file)
@@ -3,9 +3,12 @@ DESCRIPTION = "OpenSP is a library and a set of tools \
 for validating, parsing, and manipulating SGML and \
 XML documents."
 LICENSE = "MIT"
+PR = "r1"
+
 SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/OpenSP-${PV}.tar.gz \
           file://m4.patch;patch=1 \
-          file://attributevalue.patch;patch=1"
+          file://attributevalue.patch;patch=1 \
+           file://rangmap-fix.patch;patch=1"
 S = "${WORKDIR}/OpenSP-${PV}"
 
 inherit autotools