Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/ledger/files/, app-office/ledger/
Date: Mon, 14 Jun 2021 12:47:03
Message-Id: 1623674810.068d3cff008f530abe5a6c8d7daeabdc9b805387.sam@gentoo
1 commit: 068d3cff008f530abe5a6c8d7daeabdc9b805387
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 12:46:22 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 12:46:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=068d3cff
7
8 app-office/ledger: fix build with Boost 1.76
9
10 Closes: https://bugs.gentoo.org/790176
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../files/ledger-3.2.1-fix-build-boost-1-76.patch | 28 ++++++++++++++++++++++
14 app-office/ledger/ledger-3.2.1.ebuild | 4 ++++
15 2 files changed, 32 insertions(+)
16
17 diff --git a/app-office/ledger/files/ledger-3.2.1-fix-build-boost-1-76.patch b/app-office/ledger/files/ledger-3.2.1-fix-build-boost-1-76.patch
18 new file mode 100644
19 index 00000000000..62d2d609511
20 --- /dev/null
21 +++ b/app-office/ledger/files/ledger-3.2.1-fix-build-boost-1-76.patch
22 @@ -0,0 +1,28 @@
23 +From fa37f595b3c44dc7ac86b29d105ae6417c3e0080 Mon Sep 17 00:00:00 2001
24 +From: Sam James <sam@g.o>
25 +Date: Mon, 14 Jun 2021 12:37:58 +0000
26 +Subject: [PATCH] Fix compilation with Boost 1.76
27 +
28 +---
29 +--- a/src/expr.cc
30 ++++ b/src/expr.cc
31 +@@ -35,6 +35,8 @@
32 + #include "parser.h"
33 + #include "scope.h"
34 +
35 ++#include <boost/smart_ptr/scoped_ptr.hpp>
36 ++
37 + namespace ledger {
38 +
39 + expr_t::expr_t() : base_type()
40 +--- a/src/format.h
41 ++++ b/src/format.h
42 +@@ -45,6 +45,8 @@
43 + #include "expr.h"
44 + #include "unistring.h"
45 +
46 ++#include <boost/smart_ptr/scoped_ptr.hpp>
47 ++
48 + namespace ledger {
49 +
50 + class unistring;
51
52 diff --git a/app-office/ledger/ledger-3.2.1.ebuild b/app-office/ledger/ledger-3.2.1.ebuild
53 index 467af5e0eb0..a17e0d29f87 100644
54 --- a/app-office/ledger/ledger-3.2.1.ebuild
55 +++ b/app-office/ledger/ledger-3.2.1.ebuild
56 @@ -42,6 +42,10 @@ DEPEND="${RDEPEND}
57 )
58 "
59
60 +PATCHES=(
61 + "${FILESDIR}"/${PN}-3.2.1-fix-build-boost-1-76.patch
62 +)
63 +
64 pkg_pretend() {
65 if use python; then
66 check-reqs_pkg_pretend