From owner-svn-ports-head@freebsd.org Wed Feb 1 12:26:07 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9835FCCAB0C; Wed, 1 Feb 2017 12:26:07 +0000 (UTC) (envelope-from jbeich@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 mx1.freebsd.org (Postfix) with ESMTPS id 6672C1B68; Wed, 1 Feb 2017 12:26:07 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v11CQ6O3063338; Wed, 1 Feb 2017 12:26:06 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v11CQ6X9063337; Wed, 1 Feb 2017 12:26:06 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702011226.v11CQ6X9063337@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 1 Feb 2017 12:26:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433011 - head/games/openbubbles/files X-SVN-Group: ports-head 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.23 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: Wed, 01 Feb 2017 12:26:07 -0000 Author: jbeich Date: Wed Feb 1 12:26:06 2017 New Revision: 433011 URL: https://svnweb.freebsd.org/changeset/ports/433011 Log: games/openbubbles: unbreak with libc++ 3.9 BFont.cpp:322:14: error: assigning to 'char *' from incompatible type 'const char *' while ((p=strchr(&text[pos+1],SPACE)) != NULL) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BFont.cpp:362:19: error: assigning to 'char *' from incompatible type 'const char *' p = strstr(&text[pos+1]," "); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout Added: head/games/openbubbles/files/ head/games/openbubbles/files/patch-src_BFont.cpp (contents, props changed) Added: head/games/openbubbles/files/patch-src_BFont.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/openbubbles/files/patch-src_BFont.cpp Wed Feb 1 12:26:06 2017 (r433011) @@ -0,0 +1,20 @@ +--- src/BFont.cpp.orig 2005-02-27 14:29:13 UTC ++++ src/BFont.cpp +@@ -314,7 +314,7 @@ int BFont_TextWidthFont(BFont_Info *Font + /* counts the spaces of the strings */ + static int count (const char *text) + { +- char *p = NULL; ++ const char *p = NULL; + int pos = -1; + int i = 0; + +@@ -339,7 +339,7 @@ void BFont_JustifiedPutStringFont(SDL_Su + int dif; + + char *strtmp; +- char *p; ++ const char *p; + int pos = -1; + int xpos = 0; +