From owner-svn-ports-head@freebsd.org Wed Feb 1 20:21:57 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 B7358CCC7A4; Wed, 1 Feb 2017 20:21:57 +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 869FEB21; Wed, 1 Feb 2017 20:21:57 +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 v11KLu3G068816; Wed, 1 Feb 2017 20:21:56 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v11KLu0D068815; Wed, 1 Feb 2017 20:21:56 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702012021.v11KLu0D068815@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:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433096 - head/www/squidpurge/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:57 -0000 Author: jbeich Date: Wed Feb 1 20:21:56 2017 New Revision: 433096 URL: https://svnweb.freebsd.org/changeset/ports/433096 Log: www/squidpurge: unbreak with libc++ 3.9 copyout.cc:135:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char* ptr = strstr( url, "://" ); ^ ~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout Added: head/www/squidpurge/files/patch-copyout.cc (contents, props changed) Added: head/www/squidpurge/files/patch-copyout.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/squidpurge/files/patch-copyout.cc Wed Feb 1 20:21:56 2017 (r433096) @@ -0,0 +1,11 @@ +--- copyout.cc.orig 2000-09-21 13:05:31 UTC ++++ copyout.cc +@@ -132,7 +132,7 @@ copy_out( size_t filesize, size_t metasi + static const char* index = "index.html"; + + // find hostname part after the scheme (okok, not counting port, etc.) +- char* ptr = strstr( url, "://" ); ++ const char* ptr = strstr( url, "://" ); + if ( ptr == 0 || strlen(ptr) < 4 ) return false; + + // create filename to store contents into