Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353837 - app-admin/collectd installs useless libtool and static archives (for plugins)
Summary: app-admin/collectd installs useless libtool and static archives (for plugins)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-06 12:32 UTC by Samuli Suominen (RETIRED)
Modified: 2011-02-07 21:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2011-02-06 12:32:40 UTC
These files got installed with:

[ebuild   R    ] app-admin/collectd-4.10.2-r2  USE="-contrib -debug" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog -apache -apcups -ascent -battery -bind -conntrack -contextswitch -cpu -cpufreq -csv -curl -curl_json -curl_xml -dbi -disk -dns -email -entropy -exec -filecount -fscache -gmond -hddtemp -ipmi -iptables -java -libvirt -logfile -madwifi -match_empty_counter -match_hashed -match_regex -match_timediff -match_value -mbmon -memcachec -memcached -multimeter -mysql -netlink -network -nfs -nginx -notify_desktop* -notify_email -ntpd -olsrd -onewire -openvpn -oracle -perl -ping -postgresql -powerdns -processes -protocols -python -rrdcached -sensors -serial -snmp -table -tail -target_notification -target_replace -target_scale -target_set -tcpconns -teamspeak2 -ted -thermal -tokyotyrant -unixsock -uptime -users -uuid -vmem -vserver -wireless -write_http"

If the package is using libtool (libltdl) to load plugins, the .la files may be valid. You can check by using strace, instructions are here:

http://blog.flameeyes.eu/2009/07/06/identifying-pointless-la-files-for-plugins

But all these .a files are useless for plugins, for sure. You should be passing --disable-static to the build system to get rid of them. 

/usr/lib64/libcollectdclient.a <- the only one that might be valid from .a files
/usr/lib64/collectd/notify_desktop.a
/usr/lib64/collectd/rrdtool.la
/usr/lib64/collectd/irq.a
/usr/lib64/collectd/notify_desktop.la
/usr/lib64/collectd/memory.a
/usr/lib64/collectd/swap.a
/usr/lib64/collectd/interface.a
/usr/lib64/collectd/interface.la
/usr/lib64/collectd/df.la
/usr/lib64/collectd/load.a
/usr/lib64/collectd/irq.la
/usr/lib64/collectd/syslog.a
/usr/lib64/collectd/swap.la
/usr/lib64/collectd/df.a
/usr/lib64/collectd/syslog.la
/usr/lib64/collectd/load.la
/usr/lib64/collectd/rrdtool.a
/usr/lib64/collectd/memory.la
/usr/lib64/libcollectdclient.la
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-02-07 21:23:02 UTC
Fixed in -r3; if there are no complaints, -r2 can go the way of the dinosaur.