From owner-svn-ports-head@freebsd.org Wed Feb 1 12:26:17 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 27CD0CCAB3D; Wed, 1 Feb 2017 12:26:17 +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 EBA051C49; Wed, 1 Feb 2017 12:26:16 +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 v11CQGrc063463; Wed, 1 Feb 2017 12:26:16 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v11CQF1c063461; Wed, 1 Feb 2017 12:26:15 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702011226.v11CQF1c063461@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:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433012 - in head/games/eboard: . 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:17 -0000 Author: jbeich Date: Wed Feb 1 12:26:15 2017 New Revision: 433012 URL: https://svnweb.freebsd.org/changeset/ports/433012 Log: games/eboard: unbreak with libc++ 3.9 ntext.cc:247:5: error: assigning to 'char *' from incompatible type 'const char *' p = strchr(text, '\n'); ^ ~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout Added: head/games/eboard/files/patch-ntext.cc (contents, props changed) Modified: head/games/eboard/Makefile (contents, props changed) Modified: head/games/eboard/Makefile ============================================================================== --- head/games/eboard/Makefile Wed Feb 1 12:26:06 2017 (r433011) +++ head/games/eboard/Makefile Wed Feb 1 12:26:15 2017 (r433012) @@ -3,7 +3,7 @@ PORTNAME= eboard PORTVERSION= 1.1.1 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= games MASTER_SITES= SF \ SF/${PORTNAME}/eboard-extras/pack%201%20patchlevel%202/:p1 \ Added: head/games/eboard/files/patch-ntext.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/eboard/files/patch-ntext.cc Wed Feb 1 12:26:15 2017 (r433012) @@ -0,0 +1,24 @@ +--- ntext.cc.orig 2008-02-22 15:51:22 UTC ++++ ntext.cc +@@ -237,7 +237,7 @@ void NText::setBG(int c) { + void NText::append(const char *text, int len, int color) { + int i; + NLine *nl; +- char *p; ++ const char *p; + + if (len < 0) { + discardExcess(); +@@ -246,10 +246,8 @@ void NText::append(const char *text, int + + p = strchr(text, '\n'); + if (p!=NULL) { +- *p = 0; +- i = strlen(text); +- nl = new NLine(text, color); +- *p = '\n'; ++ i = p - text; ++ nl = new NLine(text, color, i); + lines.push_back(nl); + formatLine(lines.size()-1); + append(&p[1], len-(i+1), color);