commit:     068d3cff008f530abe5a6c8d7daeabdc9b805387
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 14 12:46:22 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 14 12:46:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=068d3cff

app-office/ledger: fix build with Boost 1.76

Closes: https://bugs.gentoo.org/790176
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/ledger-3.2.1-fix-build-boost-1-76.patch  | 28 ++++++++++++++++++++++
 app-office/ledger/ledger-3.2.1.ebuild              |  4 ++++
 2 files changed, 32 insertions(+)

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
new file mode 100644
index 00000000000..62d2d609511
--- /dev/null
+++ b/app-office/ledger/files/ledger-3.2.1-fix-build-boost-1-76.patch
@@ -0,0 +1,28 @@
+From fa37f595b3c44dc7ac86b29d105ae6417c3e0080 Mon Sep 17 00:00:00 2001
+From: Sam James <[email protected]>
+Date: Mon, 14 Jun 2021 12:37:58 +0000
+Subject: [PATCH] Fix compilation with Boost 1.76
+
+---
+--- a/src/expr.cc
++++ b/src/expr.cc
+@@ -35,6 +35,8 @@
+ #include "parser.h"
+ #include "scope.h"
+ 
++#include <boost/smart_ptr/scoped_ptr.hpp>
++
+ namespace ledger {
+ 
+ expr_t::expr_t() : base_type()
+--- a/src/format.h
++++ b/src/format.h
+@@ -45,6 +45,8 @@
+ #include "expr.h"
+ #include "unistring.h"
+ 
++#include <boost/smart_ptr/scoped_ptr.hpp>
++
+ namespace ledger {
+ 
+ class unistring;

diff --git a/app-office/ledger/ledger-3.2.1.ebuild 
b/app-office/ledger/ledger-3.2.1.ebuild
index 467af5e0eb0..a17e0d29f87 100644
--- a/app-office/ledger/ledger-3.2.1.ebuild
+++ b/app-office/ledger/ledger-3.2.1.ebuild
@@ -42,6 +42,10 @@ DEPEND="${RDEPEND}
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.2.1-fix-build-boost-1-76.patch
+)
+
 pkg_pretend() {
        if use python; then
                check-reqs_pkg_pretend

Reply via email to