1 |
commit: 90863b09bea41eb793557549ec84c8d9ca144df4 |
2 |
Author: Francesco Turco <fturco <AT> fastmail <DOT> fm> |
3 |
AuthorDate: Thu Sep 7 20:26:04 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 28 16:51:36 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90863b09 |
7 |
|
8 |
app-office/ledger: Fix build with >=dev-libs/boost-1.61 |
9 |
|
10 |
Gentoo-bug: 609108 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/5655 |
12 |
|
13 |
app-office/ledger/files/ledger-3.1.1-boost.patch | 22 ++++++++++++++++++++++ |
14 |
app-office/ledger/ledger-3.1.1.ebuild | 2 ++ |
15 |
2 files changed, 24 insertions(+) |
16 |
|
17 |
diff --git a/app-office/ledger/files/ledger-3.1.1-boost.patch b/app-office/ledger/files/ledger-3.1.1-boost.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..b69a42a5011 |
20 |
--- /dev/null |
21 |
+++ b/app-office/ledger/files/ledger-3.1.1-boost.patch |
22 |
@@ -0,0 +1,22 @@ |
23 |
+From 1856b8c4902498843f4da37a7aaeb2ce85acc1d3 Mon Sep 17 00:00:00 2001 |
24 |
+From: Denis <dkasak@××××××××××××××××××××.com> |
25 |
+Date: Mon, 12 Sep 2016 12:49:40 +0200 |
26 |
+Subject: [PATCH] Fix compilation error with boost 1.61 |
27 |
+ |
28 |
+--- |
29 |
+ src/item.h | 2 +- |
30 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
31 |
+ |
32 |
+diff --git a/src/item.h b/src/item.h |
33 |
+index ca16d87b3..4dc6df7e6 100644 |
34 |
+--- a/src/item.h |
35 |
++++ b/src/item.h |
36 |
+@@ -92,7 +92,7 @@ class item_t : public supports_flags<uint_least16_t>, public scope_t |
37 |
+ |
38 |
+ typedef std::pair<optional<value_t>, bool> tag_data_t; |
39 |
+ typedef std::map<string, tag_data_t, |
40 |
+- function<bool(string, string)> > string_map; |
41 |
++ std::function<bool(string, string)> > string_map; |
42 |
+ |
43 |
+ state_t _state; |
44 |
+ optional<date_t> _date; |
45 |
|
46 |
diff --git a/app-office/ledger/ledger-3.1.1.ebuild b/app-office/ledger/ledger-3.1.1.ebuild |
47 |
index f32cda9c830..31ed49d068b 100644 |
48 |
--- a/app-office/ledger/ledger-3.1.1.ebuild |
49 |
+++ b/app-office/ledger/ledger-3.1.1.ebuild |
50 |
@@ -42,6 +42,8 @@ DEPEND=" |
51 |
) |
52 |
" |
53 |
|
54 |
+PATCHES=( "${FILESDIR}/${P}-boost.patch" ) # bug 609108 |
55 |
+ |
56 |
# Building with python integration seems to fail without 8G available |
57 |
# RAM(!) Since the memory check in check-reqs doesn't count swap, it |
58 |
# may be unfair to fail the build entirely on the memory test alone. |