From c874c8e9432a90749d57525cd6ca732f629436bb Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 12 Oct 2023 09:48:37 +0100 Subject: from exelion --- ...ledger-3.2.1-add-boost-1.76-compatibility.patch | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 app-office/ledger-3.2.1/ledger-3.2.1-add-boost-1.76-compatibility.patch (limited to 'app-office') diff --git a/app-office/ledger-3.2.1/ledger-3.2.1-add-boost-1.76-compatibility.patch b/app-office/ledger-3.2.1/ledger-3.2.1-add-boost-1.76-compatibility.patch new file mode 100644 index 0000000..4293afe --- /dev/null +++ b/app-office/ledger-3.2.1/ledger-3.2.1-add-boost-1.76-compatibility.patch @@ -0,0 +1,60 @@ +From c4d9834d23ded06a43a334c0f2632228a8a62ae3 Mon Sep 17 00:00:00 2001 +From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> +Date: Mon, 19 Apr 2021 09:56:31 +0100 +Subject: [PATCH] ledger: revision bump (boost 1.76.0) + +This adds a patch for Boost 1.76 compatibility, taken from + + https://github.com/ledger/ledger/issues/2030 +--- +diff --git a/src/expr.cc b/src/expr.cc +index c8945d3..136fc97 100644 +--- a/src/expr.cc ++++ b/src/expr.cc +@@ -34,6 +34,7 @@ + #include "expr.h" + #include "parser.h" + #include "scope.h" ++#include + + namespace ledger { + +@@ -278,7 +279,7 @@ value_t expr_value(expr_t::ptr_op_t op) + value_t source_command(call_scope_t& args) + { + std::istream * in = NULL; +- scoped_ptr stream; ++ std::unique_ptr stream; + string pathname; + + if (args.has(0)) { +diff --git a/src/format.h b/src/format.h +index 15431cf..c12f1c9 100644 +--- a/src/format.h ++++ b/src/format.h +@@ -44,6 +44,7 @@ + + #include "expr.h" + #include "unistring.h" ++#include + + namespace ledger { + +@@ -65,7 +66,7 @@ class format_t : public expr_base_t, public noncopyable + std::size_t min_width; + std::size_t max_width; + variant data; +- scoped_ptr next; ++ std::unique_ptr next; + + element_t() throw() + : supports_flags<>(), type(STRING), min_width(0), max_width(0) { +@@ -103,7 +104,7 @@ class format_t : public expr_base_t, public noncopyable + void dump(std::ostream& out) const; + }; + +- scoped_ptr elements; ++ std::unique_ptr elements; + + public: + static enum elision_style_t { -- cgit v1.2.3