From 0b95f51eae50fbe627a354f50fa053a6d52b81aa Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Fri, 24 Jul 2020 12:11:42 +0200 Subject: gnu: enigma: Fix build with GCC >= 6. * gnu/packages/games.scm (enigma)[arguments]: Add phase to substitute faulty comparison. --- gnu/packages/games.scm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 556f813396..213acc6b9f 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -5841,6 +5841,14 @@ The Flag. You can even design your own maps!") (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" -- cgit 1.4.1