summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/openjade
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-03-31 21:46:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-04 14:09:58 +0100
commit07dfc5c75260394e040c67b3e9e9e39e58692141 (patch)
tree64dd8af53abed0191e8ebbc408f084159bb14885 /meta/recipes-devtools/openjade
parent9a453893ad99f35805ac5f37dd64b17c42ae90e2 (diff)
downloadpoky-07dfc5c75260394e040c67b3e9e9e39e58692141.tar.gz
openjade: fix build with GCC 4.6
In GCC 4.6 the compiler no longer allows objects of const-qualified type to be default initialized unless the type has a user-declared default constructor. Patch from Gentoo bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=358021 (From OE-Core rev: 5e58a44ee5d5be814614cdcc147d1ce67a9a401d) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/openjade')
-rw-r--r--meta/recipes-devtools/openjade/openjade-1.3.2/user-declared-default-constructor.patch88
-rw-r--r--meta/recipes-devtools/openjade/openjade-native_1.3.2.bb5
2 files changed, 91 insertions, 2 deletions
diff --git a/meta/recipes-devtools/openjade/openjade-1.3.2/user-declared-default-constructor.patch b/meta/recipes-devtools/openjade/openjade-1.3.2/user-declared-default-constructor.patch
new file mode 100644
index 0000000000..2f2adfe340
--- /dev/null
+++ b/meta/recipes-devtools/openjade/openjade-1.3.2/user-declared-default-constructor.patch
@@ -0,0 +1,88 @@
1In GCC 4.6 the compiler no longer allows objects of const-qualified type to
2be default initialized unless the type has a user-declared default
3constructor.
4
5Patch from Gentoo bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=358021
6
7Gentoo Bugzilla description follows:
8"If a class or struct has no user-defined default constructor, C++ doesn't
9allow you to default construct a const instance of it.
10
11https://bugs.gentoo.org/358021
12http://clang.llvm.org/compatibility.html#default_init_const
13http://gcc.gnu.org/PR44499"
14
15--- a/jade/TeXFOTBuilder.cxx
16+++ b/jade/TeXFOTBuilder.cxx
17@@ -88,6 +88,8 @@ public:
18 value.convertString(nic_.placement);
19 }
20 ExtensionFlowObj *copy() const { return new PageFloatFlowObj(*this); }
21+ public:
22+ PageFloatFlowObj() {}
23 private:
24 PageFloatNIC nic_;
25 StringC name_;
26@@ -101,6 +103,8 @@ public:
27 fotb.endPageFootnote();
28 }
29 ExtensionFlowObj *copy() const { return new PageFootnoteFlowObj(*this); }
30+ public:
31+ PageFootnoteFlowObj() {}
32 private:
33 };
34 //////////////////////////////////////////////////////////////////////
35--- a/jade/TransformFOTBuilder.cxx
36+++ b/jade/TransformFOTBuilder.cxx
37@@ -41,6 +41,7 @@ public:
38 };
39 class EntityRefFlowObj : public TransformExtensionFlowObj {
40 public:
41+ EntityRefFlowObj() {}
42 void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
43 fotb.entityRef(name_);
44 }
45@@ -56,6 +57,7 @@ public:
46 };
47 class ProcessingInstructionFlowObj : public TransformExtensionFlowObj {
48 public:
49+ ProcessingInstructionFlowObj() {}
50 void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
51 fotb.processingInstruction(data_);
52 }
53@@ -98,6 +100,8 @@ public:
54 }
55 }
56 ExtensionFlowObj *copy() const { return new EmptyElementFlowObj(*this); }
57+ public:
58+ EmptyElementFlowObj() {}
59 private:
60 ElementNIC nic_;
61 };
62@@ -133,6 +137,8 @@ public:
63 }
64 }
65 ExtensionFlowObj *copy() const { return new ElementFlowObj(*this); }
66+ public:
67+ ElementFlowObj() {}
68 private:
69 ElementNIC nic_;
70 };
71@@ -150,6 +156,8 @@ public:
72 value.convertString(systemId_);
73 }
74 ExtensionFlowObj *copy() const { return new EntityFlowObj(*this); }
75+ public:
76+ EntityFlowObj() {}
77 private:
78 StringC systemId_;
79 };
80@@ -174,6 +182,8 @@ public:
81 }
82 }
83 ExtensionFlowObj *copy() const { return new DocumentTypeFlowObj(*this); }
84+ public:
85+ DocumentTypeFlowObj() {}
86 private:
87 DocumentTypeNIC nic_;
88 };
diff --git a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb
index 0de8b963ab..5c1037a5de 100644
--- a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb
+++ b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb
@@ -7,13 +7,14 @@ SECTION = "base"
7LICENSE = "BSD" 7LICENSE = "BSD"
8LIC_FILES_CHKSUM = "file://COPYING;md5=641ff1e4511f0a87044ad42f87cb1045" 8LIC_FILES_CHKSUM = "file://COPYING;md5=641ff1e4511f0a87044ad42f87cb1045"
9 9
10PR = "r1" 10PR = "r2"
11 11
12DEPENDS = "opensp-native sgml-common-native" 12DEPENDS = "opensp-native sgml-common-native"
13RDEPENDS_${PN} = "sgml-common" 13RDEPENDS_${PN} = "sgml-common"
14 14
15SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/openjade-${PV}.tar.gz \ 15SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/openjade-${PV}.tar.gz \
16 file://makefile.patch" 16 file://makefile.patch \
17 file://user-declared-default-constructor.patch"
17 18
18SRC_URI[md5sum] = "7df692e3186109cc00db6825b777201e" 19SRC_URI[md5sum] = "7df692e3186109cc00db6825b777201e"
19SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1" 20SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1"