From owner-svn-ports-all@freebsd.org Sat Sep 1 09:42:58 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0F12FE40C0; Sat, 1 Sep 2018 09:42:58 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8279482BF3; Sat, 1 Sep 2018 09:42:58 +0000 (UTC) (envelope-from tobik@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6323973C; Sat, 1 Sep 2018 09:42:58 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w819gwfU032920; Sat, 1 Sep 2018 09:42:58 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w819gwJW032919; Sat, 1 Sep 2018 09:42:58 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201809010942.w819gwJW032919@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sat, 1 Sep 2018 09:42:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478666 - head/devel/librolegen/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/devel/librolegen/files X-SVN-Commit-Revision: 478666 X-SVN-Commit-Repository: ports 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.27 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: Sat, 01 Sep 2018 09:42:59 -0000 Author: tobik Date: Sat Sep 1 09:42:57 2018 New Revision: 478666 URL: https://svnweb.freebsd.org/changeset/ports/478666 Log: devel/librolegen: Fix build with Clang 6 Configured/src/rolegen.cpp:54:10: error: no viable conversion from returned value of type 'std::__1::ifstream' (aka 'basic_ifstream') to function return type 'bool' return ifile; ^~~~~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p478276_s338342/logs/errors/librolegen-1.0b.log Added: head/devel/librolegen/files/ head/devel/librolegen/files/patch-src_rolegen.cpp.in (contents, props changed) Added: head/devel/librolegen/files/patch-src_rolegen.cpp.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/librolegen/files/patch-src_rolegen.cpp.in Sat Sep 1 09:42:57 2018 (r478666) @@ -0,0 +1,15 @@ +Configured/src/rolegen.cpp:54:10: error: no viable conversion from returned value of type 'std::__1::ifstream' (aka 'basic_ifstream') to function return type 'bool' + return ifile; + ^~~~~ + +--- src/rolegen.cpp.in.orig 2018-09-01 02:53:02 UTC ++++ src/rolegen.cpp.in +@@ -51,7 +51,7 @@ static bool isPrivilegedAppId(const char *appId) + static bool fexists(string filename) + { + ifstream ifile(filename.c_str()); +- return ifile; ++ return ifile.is_open(); + } + + static void checkDirStructure()