Bug 213987

Summary: devel/boost-libs: fix for lang/gcc5
Product: Ports & Packages Reporter: Kenneth Salerno <kennethsalerno>
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: gerald, office
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Fix for lang/gcc5 none

Description Kenneth Salerno 2016-11-01 20:05:37 UTC
Created attachment 176386 [details]
Fix for lang/gcc5

auto_ptr in /usr/include header causes c1plusplus to segfault.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2016-11-24 05:23:57 UTC
Likely obsoleted by ports r426908. Even if not, please, describe build environment in more detail e.g., backed by poudriere logs and if there're local patches. Don't forget to quote errors which are crucial when remuving cruft in future.

Also, if the compiler is buggy it should be patched rather than stacking more hacks into consumers. While GCC 4.2 in base can't be patched retroactively the ports can and *should*.

> +.if ${COMPILER_TYPE} == gcc
> +CXXFLAGS += -std=gnu++11 -D_GLIBCXX_USE_C99=1 -include cmath

devel/boost-libs is fragile if consumers are built with different compiler or flags. Adding -std=gnu++11 would require an exp-run. Besides, GCC in base doesn't support C++11
Comment 2 Kenneth Salerno 2016-12-04 16:12:36 UTC
(In reply to Jan Beich (mail not working) from comment #1)
Hi, yes the patch is now obsolete and boost-libs builds successfully with lang/gcc5 now.

You're correct that I should have included a check for "${COMPILER_VERSION} >= 50", sorry about that!