From owner-svn-ports-all@freebsd.org Fri Nov 18 03:34:25 2016 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 7D5DDC47B6B; Fri, 18 Nov 2016 03:34:25 +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 4F2671233; Fri, 18 Nov 2016 03:34:25 +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 uAI3YOeM067604; Fri, 18 Nov 2016 03:34:24 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAI3YOPU067603; Fri, 18 Nov 2016 03:34:24 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201611180334.uAI3YOPU067603@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 18 Nov 2016 03:34:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r426307 - head/graphics/zphoto/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: Fri, 18 Nov 2016 03:34:25 -0000 Author: jbeich Date: Fri Nov 18 03:34:24 2016 New Revision: 426307 URL: https://svnweb.freebsd.org/changeset/ports/426307 Log: graphics/zphoto: unbreak with libc++ 3.9 image.cpp:557:11: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *suffix1 = strrchr(src, '.'); ^ ~~~~~~~~~~~~~~~~~~ image.cpp:558:11: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char *suffix2 = strrchr(dest, '.'); ^ ~~~~~~~~~~~~~~~~~~ PR: 212343 Reported by: antoine (via exp-run) Added: head/graphics/zphoto/files/patch-image.cpp (contents, props changed) Added: head/graphics/zphoto/files/patch-image.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/zphoto/files/patch-image.cpp Fri Nov 18 03:34:24 2016 (r426307) @@ -0,0 +1,13 @@ +--- image.cpp.orig 2004-07-20 16:48:11 UTC ++++ image.cpp +@@ -554,8 +554,8 @@ restore_mtime (const char *file_name, ti + static int + convert_needed_p (const char *src, const char *dest) + { +- char *suffix1 = strrchr(src, '.'); +- char *suffix2 = strrchr(dest, '.'); ++ const char *suffix1 = strrchr(src, '.'); ++ const char *suffix2 = strrchr(dest, '.'); + + return strcmp(suffix1, suffix2) != 0; + }