Page MenuHomeFreeBSD

Fix mail/evolution startup failure on FreeBSD 8 and 9.
ClosedPublic

Authored by truckman on Apr 28 2015, 5:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 14 2024, 9:28 PM
Unknown Object (File)
Dec 21 2023, 1:06 PM
Unknown Object (File)
Dec 20 2023, 1:02 AM
Unknown Object (File)
Nov 25 2023, 11:49 AM
Unknown Object (File)
Nov 25 2023, 11:49 AM
Unknown Object (File)
Nov 25 2023, 11:49 AM
Unknown Object (File)
Nov 25 2023, 2:36 AM
Unknown Object (File)
Oct 30 2023, 7:49 AM
Subscribers
None

Details

Summary

Remove USES=compiler:c++11-lib from mail/evolution. While it
fixes the build failure on FreeBSD 8 (and probably 9), the
application fails to start because the base version of libstdc++
is loaded at runtime, which does not satify the requirements
of. The reason is that evolution does not directly link to
libstdc++, so the rpath added to it by USES=compiler:c++11-lib
has no effect. The first shared library that links to
libstdc++ belongs to evolution-data-server, which does not
have USES=compiler:c++11-lib, which causes the base version
of libstdc++ to be loaded.

Unconditionally add USES=compiler:c++11-lib to
databases/evolution-data-server. For standard versions of
FreeBSD 10 and higher on amd64 and i386, it is a no-op,
so there is no harm in enabling it. If FreeBSD 10 or
higher is configured to build with base gcc and clang is
not present, which is an option on amd64 and i386 and is
mandatory on some tier 2 platforms that don't have clang
support, then USES=compiler:c++11-lib is needed.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199746

Test Plan

Build on FreeBSD 8, 9, 10, and 11. Run on FreeBSD 8.

Diff Detail

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

Event Timeline

truckman retitled this revision from to Fix mail/evolution startup failure on FreeBSD 8 and 9..
truckman updated this object.
truckman edited the test plan for this revision. (Show Details)
truckman added reviewers: mat, kwm.
mat edited edge metadata.
This revision is now accepted and ready to land.Apr 28 2015, 10:26 PM
kwm edited edge metadata.

Shouid I tag the commit MFH 2015Q2?

Well, if it also impacts the stable branch, yes, sure :-)

This revision was automatically updated to reflect the committed changes.