Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 299503

Summary: app-text/crm114-20090807 tries to link statically with dev-libs/tre
Product: Gentoo Linux Reporter: Norman Yarvin <norman.yarvin>
Component: New packagesAssignee: Steev Klimaszewski (RETIRED) <steev>
Status: RESOLVED FIXED    
Severity: normal CC: brent.saner, pacopablo, qa
Priority: High    
Version: 10.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Norman Yarvin 2010-01-03 19:24:38 UTC
If dev-libs/tre was installed without USE=static-libs, and crm114 is built with USE=static (as it is by default), emerge of crm114 fails with "cannot find -ltre".  Re-merging tre with USE=static-libs fixes the problem, but the crm114 ebuild should be changed to reflect the need for this, which I think can be done by replacing the RDEPEND line

        >=dev-libs/tre-0.7.5

with

        >=dev-libs/tre-0.7.5[static-libs]

or perhaps with the lines

        static? >=dev-libs/tre-0.7.5[static-libs]
        !static? >=dev-libs/tre-0.7.5
Comment 1 Norman Yarvin 2010-01-03 19:28:09 UTC
Note that upstream says that:

        The reason for the "static" linking recommendation is that many people
        don't have root on their site's mail server and so cannot install the
        TRE regex library there.

This doesn't normally apply to Gentoo ebuilds, so maybe a better solution is to just drop all the static-linking stuff.

That quote is from:

http://crm114.sourceforge.net/src/README
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-01-03 19:31:25 UTC
crm114 must use the shared library from tre, not depend on the static-libs flag. 
Comment 3 Steev Klimaszewski (RETIRED) gentoo-dev 2011-07-31 20:07:51 UTC
static has been removed as the default useflag in 20100106 ebuild.