From 1e341fa50849094fd5c685b6dfb2ee328a2ae44e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 31 May 2018 08:28:28 +0200 Subject: gnu: powertabeditor: Fix build with Qt 5.11. Fixes . * gnu/packages/music.scm (powertabeditor)[arguments]: Add build phase "add-missing-headers". --- gnu/packages/music.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index ff347284a5..a8b4527960 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -1184,6 +1184,19 @@ add_library( rapidjson INTERFACE IMPORTED )")) (("boost::rational duration\\(4, pos.getDurationType\\(\\)\\);") "boost::rational duration(4, static_cast(pos.getDurationType()));")) #t)) + ;; Fix build with Qt 5.11. + (add-after 'unpack 'add-missing-headers + (lambda _ + (substitute* (find-files "source/dialogs/" "\\.h$") + (("#include " m) + (string-append m "\n#include "))) + (substitute* "source/widgets/mixer/mixeritem.h" + (("#include " m) + (string-append m "\n#include "))) + (substitute* "source/widgets/playback/playbackwidget.h" + (("#include " m) + (string-append m "\n#include \n#include "))) + #t)) (add-before 'configure 'remove-third-party-libs (lambda* (#:key inputs #:allow-other-keys) ;; Link with required static libraries, because we're not -- cgit v1.2.3