gnu: enigma: Fix build with GCC >= 6.

* gnu/packages/games.scm (enigma)[arguments]: Add phase to substitute faulty
comparison.
This commit is contained in:
Marius Bakke 2020-07-24 12:11:42 +02:00
parent dc6cd35e6d
commit 0b95f51eae
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -5841,6 +5841,14 @@ (define-public enigma
(list "--with-system-enet")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-build-with-new-gcc
(lambda _
;; Fix build with GCC6 and later by avoiding comparing ifstream
;; to NULL. Can be removed for versions > 1.21.
(substitute* "src/lev/Proxy.cc"
(("ifs != NULL")
"ifs"))
#t))
(add-after 'unpack 'find-sdl
(lambda _
(substitute* "configure"