Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342985 - app-admin/collectd-4.10.1-r2 ebuild improvements (ipmi and netlink plugins build solved + logrotate configuration)
Summary: app-admin/collectd-4.10.1-r2 ebuild improvements (ipmi and netlink plugins bu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on: 338499
Blocks:
  Show dependency tree
 
Reported: 2010-10-27 19:22 UTC by daniel.deptula
Modified: 2010-10-31 21:22 UTC (History)
0 users

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


Attachments
Ebuild patch (collectd-4.10.1-r2.ebuild.patch,3.08 KB, patch)
2010-10-27 19:23 UTC, daniel.deptula
Details | Diff
This file should be put in the "files" subdirectory in portage tree (collectd-pthread.pc,167 bytes, text/plain)
2010-10-27 19:24 UTC, daniel.deptula
Details
This file should be put in the "files" subdirectory in portage tree (logrotate,306 bytes, text/plain)
2010-10-27 19:24 UTC, daniel.deptula
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daniel.deptula 2010-10-27 19:22:11 UTC
I found a way to build Netlink and IPMI plugins (at the moment marked untested / unbuildable) - a patch for the ebuild file will be attached to this bug report.

IPMI plugin needs pthread which can't be found by pkg-config during the econf process. The solution is to tell pkg-config about the path to a pthread.pc file (in PKG_CONFIG_PATH variable). I'm attaching a sample collectd-pthread.pc file which works for me.

Netlink plugin didn't build because iproute2 didn't install libnetlink.h and libnetlink.a files - I described it in #314967 bug. iproute2-2.6.34 fixes this problem, so adding a dependency is enough.

The last change adds a /etc/logrotate.d/collectd config file for collectd logs, because unrotated, those logs can grow up to size of gigabytes during couple of weeks. A sample logrotate config file will be also attached.

collectd-4.10.1-r2 ebuild patched with this patch builds successfully with IPMI and Netlink plugins on my 32bit and 64bit systems. And plugins work properly.
Comment 1 daniel.deptula 2010-10-27 19:23:18 UTC
Created attachment 252289 [details, diff]
Ebuild patch
Comment 2 daniel.deptula 2010-10-27 19:24:22 UTC
Created attachment 252291 [details]
This file should be put in the "files" subdirectory in portage tree
Comment 3 daniel.deptula 2010-10-27 19:24:46 UTC
Created attachment 252293 [details]
This file should be put in the "files" subdirectory in portage tree
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-10-29 19:22:44 UTC
I'll add the logrotate file and (after testing) activate the netlink plugin. 

The ipmi issue has to be fixed in OpenIPMI though, see bug 338499.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2010-10-31 21:22:03 UTC
All included in -r3. Thanks for the help!