aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2018-09-01 17:42:57 +0800
committertobik <tobik@FreeBSD.org>2018-09-01 17:42:57 +0800
commit8362f34b16bb4b7d83fab8d9c57909153a6ba67f (patch)
treea9b5a9f83c856cb93c0cbb6b1614a8daeb4be1b6 /devel
parenta649cf3ec6741fd0c915145ba8538a20d1fa7de7 (diff)
downloadfreebsd-ports-gnome-8362f34b16bb4b7d83fab8d9c57909153a6ba67f.tar.gz
freebsd-ports-gnome-8362f34b16bb4b7d83fab8d9c57909153a6ba67f.tar.zst
freebsd-ports-gnome-8362f34b16bb4b7d83fab8d9c57909153a6ba67f.zip
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
Diffstat (limited to 'devel')
-rw-r--r--devel/librolegen/files/patch-src_rolegen.cpp.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/librolegen/files/patch-src_rolegen.cpp.in b/devel/librolegen/files/patch-src_rolegen.cpp.in
new file mode 100644
index 000000000000..c35c9b2099da
--- /dev/null
+++ b/devel/librolegen/files/patch-src_rolegen.cpp.in
@@ -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()