Apply patch to fix builds on boost 1.61+
https://bugzilla.redhat.com/show_bug.cgi?id=1423835
This commit is contained in:
parent
64ad0e6537
commit
2d09b29b64
22
ledger-3.1.1-fix-boost-1.61.patch
Normal file
22
ledger-3.1.1-fix-boost-1.61.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From 1856b8c4902498843f4da37a7aaeb2ce85acc1d3 Mon Sep 17 00:00:00 2001
|
||||
From: Denis <dkasak@users.noreply.github.com>
|
||||
Date: Mon, 12 Sep 2016 12:49:40 +0200
|
||||
Subject: [PATCH] Fix compilation error with boost 1.61
|
||||
|
||||
---
|
||||
src/item.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/item.h b/src/item.h
|
||||
index ca16d87b3..4dc6df7e6 100644
|
||||
--- a/src/item.h
|
||||
+++ b/src/item.h
|
||||
@@ -92,7 +92,7 @@ class item_t : public supports_flags<uint_least16_t>, public scope_t
|
||||
|
||||
typedef std::pair<optional<value_t>, bool> tag_data_t;
|
||||
typedef std::map<string, tag_data_t,
|
||||
- function<bool(string, string)> > string_map;
|
||||
+ std::function<bool(string, string)> > string_map;
|
||||
|
||||
state_t _state;
|
||||
optional<date_t> _date;
|
@ -2,12 +2,15 @@
|
||||
|
||||
Name: ledger
|
||||
Version: 3.1.1
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: A powerful command-line double-entry accounting system
|
||||
License: BSD
|
||||
URL: http://ledger-cli.org/
|
||||
Source0: https://github.com/ledger/ledger/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
# https://github.com/ledger/ledger/pull/465
|
||||
Patch0: ledger-3.1.1-fix-boost-1.61.patch
|
||||
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: emacs(bin)
|
||||
@ -71,6 +74,7 @@ emacs-%{name} instead.
|
||||
|
||||
%prep
|
||||
%setup -qn %{name}-%{version}
|
||||
%patch0 -p1
|
||||
# Avoid texinfo errors on EL7.
|
||||
%if 0%{?rhel} == 7
|
||||
sed -i -e 's#FIXME:UNDOCUMENTED#FIXMEUNDOCUMENTED#g' doc/ledger3.texi
|
||||
@ -191,6 +195,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jul 26 2017 Iliana Weller <ilianaw@buttslol.net> - 3.1.1-8
|
||||
- Apply patch to fix builds on boost 1.61+ (#1423835)
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user