From owner-svn-ports-head@freebsd.org Wed Feb 1 20:21:12 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 1DDB8CCC6AF; Wed, 1 Feb 2017 20:21:12 +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 D44C1676; Wed, 1 Feb 2017 20:21:11 +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 v11KLAWw064648; Wed, 1 Feb 2017 20:21:10 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v11KLAOf064646; Wed, 1 Feb 2017 20:21:10 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702012021.v11KLAOf064646@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 20:21:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433091 - head/graphics/inventor/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 20:21:12 -0000 Author: jbeich Date: Wed Feb 1 20:21:10 2017 New Revision: 433091 URL: https://svnweb.freebsd.org/changeset/ports/433091 Log: graphics/inventor: unbreak with libc++ 3.9 ./SoInput.c++:2813:8: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *firstPlus = strchr(n, '+'); ^ ~~~~~~~~~~~~~~ SoInteractionKit.c++:857:12: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *dotPtr = strchr( partName.getString(), '.' ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SoInteractionKit.c++:858:12: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *brackPtr = strchr( partName.getString(), '[' ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout Added: head/graphics/inventor/files/patch-lib_database_src_so_SoInput.c++ (contents, props changed) head/graphics/inventor/files/patch-lib_interaction_src_nodekits_SoInteractionKit.c++ (contents, props changed) Added: head/graphics/inventor/files/patch-lib_database_src_so_SoInput.c++ ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/inventor/files/patch-lib_database_src_so_SoInput.c++ Wed Feb 1 20:21:10 2017 (r433091) @@ -0,0 +1,11 @@ +--- lib/database/src/so/SoInput.c++.orig 2000-10-25 23:47:47 UTC ++++ lib/database/src/so/SoInput.c++ +@@ -2810,7 +2810,7 @@ SoInput::addReference(const SbName &name + + if (addToGlobalDict) { + // Look for the first '+': +- char *firstPlus = strchr(n, '+'); ++ const char *firstPlus = strchr(n, '+'); + + if (firstPlus == NULL) { + base->setName(name); Added: head/graphics/inventor/files/patch-lib_interaction_src_nodekits_SoInteractionKit.c++ ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/inventor/files/patch-lib_interaction_src_nodekits_SoInteractionKit.c++ Wed Feb 1 20:21:10 2017 (r433091) @@ -0,0 +1,13 @@ +--- lib/interaction/src/nodekits/SoInteractionKit.c++.orig 2000-08-15 12:56:25 UTC ++++ lib/interaction/src/nodekits/SoInteractionKit.c++ +@@ -854,8 +854,8 @@ SoInteractionKit::setAnySurrogatePath( c + // (as in "childList[0].appearance") + // If so, get the string up to whichever came first. + // This will be the 'intermediary' we look for. +- char *dotPtr = strchr( partName.getString(), '.' ); +- char *brackPtr = strchr( partName.getString(), '[' ); ++ const char *dotPtr = strchr( partName.getString(), '.' ); ++ const char *brackPtr = strchr( partName.getString(), '[' ); + + if ( dotPtr != NULL || brackPtr != NULL ) { + char *nameCopy = strdup( partName.getString() );