From owner-svn-ports-head@freebsd.org Mon Jul 30 09:38:56 2018 Return-Path: Delivered-To: svn-ports-head@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 560D21050ADB; Mon, 30 Jul 2018 09:38:56 +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 EE91E90755; Mon, 30 Jul 2018 09:38:55 +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 CA4282287A; Mon, 30 Jul 2018 09:38:55 +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 w6U9ctSu029551; Mon, 30 Jul 2018 09:38:55 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6U9ctVq029549; Mon, 30 Jul 2018 09:38:55 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201807300938.w6U9ctVq029549@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 09:38:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475876 - in head/games/xpacman: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/games/xpacman: . files X-SVN-Commit-Revision: 475876 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2018 09:38:56 -0000 Author: tobik Date: Mon Jul 30 09:38:55 2018 New Revision: 475876 URL: https://svnweb.freebsd.org/changeset/ports/475876 Log: games/xpacman: Fix build with Clang 6 ./shapes.h:63:38: error: constant expression evaluates to 240 which cannot be narrowed to type 'char' [-Wc++11-narrowing] static SHAPETYPE pacman0_bits[]= {0xf0, 0x0f, 0xf0, 0x0f, 0xfc, 0x3f, 0xfc, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x3f, 0xfc, 0x3f, 0xf0, 0x0f, 0xf0, 0x0f}; ^~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/xpacman-1.002.log Added: head/games/xpacman/files/patch-pac.h (contents, props changed) Modified: head/games/xpacman/Makefile Modified: head/games/xpacman/Makefile ============================================================================== --- head/games/xpacman/Makefile Mon Jul 30 09:38:14 2018 (r475875) +++ head/games/xpacman/Makefile Mon Jul 30 09:38:55 2018 (r475876) @@ -14,9 +14,13 @@ LICENSE= GPLv2 RUN_DEPENDS+= ${LOCALBASE}/share/fonts/misc/9x18.pcf.gz:x11-fonts/font-misc-misc +USES= compiler + GNU_CONFIGURE= yes CONFIGURE_ARGS+=--enable-doublesize -CPPFLAGS+= -I${LOCALBASE}/include +# Build ignores CFLAGS, CXXFLAGS +CPPFLAGS+= -I${LOCALBASE}/include ${CPPFLAGS_${CHOSEN_COMPILER_TYPE}} +CPPFLAGS_clang= -Wno-c++11-narrowing LDFLAGS+= -L${LOCALBASE}/lib USE_XORG= x11 xext PLIST_FILES= bin/pacman Added: head/games/xpacman/files/patch-pac.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/xpacman/files/patch-pac.h Mon Jul 30 09:38:55 2018 (r475876) @@ -0,0 +1,15 @@ +./pac.h:36:30: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] +#define PACTITLE "Pacman v. "VERSION" \xa9 1995,1999,2000 by Roar Thron\xe6s" + ^ + +--- pac.h.orig 2018-07-30 09:36:15 UTC ++++ pac.h +@@ -33,7 +33,7 @@ void writetext(); //just draw text + + //change my name and you will be sued!!!!!!!!!!!!!!!!!!!!!!!!!! + #ifndef VMS +-#define PACTITLE "Pacman v. "VERSION" \xa9 1995,1999,2000 by Roar Thron\xe6s" ++#define PACTITLE "Pacman v. " VERSION " \xa9 1995,1999,2000 by Roar Thron\xe6s" + #else + #define PACTITLE "Pacman v. 1_002 \xa9 1995,1999,2000 by Roar Thron\xe6s" + #endif