aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Lassieur <clement@lassieur.org>2018-05-29 15:21:07 +0200
committerClément Lassieur <clement@lassieur.org>2018-05-29 15:25:23 +0200
commit6cedd611774f91056c70d8d3a175d514b9b9fc76 (patch)
tree907db8164adda3f069590cacd640c42818a693d1
parent0d56d9c714dc986fd049e07d8ad423d1e944771f (diff)
downloadguix-6cedd611774f91056c70d8d3a175d514b9b9fc76.tar
guix-6cedd611774f91056c70d8d3a175d514b9b9fc76.tar.gz
gnu: librecad: Fix build against Qt 5.11.
* gnu/packages/engineering.scm (librecad)[arguments]: Add missing headers.
-rw-r--r--gnu/packages/engineering.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index f16ef2cebd..25830710f7 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -110,6 +110,13 @@
(string-append "#include <boost/serialization/array_wrapper.hpp>\n"
line)))
#t))
+ ;; Fix build against Qt 5.11.
+ (add-after 'unpack 'add-missing-headers
+ (lambda _
+ (substitute* "librecad/src/ui/generic/widgetcreator.cpp"
+ (("#include <QPushButton>") "#include <QPushButton>
+#include <QActionGroup>"))
+ #t))
(add-after 'unpack 'patch-paths
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))