From 2606fd6fc9aa725b8ad22294806630b405a6c9bb Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sun, 11 Jun 2017 00:23:17 +0200 Subject: [PATCH] gnu: stellarium: Fix build with Qt 5.9. * gnu/packages/astronomy.scm (stellarium)[arguments]: Add phase "patch-version-check". --- gnu/packages/astronomy.scm | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ (define-public stellarium (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 . + (substitute* "CMakeLists.txt" + (("Qt5Core_VERSION_STRING") "Qt5Core_VERSION")) + #t)) (add-before 'check 'set-offscreen-display (lambda _ ;; make Qt render "offscreen", required for tests