From owner-svn-ports-all@freebsd.org Mon Jul 30 07:23:25 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C31E1104D47F; Mon, 30 Jul 2018 07:23:25 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 66CA68BE7E; Mon, 30 Jul 2018 07:23:25 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 425EA213D4; Mon, 30 Jul 2018 07:23:25 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6U7NP7Y061554; Mon, 30 Jul 2018 07:23:25 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6U7NOOw061553; Mon, 30 Jul 2018 07:23:24 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201807300723.w6U7NOOw061553@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Mon, 30 Jul 2018 07:23:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475865 - in head/games/xsc: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/games/xsc: . files X-SVN-Commit-Revision: 475865 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2018 07:23:25 -0000 Author: tobik Date: Mon Jul 30 07:23:24 2018 New Revision: 475865 URL: https://svnweb.freebsd.org/changeset/ports/475865 Log: games/xsc: Fix build with Clang 6 buzzer.C:36:8: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing] { COS00 / 2.0, -SIN00 / 2.0 }, { -COS00 / 2.0, SIN00 / 2.0 }, ^~~~~~~~~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/xsc-1.6_1.log - While here also fix segfault due to some uninitialized variables Added: head/games/xsc/files/ head/games/xsc/files/patch-text.C (contents, props changed) Modified: head/games/xsc/Makefile Modified: head/games/xsc/Makefile ============================================================================== --- head/games/xsc/Makefile Mon Jul 30 07:12:06 2018 (r475864) +++ head/games/xsc/Makefile Mon Jul 30 07:23:24 2018 (r475865) @@ -3,7 +3,7 @@ PORTNAME= xsc PORTVERSION= 1.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://www.panix.com/~mbh/xsc/ \ SF/nemysisfreebsdp/${CATEGORIES}/:icons @@ -16,8 +16,11 @@ COMMENT= Vector graphics space shoot'em up game LICENSE= GPLv2 +USES= compiler USE_XORG= x11 GNU_CONFIGURE= yes +CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}} +CXXFLAGS_clang= -Wno-c++11-narrowing PORTDOCS= AUTHORS ChangeLog README OPTIONS_DEFINE= DOCS Added: head/games/xsc/files/patch-text.C ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/xsc/files/patch-text.C Mon Jul 30 07:23:24 2018 (r475865) @@ -0,0 +1,11 @@ +--- text.C.orig 2013-04-05 21:18:39 UTC ++++ text.C +@@ -27,7 +27,7 @@ static const char *const file_id = + #include "text.h" + + +-Text::Text(void) ++Text::Text(void) : message(NULL), length(0) + { + //fprintf(stderr, "Text::Text()\n"); + set_scale(6.0);