Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460348 - net-analyzer/rrdtool-1.4.7-r1 - add USE=static-libs
Summary: net-analyzer/rrdtool-1.4.7-r1 - add USE=static-libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-04 23:12 UTC by A.M.
Modified: 2013-03-06 16:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge-info.txt,5.15 KB, text/plain)
2013-03-04 23:12 UTC, A.M.
Details
ebuild patch that worked for me (rrdtool.patch,759 bytes, patch)
2013-03-04 23:13 UTC, A.M.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).