1 |
commit: 8ed8ff59a824013848788f1c592baeb090ec35c4 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 17 19:14:58 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 17 19:14:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ed8ff59 |
7 |
|
8 |
app-office/abiword: Add upstream patch for C++ template use |
9 |
|
10 |
Closes: https://bugs.gentoo.org/690162 |
11 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
app-office/abiword/abiword-3.0.2-r2.ebuild | 4 +++ |
15 |
.../files/abiword-3.0.2-extern-C-template.patch | 29 ++++++++++++++++++++++ |
16 |
2 files changed, 33 insertions(+) |
17 |
|
18 |
diff --git a/app-office/abiword/abiword-3.0.2-r2.ebuild b/app-office/abiword/abiword-3.0.2-r2.ebuild |
19 |
index 3f1d7150ae4..654d4c6d1ff 100644 |
20 |
--- a/app-office/abiword/abiword-3.0.2-r2.ebuild |
21 |
+++ b/app-office/abiword/abiword-3.0.2-r2.ebuild |
22 |
@@ -104,6 +104,10 @@ PATCHES=( |
23 |
|
24 |
# https://bugzilla.abisource.com/show_bug.cgi?id=13697 |
25 |
"${WORKDIR}"/${P}-patchset/${PN}-3.0.2-bool-boolean.patch |
26 |
+ |
27 |
+ # https://gitlab.gnome.org/World/AbiWord/issues/2 |
28 |
+ # https://bugs.gentoo.org/690162 |
29 |
+ "${FILESDIR}"/${P}-extern-C-template.patch |
30 |
) |
31 |
|
32 |
src_configure() { |
33 |
|
34 |
diff --git a/app-office/abiword/files/abiword-3.0.2-extern-C-template.patch b/app-office/abiword/files/abiword-3.0.2-extern-C-template.patch |
35 |
new file mode 100644 |
36 |
index 00000000000..08d2d6cf4e1 |
37 |
--- /dev/null |
38 |
+++ b/app-office/abiword/files/abiword-3.0.2-extern-C-template.patch |
39 |
@@ -0,0 +1,29 @@ |
40 |
+From b398c84c158ac96bcfc9882b42bee94b074e7fa9 Mon Sep 17 00:00:00 2001 |
41 |
+From: David Seifert <soap@g.o> |
42 |
+Date: Mon, 21 Oct 2019 22:55:12 +0200 |
43 |
+Subject: [PATCH] Do not #include evolution-data-server with C linkage |
44 |
+ |
45 |
+Fixes #2 https://gitlab.gnome.org/World/AbiWord/issues/2 |
46 |
+Fixes https://bugs.gentoo.org/690162 |
47 |
+--- |
48 |
+ src/text/ptbl/xp/pd_DocumentRDF.cpp | 4 +--- |
49 |
+ 1 file changed, 1 insertion(+), 3 deletions(-) |
50 |
+ |
51 |
+diff --git a/src/text/ptbl/xp/pd_DocumentRDF.cpp b/src/text/ptbl/xp/pd_DocumentRDF.cpp |
52 |
+index 4568bd598..d5849f96b 100644 |
53 |
+--- a/src/text/ptbl/xp/pd_DocumentRDF.cpp |
54 |
++++ b/src/text/ptbl/xp/pd_DocumentRDF.cpp |
55 |
+@@ -1879,9 +1879,7 @@ PD_RDFContact::className() const |
56 |
+ |
57 |
+ |
58 |
+ #ifdef WITH_EVOLUTION_DATA_SERVER |
59 |
+-extern "C" { |
60 |
+- #include <libebook/libebook.h> |
61 |
+-}; |
62 |
++#include <libebook/libebook.h> |
63 |
+ |
64 |
+ static std::string get( EVCard* c, const char* v ) |
65 |
+ { |
66 |
+-- |
67 |
+2.22.0 |
68 |
+ |