summary refs log tree commit diff
path: root/gnu/packages/astronomy.scm
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2017-06-11 00:23:17 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2017-06-12 07:33:14 +0200
commit2606fd6fc9aa725b8ad22294806630b405a6c9bb (patch)
treea6691fe7f61f5f8c7c8920ee88b9517a65929b37 /gnu/packages/astronomy.scm
parent34a0984e57e549ba441997dce474140ef85b5a43 (diff)
downloadguix-2606fd6fc9aa725b8ad22294806630b405a6c9bb.tar.gz
gnu: stellarium: Fix build with Qt 5.9.
* gnu/packages/astronomy.scm (stellarium)[arguments]:
Add phase "patch-version-check".
Diffstat (limited to 'gnu/packages/astronomy.scm')
-rw-r--r--gnu/packages/astronomy.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 2aa65d5880..6c486469df 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -141,6 +141,14 @@ programs for the manipulation and analysis of astronomical data.")
     (arguments
       `(#:test-target "tests"
         #:phases (modify-phases %standard-phases
+                   (add-after 'unpack 'patch-version-check
+                     (lambda _
+                       ;; Previously-deprecated cmake variable vanished in
+                       ;; Qt 5.9.
+                       ;; See <https://bugreports.qt.io/browse/QTBUG-60936>.
+                       (substitute* "CMakeLists.txt"
+                         (("Qt5Core_VERSION_STRING") "Qt5Core_VERSION"))
+                       #t))
                    (add-before 'check 'set-offscreen-display
                      (lambda _
                        ;; make Qt render "offscreen", required for tests