From owner-svn-ports-head@freebsd.org Sat Jul 28 05:58:24 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 F2B5C1064955; Sat, 28 Jul 2018 05:58:23 +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 A8BC87BC4B; Sat, 28 Jul 2018 05:58:23 +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 89C33229EA; Sat, 28 Jul 2018 05:58:23 +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 w6S5wNsG073034; Sat, 28 Jul 2018 05:58:23 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6S5wNkE073032; Sat, 28 Jul 2018 05:58:23 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201807280558.w6S5wNkE073032@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sat, 28 Jul 2018 05:58:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475492 - in head/games/maelstrom: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/games/maelstrom: . files X-SVN-Commit-Revision: 475492 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: Sat, 28 Jul 2018 05:58:24 -0000 Author: tobik Date: Sat Jul 28 05:58:22 2018 New Revision: 475492 URL: https://svnweb.freebsd.org/changeset/ports/475492 Log: games/maelstrom: Fix build with Clang 6 ./load.h:109:22: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] sprintf(path, "%s"DIR_SEP"%s", directory, filename); ^ ./load.h:95:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] directory = LIBDIR; ^ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475044_s336572/logs/maelstrom-3.0.6_13.log - While here fix some bad implicit declaration warnings Added: head/games/maelstrom/files/patch-Maelstrom-netd.c (contents, props changed) Modified: head/games/maelstrom/Makefile Modified: head/games/maelstrom/Makefile ============================================================================== --- head/games/maelstrom/Makefile Sat Jul 28 05:46:16 2018 (r475491) +++ head/games/maelstrom/Makefile Sat Jul 28 05:58:22 2018 (r475492) @@ -3,7 +3,7 @@ PORTNAME= maelstrom PORTVERSION= 3.0.6 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= games MASTER_SITES= http://slouken.libsdl.org/projects/Maelstrom/src/ \ SF/nemysisfreebsdp/${CATEGORIES}/:icons @@ -18,6 +18,7 @@ COMMENT= Asteroids-style game for X Window System LICENSE= GPLv2 +USE_CXXSTD= gnu++98 USE_SDL= sdl net USE_XORG= xpm GNU_CONFIGURE= yes Added: head/games/maelstrom/files/patch-Maelstrom-netd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/maelstrom/files/patch-Maelstrom-netd.c Sat Jul 28 05:58:22 2018 (r475492) @@ -0,0 +1,22 @@ +Maelstrom-netd.c:48:10: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] + (void) free(players[which].packet); + ^ +Maelstrom-netd.c:62:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] + exit(3); + ^ +Maelstrom-netd.c:62:3: note: include the header or explicitly provide a declaration for 'exit' +Maelstrom-netd.c:157:24: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] + strcpy(ptr, (char *)inet_ntoa(player->raddr.sin_addr)); + ^ + +--- Maelstrom-netd.c.orig 2018-07-28 05:49:43 UTC ++++ Maelstrom-netd.c +@@ -9,6 +9,8 @@ + #include + #include + #include ++#include ++#include + #include + #include +