gnu: powertabeditor: Fix build.

* gnu/packages/music.scm (powertabeditor)[arguments]: Add phase
"fix-boost-bug" to fix build with boost 1.64.
This commit is contained in:
Ricardo Wurmus 2018-01-23 08:33:20 +01:00
parent ce018d16f1
commit 04ba7a9db6
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 8 additions and 0 deletions

View File

@ -1181,6 +1181,14 @@ add_library( rapidjson INTERFACE IMPORTED )"))
"exclude:Score/ViewFilter/ViewFilter" "exclude:Score/ViewFilter/ViewFilter"
"exclude:Formats/PowerTabOldImport/Directions" "exclude:Formats/PowerTabOldImport/Directions"
)))) ))))
;; FIXME: This bug has been fixed upstream, but no release has been
;; made yet. See https://github.com/powertab/powertabeditor/issues/257
(add-after 'unpack 'fix-boost-bug
(lambda _
(substitute* "source/score/voiceutils.cpp"
(("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
"boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
#t))
(add-before 'configure 'remove-third-party-libs (add-before 'configure 'remove-third-party-libs
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; Link with required static libraries, because we're not ;; Link with required static libraries, because we're not