svn commit: r383843 - head/games/megaglest
John Marino
marino at FreeBSD.org
Sun Apr 12 08:32:02 UTC 2015
Author: marino
Date: Sun Apr 12 08:32:01 2015
New Revision: 383843
URL: https://svnweb.freebsd.org/changeset/ports/383843
Log:
games/megaglest: Unbreak on F10+ with an unsavory solution
Megaglest cannot be built under c++11 standard from the latest clang.
It catches a narrowing error. The real solution is to fix the c++
code (it wasn't the only problem, but the first to trigger an error over
a warning). The c++11 standard is required for wx, so it can't be
unspecified. It turns out that gcc48 will not catch the error that clang
does so the temporary fix is to require gcc48 for all FreeBSD releases.
This may work for gcc49 as well, but it's likely that gcc5 will also
catch the bug and break.
So the unsavory short-term solution is to require GCC to build megaglest,
but the long term fix is either patch the code or hopefully update to
new version when upstream fixes the bug (then USE_GCC can be removed).
Reported by: amdmi3
Modified:
head/games/megaglest/Makefile
Modified: head/games/megaglest/Makefile
==============================================================================
--- head/games/megaglest/Makefile Sun Apr 12 08:02:20 2015 (r383842)
+++ head/games/megaglest/Makefile Sun Apr 12 08:32:01 2015 (r383843)
@@ -3,7 +3,7 @@
PORTNAME= megaglest
PORTVERSION= 3.9.0.4
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_3.9.0/
DISTNAME= ${PORTNAME}-source-${PORTVERSION}
@@ -23,7 +23,11 @@ RUN_DEPENDS= ${DATADIR}/tutorials/2_basi
SUB_FILES= pkg-message
-USES= cmake compiler:c++11-lib display:build dos2unix lua openal:al,alut pkgconfig tar:xz
+# Clang catches a c++11 violation that older GCC misses, so until the
+# code is fixed, remove USES+=compiler:c++11-lib and set USE_GCC=yes
+USES= cmake display:build dos2unix lua openal:al,alut pkgconfig \
+ tar:xz
+USE_GCC= yes
USE_GL= glew gl glu
USE_SDL= yes
USE_WX= 3.0
More information about the svn-ports-head
mailing list