Page MenuHomeFreeBSD

biology/libgtextutils: Unbreak for FreeBSD 12
ClosedPublic

Authored by jwb on Mar 29 2018, 1:46 PM.
Tags
None
Referenced Files
F103247588: D14892.diff
Fri, Nov 22, 2:55 PM
F103241748: D14892.id.diff
Fri, Nov 22, 1:31 PM
Unknown Object (File)
Thu, Nov 21, 6:15 PM
Unknown Object (File)
Tue, Nov 19, 8:45 PM
Unknown Object (File)
Tue, Nov 19, 4:04 PM
Unknown Object (File)
Tue, Nov 19, 12:49 PM
Unknown Object (File)
Tue, Nov 19, 8:37 AM
Unknown Object (File)
Sun, Nov 17, 1:01 PM
Subscribers

Details

Summary

biology/libgtextutils: Unbreak for FreeBSD 12

From pkg-fallout:

libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -Wextra -Wformat-nonliteral -Wformat-security -Wswitch-default -Wswitch-enum -Wunused-parameter -Wfloat-equal -Werror -DDEBUG -g -O1 -DDEBUG -g -O1 -MT text_line_reader.lo -MD -MP -MF .deps/text_line_reader.Tpo -c text_line_reader.cpp -fPIC -DPIC -o .libs/text_line_reader.o
text_line_reader.cpp:47:9: error: no viable conversion from returned value of type 'std::istream' (aka 'basic_istream<char>') to function return type 'bool'

return input_stream ;
       ^~~~~~~~~~~~

Newer C++ compilers are stricter about implicit conversions. This is
a standard fix seen in many packages and taken from an upstream commit:

https://github.com/agordon/libgtextutils/commit/d8bb66d26288293ebde7f8d88979c13c208ffce5

Approved by: jrm or wen
Will include differential in commit

Test Plan

Tested on FreeBSD 11
I don't currently have a FreeBSD 12 installation, but I'm confident that this
will fix the issue and if I'm wrong, there's no harm done. Still plenty of
time before 12-RELEASE.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 15866
Build 15871: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Mar 29 2018, 1:57 PM
biology/libgtextutils/Makefile
4

Please do not change PORTVERSION to DISTVERSION without changing the version itself.

biology/libgtextutils/Makefile
4

As you correctly pointed out in the past, there are good reasons not to do this in general, but in this specific case, PORTREVISION does not change. Is there still harm that we are missing?

biology/libgtextutils/Makefile
4

Like all other cosmetic changes, it breaks svn annotate/git blame, it adds unnecessary churn to the repository.

biology/libgtextutils/Makefile
4

Logical and clear reason (as usual). Thanks @mat.

jrm requested changes to this revision.Mar 29 2018, 3:19 PM
This revision now requires changes to proceed.Mar 29 2018, 3:19 PM
This revision was not accepted when it landed; it landed in state Needs Revision.Mar 29 2018, 3:41 PM
This revision was automatically updated to reflect the committed changes.

Crap, sorry. I didn't scroll down to see your comment. I'm just overwhelmed with juggling too many things here...

Should I revert it?

Updated my checklist so this won't happen again.