Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2018 09:42:58 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478666 - head/devel/librolegen/files
Message-ID:  <201809010942.w819gwJW032919@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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<char>') 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<char>') 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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809010942.w819gwJW032919>