Page MenuHomeFreeBSD

math/gringo: Require a C++11-compliant standard library and make it work with GCC < 4.9.
ClosedPublic

Authored by rakuco on Sep 1 2015, 3:20 PM.
Tags
None
Referenced Files
F96315943: D3545.id8393.diff
Tue, Sep 24, 1:22 PM
Unknown Object (File)
Sat, Sep 21, 5:17 PM
Unknown Object (File)
Tue, Sep 10, 10:51 PM
Unknown Object (File)
Mon, Sep 2, 3:18 PM
Unknown Object (File)
Aug 21 2024, 12:35 AM
Unknown Object (File)
Aug 18 2024, 11:09 AM
Unknown Object (File)
Aug 4 2024, 7:32 PM
Unknown Object (File)
May 29 2024, 1:01 PM
Subscribers
None

Details

Summary

Despite ports r340913, the port still fails to build on FreeBSD 9.3 with lang/gcc (GCC 4.8):

libreify/src/parser.cc: In member function 'void Reify::Parser::parseProgram()':
libreify/src/parser.cc:130:51: error: 'to_string' is not a member of 'std'

Apply a workaround for bug 193528 found in other ports to make that function visible to GCC 4.8 (GCC 4.9 and later are fine).

Additionally, the port actually requires a C++11 standard library in addition to a C++11-compliant compiler, so adjust the USES line and later simplify the process of choosing which compiler to use.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rakuco retitled this revision from to math/gringo: Require a C++11-compliant standard library and make it work with GCC < 4.9..
rakuco updated this object.
rakuco edited the test plan for this revision. (Show Details)
rakuco added a reviewer: vsevolod.
vsevolod edited edge metadata.

Thank you, I've searched for something like this for a long time already!

This revision is now accepted and ready to land.Sep 1 2015, 3:23 PM
This revision was automatically updated to reflect the committed changes.