1 |
commit: f7b7c15da117ceb50850679f14573de8a1e22e4e |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 1 21:54:20 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 1 21:55:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7b7c15d |
7 |
|
8 |
dev-cpp/htmlcxx: Patch to fix building with GCC 11 / C++-17 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/786684 |
11 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
12 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
13 |
|
14 |
dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch | 26 ++++++++++++++++++++++++++ |
15 |
dev-cpp/htmlcxx/htmlcxx-0.87.ebuild | 6 +++++- |
16 |
2 files changed, 31 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch b/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..9f8f060de45 |
21 |
--- /dev/null |
22 |
+++ b/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch |
23 |
@@ -0,0 +1,26 @@ |
24 |
+https://sourceforge.net/p/htmlcxx/patches/8/ |
25 |
+ |
26 |
+diff --color -Naur a/html/CharsetConverter.cc b/html/CharsetConverter.cc |
27 |
+--- a/html/CharsetConverter.cc 2018-12-29 03:13:56.000000000 +0000 |
28 |
++++ b/html/CharsetConverter.cc 2021-05-31 23:03:10.705334580 +0100 |
29 |
+@@ -7,7 +7,7 @@ |
30 |
+ using namespace std; |
31 |
+ using namespace htmlcxx; |
32 |
+ |
33 |
+-CharsetConverter::CharsetConverter(const string &from, const string &to) throw (Exception) |
34 |
++CharsetConverter::CharsetConverter(const string &from, const string &to) |
35 |
+ { |
36 |
+ mIconvDescriptor = iconv_open(to.c_str(), from.c_str()); |
37 |
+ if (mIconvDescriptor == (iconv_t)(-1)) |
38 |
+diff --color -Naur a/html/CharsetConverter.h b/html/CharsetConverter.h |
39 |
+--- a/html/CharsetConverter.h 2018-12-29 03:13:56.000000000 +0000 |
40 |
++++ b/html/CharsetConverter.h 2021-05-31 23:03:19.042574598 +0100 |
41 |
+@@ -17,7 +17,7 @@ |
42 |
+ : std::runtime_error(arg) {} |
43 |
+ }; |
44 |
+ |
45 |
+- CharsetConverter(const std::string &from, const std::string &to) throw (Exception); |
46 |
++ CharsetConverter(const std::string &from, const std::string &to); |
47 |
+ ~CharsetConverter(); |
48 |
+ |
49 |
+ std::string convert(const std::string &input); |
50 |
|
51 |
diff --git a/dev-cpp/htmlcxx/htmlcxx-0.87.ebuild b/dev-cpp/htmlcxx/htmlcxx-0.87.ebuild |
52 |
index fdcb01bc5cf..3ac9069308c 100644 |
53 |
--- a/dev-cpp/htmlcxx/htmlcxx-0.87.ebuild |
54 |
+++ b/dev-cpp/htmlcxx/htmlcxx-0.87.ebuild |
55 |
@@ -1,4 +1,4 @@ |
56 |
-# Copyright 1999-2019 Gentoo Authors |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
|
60 |
EAPI=7 |
61 |
@@ -13,6 +13,10 @@ SLOT="0" |
62 |
KEYWORDS="~amd64 ~x86" |
63 |
IUSE="static-libs" |
64 |
|
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${P}-c++17.patch |
67 |
+) |
68 |
+ |
69 |
ECONF_SOURCE="${S}" |
70 |
|
71 |
multilib_src_configure() { |