> http://build-failures.rhaalovely.net/powerpc/2019-07-14/productivity/ledger.log
> http://build-failures.rhaalovely.net/sparc64/2019-07-11/productivity/ledger.log

There is some namespace issues when built with gcc, upstream fixed it
already.

This allows building on macppc [0], and amd64 is still fine.

Comments/feedback are welcome!

Charlène. 


[0] https://bin.charlenew.xyz/ledger.log


Index: Makefile
===================================================================
RCS file: /cvs/ports/productivity/ledger/Makefile,v
retrieving revision 1.26
diff -u -p -u -p -r1.26 Makefile
--- Makefile    12 Jul 2019 20:48:58 -0000      1.26
+++ Makefile    27 Jul 2019 21:05:16 -0000
@@ -5,7 +5,7 @@ COMMENT =               command line double-entry acc
 GH_TAGNAME =           v3.1.1
 GH_ACCOUNT =           ledger
 GH_PROJECT =           ledger
-REVISION =             3
+REVISION =             4
 
 SHARED_LIBS +=  ledger                    0.0 # 3.0
 
Index: patches/patch-src_item_h
===================================================================
RCS file: patches/patch-src_item_h
diff -N patches/patch-src_item_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_item_h    27 Jul 2019 21:05:16 -0000
@@ -0,0 +1,17 @@
+$OpenBSD$
+
+Fix the build with ports-gcc, from upstream:
+https://github.com/ledger/ledger/commit/258cab91ab702e82d477b41bb1c6a026c848bda5
+
+Index: src/item.h
+--- src/item.h.orig
++++ src/item.h
+@@ -92,7 +92,7 @@ class item_t : public supports_flags<uint_least16_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;

Reply via email to