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

Bug 460348

Summary: net-analyzer/rrdtool-1.4.7-r1 - add USE=static-libs
Product: Gentoo Linux Reporter: A.M. <gentoo>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
ebuild patch that worked for me

Description A.M. 2013-03-04 23:12:59 UTC
Created attachment 340974 [details]
emerge --info output

I need to link against static libraries in order to compile code on my gentoo box and run it on non-gentoo boxes.  In the past, rrdtool installed librrd.a in /usr/lib.  Now, it does not.  I added static-libs to my USE flags, but that didn't work, even though it did for sys-libs/zlib and dev-libs/openssl.

To get around the problem, I patched the ebuild.  It seems to work fine, but my testing has been modest.  Please consider accepting my patch so that others can get static libraries when they need them.

I've attached the output of emerge --info and will attach my patch.
Comment 1 A.M. 2013-03-04 23:13:56 UTC
Created attachment 340976 [details, diff]
ebuild patch that worked for me
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-06 16:18:58 UTC
Comment on attachment 340976 [details, diff]
ebuild patch that worked for me

This patch wouldn't work for anyone else, though. Packages in R/DEPEND should have USE=static-libs as well.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-06 16:29:35 UTC
--- ChangeLog   2013-03-06 17:06:11.000000000 +0100
+++ ChangeLog.new       2013-03-06 17:28:04.123058555 +0100
@@ -3,6 +3,9 @@
 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v 1.244 2013/03/06 16:06:11 jer Exp $

+  06 Mar 2013; Jeroen Roovers <jer@gentoo.org> rrdtool-1.4.7-r2.ebuild:
+  Add USE=static-libs by A.M. (bug #460348).

Thanks for the patch. Please reopen if something is still missing (I noticed x11-libs/pango doesn't have support for IUSE=static-libs, and I don't know whether it matters).