ledger: fix build with gcc6

This commit is contained in:
Alessio Sergi 2017-05-07 15:00:00 +02:00
parent 54542abedf
commit 86210a3f20
2 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- src/item.h.orig
+++ 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;

View File

@ -11,8 +11,6 @@ short_desc="A powerful, double-entry accounting system that is accessed from the
distfiles="https://github.com/ledger/${pkgname}/archive/v${version}.tar.gz"
checksum="90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a"
broken="https://build.voidlinux.eu/builders/armv6l-musl_builder/builds/2265/steps/shell_3/logs/stdio"
post_install() {
rm -Rf ${DESTDIR}/usr/local
if [ -e ${DESTDIR}/usr/lib64 ]; then