diff options
-rw-r--r-- | meta/recipes-devtools/openjade/openjade-1.3.2/user-declared-default-constructor.patch | 88 | ||||
-rw-r--r-- | meta/recipes-devtools/openjade/openjade-native_1.3.2.bb | 5 |
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 @@ | |||
1 | In GCC 4.6 the compiler no longer allows objects of const-qualified type to | ||
2 | be default initialized unless the type has a user-declared default | ||
3 | constructor. | ||
4 | |||
5 | Patch from Gentoo bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=358021 | ||
6 | |||
7 | Gentoo Bugzilla description follows: | ||
8 | "If a class or struct has no user-defined default constructor, C++ doesn't | ||
9 | allow you to default construct a const instance of it. | ||
10 | |||
11 | https://bugs.gentoo.org/358021 | ||
12 | http://clang.llvm.org/compatibility.html#default_init_const | ||
13 | http://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" | |||
7 | LICENSE = "BSD" | 7 | LICENSE = "BSD" |
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=641ff1e4511f0a87044ad42f87cb1045" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=641ff1e4511f0a87044ad42f87cb1045" |
9 | 9 | ||
10 | PR = "r1" | 10 | PR = "r2" |
11 | 11 | ||
12 | DEPENDS = "opensp-native sgml-common-native" | 12 | DEPENDS = "opensp-native sgml-common-native" |
13 | RDEPENDS_${PN} = "sgml-common" | 13 | RDEPENDS_${PN} = "sgml-common" |
14 | 14 | ||
15 | SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/openjade-${PV}.tar.gz \ | 15 | SRC_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 | ||
18 | SRC_URI[md5sum] = "7df692e3186109cc00db6825b777201e" | 19 | SRC_URI[md5sum] = "7df692e3186109cc00db6825b777201e" |
19 | SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1" | 20 | SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1" |