From owner-svn-ports-all@freebsd.org Wed Feb 1 20:23:03 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 DE242CCC8EA; Wed, 1 Feb 2017 20:23:03 +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 A0361125F; Wed, 1 Feb 2017 20:23:03 +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 v11KN2ZY069704; Wed, 1 Feb 2017 20:23:02 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v11KN27m069699; Wed, 1 Feb 2017 20:23:02 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702012023.v11KN27m069699@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:23:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433103 - head/devel/gcvs/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-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: Wed, 01 Feb 2017 20:23:04 -0000 Author: jbeich Date: Wed Feb 1 20:23:02 2017 New Revision: 433103 URL: https://svnweb.freebsd.org/changeset/ports/433103 Log: devel/gcvs: unbreak with libc++ 3.9 AppGlue.cpp:263:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *login = strchr(ccvsroot, '@'); ^ ~~~~~~~~~~~~~~~~~~~~~ CvsArgs.cpp:201:16: error: call to 'strchr' is ambiguous bool hasLF = strchr(newarg, '\n') != 0L; ^~~~~~ CvsArgs.cpp:210:19: error: call to 'strchr' is ambiguous bool hasSpace = strchr(newarg, ' ') != 0L; ^~~~~~ TextBinary.cpp:466:8: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *tmp = strrchr(file, '.'); ^ ~~~~~~~~~~~~~~~~~~ UCvsFiles.cpp:2020:12: error: call to 'strchr' is ambiguous if((tmp = strchr(r1, '.')) != 0L) ^~~~~~ UCvsFiles.cpp:2028:12: error: call to 'strchr' is ambiguous if((tmp = strchr(r2, '.')) != 0L) ^~~~~~ umenu.cpp:257:12: error: call to 'strchr' is ambiguous if((tmp = strchr(copy, '\t')) != 0L) ^~~~~~ umenu.cpp:280:12: error: call to 'strchr' is ambiguous if((tmp = strchr(title, '&')) != 0L) ^~~~~~ Reported by: pkg-fallout Added: head/devel/gcvs/files/patch-common_AppGlue.cpp (contents, props changed) head/devel/gcvs/files/patch-common_CvsArgs.cpp (contents, props changed) head/devel/gcvs/files/patch-common_TextBinary.cpp (contents, props changed) head/devel/gcvs/files/patch-rf_umenu.cpp (contents, props changed) Modified: head/devel/gcvs/files/patch-common-UCvsFiles.cpp (contents, props changed) Modified: head/devel/gcvs/files/patch-common-UCvsFiles.cpp ============================================================================== --- head/devel/gcvs/files/patch-common-UCvsFiles.cpp Wed Feb 1 20:22:52 2017 (r433102) +++ head/devel/gcvs/files/patch-common-UCvsFiles.cpp Wed Feb 1 20:23:02 2017 (r433103) @@ -27,3 +27,21 @@ } else { +@@ -2017,7 +2017,7 @@ static int revcmp(const char *rev1, cons + char *tmp; + int v1, v2; + +- if((tmp = strchr(r1, '.')) != 0L) ++ if((tmp = strchr((char *)r1, '.')) != 0L) + { + tmp[0] = '\0'; + q1 = tmp + 1; +@@ -2025,7 +2025,7 @@ static int revcmp(const char *rev1, cons + + v1 = atoi(r1); + +- if((tmp = strchr(r2, '.')) != 0L) ++ if((tmp = strchr((char *)r2, '.')) != 0L) + { + tmp[0] = '\0'; + q2 = tmp + 1; Added: head/devel/gcvs/files/patch-common_AppGlue.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gcvs/files/patch-common_AppGlue.cpp Wed Feb 1 20:23:02 2017 (r433103) @@ -0,0 +1,11 @@ +--- common/AppGlue.cpp.orig 2002-03-12 18:34:31 UTC ++++ common/AppGlue.cpp +@@ -260,7 +260,7 @@ CVS_EXTERN_C const char *glue_getenv(cha + // extract from the cvsroot + const char *ccvsroot = gCvsPrefs; + ccvsroot = Authen::skiptoken(ccvsroot); +- char *login = strchr(ccvsroot, '@'); ++ const char *login = strchr(ccvsroot, '@'); + if(login == NULL) + { + // for WIN32 this means the CVSROOT is local Added: head/devel/gcvs/files/patch-common_CvsArgs.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gcvs/files/patch-common_CvsArgs.cpp Wed Feb 1 20:23:02 2017 (r433103) @@ -0,0 +1,20 @@ +--- common/CvsArgs.cpp.orig 2002-06-27 19:02:08 UTC ++++ common/CvsArgs.cpp +@@ -198,7 +198,7 @@ void CvsArgs::print(const char *indirect + { + CStr newarg; + newarg = argv[i]; +- bool hasLF = strchr(newarg, '\n') != 0L; ++ bool hasLF = strchr((const char*)newarg, '\n') != 0L; + size_t len = newarg.length(); + + if(len > MAX_PRINT_ARG) +@@ -207,7 +207,7 @@ void CvsArgs::print(const char *indirect + if(hasLF) + newarg = expandLF(newarg, buf); + +- bool hasSpace = strchr(newarg, ' ') != 0L; ++ bool hasSpace = strchr((const char*)newarg, ' ') != 0L; + if(hasSpace) + cvs_out("\""); + cvs_outstr(newarg, newarg.length()); Added: head/devel/gcvs/files/patch-common_TextBinary.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gcvs/files/patch-common_TextBinary.cpp Wed Feb 1 20:23:02 2017 (r433103) @@ -0,0 +1,11 @@ +--- common/TextBinary.cpp.orig 2003-01-10 14:12:38 UTC ++++ common/TextBinary.cpp +@@ -463,7 +463,7 @@ bool SplitPath(const char *dir, CStr & u + + void GetExtension(const char *file, CStr & base, CStr & ext) + { +- char *tmp = strrchr(file, '.'); ++ const char *tmp = strrchr(file, '.'); + + if(tmp == 0L) + { Added: head/devel/gcvs/files/patch-rf_umenu.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gcvs/files/patch-rf_umenu.cpp Wed Feb 1 20:23:02 2017 (r433103) @@ -0,0 +1,20 @@ +--- rf/umenu.cpp.orig 2001-09-04 02:29:03 UTC ++++ rf/umenu.cpp +@@ -254,7 +254,7 @@ static void GetMenuTitle(const char *nam + // get the accelerator + UStr copy(name); + char *tmp; +- if((tmp = strchr(copy, '\t')) != 0L) ++ if((tmp = strchr((char *)copy, '\t')) != 0L) + { + *tmp++ = '\0'; + if(strncmp(tmp, CTRLALT_STROKE, strlen(CTRLALT_STROKE)) == 0) +@@ -277,7 +277,7 @@ static void GetMenuTitle(const char *nam + + title = name; + #ifndef WIN32 +- if((tmp = strchr(title, '&')) != 0L) ++ if((tmp = strchr((char *)title, '&')) != 0L) + { + size_t l = tmp - (const char *)title; + memmove(&title[l], &title[l + 1], title.length() - l);