diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2018-05-31 08:28:28 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-05-31 08:30:45 +0200 |
commit | 1e341fa50849094fd5c685b6dfb2ee328a2ae44e (patch) | |
tree | d3a205319bde6b2f54b1c8123b4d564ac6e18f08 /gnu/packages | |
parent | 0d6f84aab1c2f4cd8ce1b68215a7a77426dc6cd5 (diff) | |
download | patches-1e341fa50849094fd5c685b6dfb2ee328a2ae44e.tar patches-1e341fa50849094fd5c685b6dfb2ee328a2ae44e.tar.gz |
gnu: powertabeditor: Fix build with Qt 5.11.
Fixes <https://bugs.gnu.org/31659>.
* gnu/packages/music.scm (powertabeditor)[arguments]: Add build phase
"add-missing-headers".
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/music.scm | 13 |
1 files changed, 13 insertions, 0 deletions
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<int> duration\\(4, pos.getDurationType\\(\\)\\);") "boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));")) #t)) + ;; Fix build with Qt 5.11. + (add-after 'unpack 'add-missing-headers + (lambda _ + (substitute* (find-files "source/dialogs/" "\\.h$") + (("#include <QDialog>" m) + (string-append m "\n#include <QButtonGroup>"))) + (substitute* "source/widgets/mixer/mixeritem.h" + (("#include <QWidget>" m) + (string-append m "\n#include <QStyle>"))) + (substitute* "source/widgets/playback/playbackwidget.h" + (("#include <QWidget>" m) + (string-append m "\n#include <QButtonGroup>\n#include <QAction>"))) + #t)) (add-before 'configure 'remove-third-party-libs (lambda* (#:key inputs #:allow-other-keys) ;; Link with required static libraries, because we're not |