mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: stellarium: Fix build with Qt 5.9.
* gnu/packages/astronomy.scm (stellarium)[arguments]: Add phase "patch-version-check".
This commit is contained in:
parent
34a0984e57
commit
2606fd6fc9
1 changed files with 8 additions and 0 deletions
|
@ -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 <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
|
||||
|
|
Loading…
Reference in a new issue