Bug 216053

Summary: devel/libclaw: falis to build with lang/gcc6 or later
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed Overcome By Events    
Severity: Affects Only Me Keywords: needs-patch
Priority: --- Flags: bugzilla: maintainer-feedback? (amdmi3)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216034
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216036
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216035
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216047
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216055
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216060
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216066
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216070
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216077
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216078
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216080
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216082

Description Jan Beich freebsd_committer freebsd_triage 2017-01-14 05:34:09 UTC
claw/code/configuration_file.cpp:444:8: error: no viable conversion from 'std::__1::basic_istream<char>' to 'bool'

build log: http://sprunge.us/deAO
regressed by: https://github.com/llvm-mirror/libcxx/commit/3a1b90a866b6
Comment 1 Jan Beich freebsd_committer freebsd_triage 2017-01-14 05:34:50 UTC
(In reply to Dimitry Andric from bug 216034 comment #6)
> Note that the upstream author has reverted the commit causing this here:
>
> http://llvm.org/viewvc/llvm-project?rev=291921&view=rev
>
> and has also merged it to the 4.0 branch. I will import the upstream
> branch into the projects/clang400-import branch soon.

lang/gcc6 and later versions are also affected.

claw/code/configuration_file.cpp: In member function 'bool claw::configuration_file::get_line(std::istream&, const claw::configuration_file::syntax_description&, std::__cxx11::string&) const':
claw/code/configuration_file.cpp:444:39: error: cannot convert 'std::basic_istream<char>' to 'bool' in initialization
   bool result = text::getline(is, line);
                                       ^
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2017-08-23 11:54:44 UTC
The port is now deprecated, no need to fix this.