From owner-svn-ports-all@freebsd.org Fri Jan 6 19:57:33 2017 Return-Path: Delivered-To: svn-ports-all@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 64B75CA2106; Fri, 6 Jan 2017 19:57:33 +0000 (UTC) (envelope-from antoine@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 19E0F1F5F; Fri, 6 Jan 2017 19:57:33 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v06JvWWa058379; Fri, 6 Jan 2017 19:57:32 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v06JvW0O058377; Fri, 6 Jan 2017 19:57:32 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201701061957.v06JvW0O058377@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Fri, 6 Jan 2017 19:57:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r430733 - in branches/2017Q1/emulators/snes9x: . files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2017 19:57:33 -0000 Author: antoine Date: Fri Jan 6 19:57:31 2017 New Revision: 430733 URL: https://svnweb.freebsd.org/changeset/ports/430733 Log: MFH: r430522 emulators/snes9x: unbreak with libc++ 3.9 unix/unix.cpp:1451:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *slash = strrchr(path, SLASH_CHAR); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ unix/unix.cpp:1452:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *dot = strrchr(path, '.'); ^ ~~~~~~~~~~~~~~~~~~ PR: 212343 Regressed by: https://github.com/llvm-mirror/libcxx/commit/b4aa97130b8b Modified: branches/2017Q1/emulators/snes9x/Makefile branches/2017Q1/emulators/snes9x/files/patch-unix_unix.cpp Directory Properties: branches/2017Q1/ (props changed) Modified: branches/2017Q1/emulators/snes9x/Makefile ============================================================================== --- branches/2017Q1/emulators/snes9x/Makefile Fri Jan 6 19:56:11 2017 (r430732) +++ branches/2017Q1/emulators/snes9x/Makefile Fri Jan 6 19:57:31 2017 (r430733) @@ -3,7 +3,7 @@ PORTNAME= snes9x PORTVERSION= 1.51 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= emulators MASTER_SITES= http://files.ipherswipsite.com/snes9x/ \ http://www.lysator.liu.se/snes9x/${PORTVERSION}/ Modified: branches/2017Q1/emulators/snes9x/files/patch-unix_unix.cpp ============================================================================== --- branches/2017Q1/emulators/snes9x/files/patch-unix_unix.cpp Fri Jan 6 19:56:11 2017 (r430732) +++ branches/2017Q1/emulators/snes9x/files/patch-unix_unix.cpp Fri Jan 6 19:57:31 2017 (r430733) @@ -417,6 +417,17 @@ #endif // defined (JOYSTICK_SUPPORT) START_EXTERN_C +@@ -1162,8 +1448,8 @@ void _splitpath(const char *path, char * + { + *drive = 0; + +- char *slash = strrchr(path, SLASH_CHAR); +- char *dot = strrchr(path, '.'); ++ const char *slash = strrchr(path, SLASH_CHAR); ++ const char *dot = strrchr(path, '.'); + + if (dot && slash && dot < slash) + { @@ -1716,7 +2002,7 @@ } #endif