gnu: ledger: Fix build with Boost >= 1.68.

* gnu/packages/finance.scm (ledger)[arguments]: Add phase 'boost-compat.
This commit is contained in:
Marius Bakke 2018-11-24 15:55:29 +01:00
parent f028823c0f
commit 68f2e55206
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 7 additions and 0 deletions

View File

@ -165,6 +165,13 @@ line client and a client based on Qt.")
#:make-flags (list "ARGS=-E BaselineTest_cmd-org") #:make-flags (list "ARGS=-E BaselineTest_cmd-org")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'boost-compat
(lambda _
(substitute* "src/utils.h"
;; This library moved in Boost 1.66. Remove for Ledger
;; versions > 3.1.1.
(("boost/uuid/sha1.hpp") "boost/uuid/detail/sha1.hpp"))
#t))
(add-before 'configure 'install-examples (add-before 'configure 'install-examples
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((examples (string-append (assoc-ref outputs "out") (let ((examples (string-append (assoc-ref outputs "out")