Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2015 08:32:02 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r383843 - head/games/megaglest
Message-ID:  <201504120832.t3C8W2oh056956@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504120832.t3C8W2oh056956>