Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107076 - app-admin/collectd (new ebuild)
Summary: app-admin/collectd (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 2 votes (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords: InVCS
: 107052 116217 186124 (view as bug list)
Depends on:
Blocks: 241756
  Show dependency tree
 
Reported: 2005-09-24 04:32 UTC by Tommie
Modified: 2010-10-10 18:20 UTC (History)
19 users (show)

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


Attachments
collectd-2.1.0.ebuild (collectd-2.1.0.ebuild,838 bytes, text/plain)
2005-09-24 04:32 UTC, Tommie
Details
collectd-2.1.0.confd - configure file for /etc/conf.d (collectd-2.1.0.confd,303 bytes, text/plain)
2005-09-24 04:33 UTC, Tommie
Details
collectd-2.1.0.initd - startup script for /etc/init.d (collectd-2.1.0.initd,451 bytes, text/plain)
2005-09-24 04:33 UTC, Tommie
Details
pidfile-2.1.0.patch - creates a pidfile (pidfile-2.1.0.patch,995 bytes, patch)
2005-09-24 04:35 UTC, Tommie
Details | Diff
collectd-2.1.0.ebuild - implemented sensors patch (collectd-2.1.0.ebuild,878 bytes, text/plain)
2005-09-24 10:54 UTC, Tommie
Details
sensors-2.1.0.patch - a patch to avoid filename collisions (sensors-2.1.0.patch,1.09 KB, patch)
2005-09-24 10:56 UTC, Tommie
Details | Diff
collectd-3.0.0.confd (collectd-3.0.0.confd,303 bytes, text/plain)
2005-10-14 08:26 UTC, Jordan Clark
Details
collectd-3.0.0.initd (collectd-3.0.0.initd,449 bytes, text/plain)
2005-10-14 08:27 UTC, Jordan Clark
Details
collectd-3.0.0.ebuild (collectd-3.0.0.ebuild,811 bytes, text/plain)
2005-10-14 08:30 UTC, Jordan Clark
Details
collectd-3.1.0.ebuild (collectd-3.1.0.ebuild,966 bytes, text/plain)
2005-10-19 15:57 UTC, Jordan Clark
Details
collectd-3.1.0.confd (collectd-3.1.0.confd,303 bytes, text/plain)
2005-10-19 15:58 UTC, Jordan Clark
Details
collectd-3.1.0.initd (collectd-3.1.0.initd,449 bytes, text/plain)
2005-10-19 15:58 UTC, Jordan Clark
Details
pidfile-3.1.0.patch - a patch for a pidfile (pidfile-3.1.0.patch,1.20 KB, patch)
2005-10-19 15:59 UTC, Jordan Clark
Details | Diff
highres-3.1.0.patch - a patch for higher resolution RRDs (highres-3.1.0.patch,682 bytes, patch)
2005-10-19 15:59 UTC, Jordan Clark
Details | Diff
fixed pidfile-3.1.0.patch (pidfile-3.1.0.patch,1.19 KB, patch)
2005-10-23 05:18 UTC, George Kargiotakis
Details | Diff
new collectd ebuild (collectd-3.3.0.ebuild,1.53 KB, patch)
2005-11-13 15:25 UTC, Frido Ferdinand
Details | Diff
collectd-3.3.0.initd (collectd-3.3.0.initd,523 bytes, text/plain)
2005-11-13 15:33 UTC, Frido Ferdinand
Details
pidfile-3.5.0.patch (pidfile-3.5.0.patch,548 bytes, patch)
2005-12-18 01:22 UTC, Tommie
Details | Diff
sigterm-3.5.0.patch (sigterm-3.5.0.patch,461 bytes, patch)
2005-12-18 01:23 UTC, Tommie
Details | Diff
collectd-3.5.0.initd (collectd-3.5.0.initd,510 bytes, text/plain)
2005-12-18 01:25 UTC, Tommie
Details
collectd-3.5.0.ebuild (collectd-3.5.0.ebuild,1.57 KB, text/plain)
2005-12-18 01:29 UTC, Tommie
Details
collectd-3.5.0.initd (collectd-3.5.0.initd,510 bytes, text/plain)
2005-12-18 01:35 UTC, Tommie
Details
collectd-3.5.0.init.d file allowing client & server (collectd-3.5.0.initd,1.48 KB, text/plain)
2005-12-19 09:30 UTC, Jordan Clark
Details
collectd-3.5.0.confd file allowing client & server (collectd-3.5.0.confd,428 bytes, text/plain)
2005-12-19 09:31 UTC, Jordan Clark
Details
collectd-3.7.0.ebuild (collectd-3.7.0.ebuild,1.94 KB, text/plain)
2006-01-31 07:16 UTC, Tommie
Details
collectd-3.7.0.conf (collectd-3.7.0.conf,658 bytes, text/plain)
2006-01-31 07:17 UTC, Tommie
Details
collectd-3.7.0.confd (collectd-3.7.0.confd,577 bytes, text/plain)
2006-01-31 07:17 UTC, Tommie
Details
collectd-3.7.0.initd (collectd-3.7.0.initd,1.09 KB, text/plain)
2006-01-31 07:19 UTC, Tommie
Details
ping-seq-3.7.0.patch (ping-seq-3.7.0.patch,613 bytes, patch)
2006-01-31 07:20 UTC, Tommie
Details | Diff
collectd-3.7.1.ebuild (collectd-3.7.1.ebuild,1.91 KB, text/plain)
2006-02-06 04:19 UTC, Artur Frysiak
Details
collectd-3.11.2.ebuild (collectd-3.11.2.ebuild,883 bytes, text/plain)
2007-02-23 20:00 UTC, Adrian Perez
Details
collectd.confd (collectd.confd,529 bytes, text/plain)
2007-02-23 20:01 UTC, Adrian Perez
Details
collectd.initd (collectd.initd,655 bytes, text/plain)
2007-02-23 20:04 UTC, Adrian Perez
Details
collectd-4.0.4.ebuild (collectd-4.0.4.ebuild,1.74 KB, text/plain)
2007-07-03 09:40 UTC, Adrian Perez
Details
collectd-4.0.4.ebuild (collectd-4.0.4.ebuild,1.73 KB, text/plain)
2007-07-03 10:00 UTC, Adrian Perez
Details
collectd-4.3.1.ebuild (collectd-4.3.1.ebuild,8.60 KB, text/plain)
2008-03-22 07:39 UTC, Boian Berberov
Details
files/collectd-4.3.2.confd (collectd-4.3.2.confd,519 bytes, text/plain)
2008-03-22 07:43 UTC, Boian Berberov
Details
files/collectd-4.3.2.initd (collectd-4.3.2.initd,801 bytes, text/plain)
2008-03-22 07:44 UTC, Boian Berberov
Details
collectd-4.3.2.ebuild (collectd-4.3.2.ebuild,9.01 KB, text/plain)
2008-04-03 20:01 UTC, Boian Berberov
Details
collectd-4.3.3.ebuild (collectd-4.3.3.ebuild,8.47 KB, text/plain)
2008-04-24 05:58 UTC, Boian Berberov
Details
files/collectd-4.4.2-ipvs.patch (collectd-4.4.2-ipvs.patch,1.60 KB, patch)
2008-08-08 07:49 UTC, Boian Berberov
Details | Diff
files/collectd-4.4.2-libtool-compatibility.patch (collectd-4.4.2-libtool-compatibility.patch,539 bytes, patch)
2008-08-08 07:50 UTC, Boian Berberov
Details | Diff
files/collectd-4.4.2-localstatedir.patch (collectd-4.4.2-localstatedir.patch,326 bytes, patch)
2008-08-08 07:51 UTC, Boian Berberov
Details | Diff
collectd-4.4.2.ebuild (collectd-4.4.2.ebuild,5.75 KB, text/plain)
2008-08-08 07:55 UTC, Boian Berberov
Details
collectd-4.4.2.ebuild (collectd-4.4.2.ebuild,5.76 KB, text/plain)
2008-08-09 18:01 UTC, Boian Berberov
Details
app-admin/collectd-4.9.1 ebuild (collectd-4.9.1.ebuild,10.00 KB, text/plain)
2010-01-23 13:48 UTC, Andreas K. Hüttel
Details
Fixed perllocal.pod problem (collectd-4.9.1-r1.ebuild,10.02 KB, text/plain)
2010-01-25 14:40 UTC, Andreas K. Hüttel
Details
build log of app-admin/collectd-4.10.1 (build.log,43.33 KB, text/plain)
2010-08-02 06:33 UTC, n3ph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tommie 2005-09-24 04:32:31 UTC
Hi!

collectd is an RRD collector daemon for CPU, memory, network load, etc.

It is a compiled program to use little resources.

Suggested category is app-admin, since all other monitoring applications is
located there.
Comment 1 Tommie 2005-09-24 04:32:57 UTC
Created attachment 69154 [details]
collectd-2.1.0.ebuild
Comment 2 Tommie 2005-09-24 04:33:27 UTC
Created attachment 69155 [details]
collectd-2.1.0.confd - configure file for /etc/conf.d
Comment 3 Tommie 2005-09-24 04:33:45 UTC
Created attachment 69156 [details]
collectd-2.1.0.initd - startup script for /etc/init.d
Comment 4 Tommie 2005-09-24 04:35:08 UTC
Created attachment 69157 [details, diff]
pidfile-2.1.0.patch - creates a pidfile

collectord doesn't originally create a pidfile. It forks, though, so it needs a
patch to do it in the child.
Comment 5 Tommie 2005-09-24 10:54:36 UTC
Created attachment 69171 [details]
collectd-2.1.0.ebuild - implemented sensors patch
Comment 6 Tommie 2005-09-24 10:56:21 UTC
Created attachment 69172 [details, diff]
sensors-2.1.0.patch - a patch to avoid filename collisions

The RRD files for lm_sensors only use the feature name in the filename, not
chip ID. To make things a little better, I add the chip name. Of course, the
best solution would be to add bus/address, but it will have to wait until
needed by someone.
Comment 7 Ciaran McCreesh 2005-09-28 16:24:26 UTC
*** Bug 107052 has been marked as a duplicate of this bug. ***
Comment 8 Jordan Clark 2005-10-14 08:26:34 UTC
Created attachment 70664 [details]
collectd-3.0.0.confd
Comment 9 Jordan Clark 2005-10-14 08:27:32 UTC
Created attachment 70665 [details]
collectd-3.0.0.initd
Comment 10 Jordan Clark 2005-10-14 08:30:10 UTC
Created attachment 70667 [details]
collectd-3.0.0.ebuild

Here is an ebuild for the new version.	It should not need the sensors patch
anymore but it still needs a pidfile patch.
Comment 11 Jordan Clark 2005-10-19 15:57:27 UTC
Created attachment 71047 [details]
collectd-3.1.0.ebuild

Here is an ebuild for version 3.1.0 with support for HD Temps using hddtemp, a
patch for the PID file, and another patch that I use because I would like to
have higher resolution RRD files.

If you use the highres patch and you are upgrading you will have to let
collectd recreate the RRDs then if needed figure out a way to import your old
data..	I currently don't know of a way to import the old data into the new
RRDs.
Comment 12 Jordan Clark 2005-10-19 15:58:09 UTC
Created attachment 71048 [details]
collectd-3.1.0.confd
Comment 13 Jordan Clark 2005-10-19 15:58:34 UTC
Created attachment 71049 [details]
collectd-3.1.0.initd
Comment 14 Jordan Clark 2005-10-19 15:59:03 UTC
Created attachment 71050 [details, diff]
pidfile-3.1.0.patch - a patch for a pidfile
Comment 15 Jordan Clark 2005-10-19 15:59:25 UTC
Created attachment 71051 [details, diff]
highres-3.1.0.patch - a patch for higher resolution RRDs
Comment 16 George Kargiotakis 2005-10-23 05:18:11 UTC
Created attachment 71274 [details, diff]
fixed pidfile-3.1.0.patch

previous pidfile-3.1.0.patch did not work properly. Patch failed on emerge.
This one is tested and works.
Comment 17 Jordan Clark 2005-10-25 07:20:42 UTC
(In reply to comment #16)
> Created an attachment (id=71274) [edit]
> fixed pidfile-3.1.0.patch
> 
> previous pidfile-3.1.0.patch did not work properly. Patch failed on emerge.
> This one is tested and works.

thanks for trying the patch, but do you mind letting me know what was wrong with
the first patch?  I am relitivly new at creating patches but from what I could
tell the only differences in the two patches is whether it creates the PID file
before or after it loads the plugins when collectd is starting in client mode. 
Other then that the only differences are formating.  As far as I can tell it
shouldn't make a difference.  Also I have used the first patch without a problem
on 4 different machines.

Thanks for any help,
Jordan
Comment 18 Frido Ferdinand 2005-11-13 15:24:38 UTC
Hi,

Made an ebuild for collectd 3.3.0, uses the fixed pidfile patch, and changes src_compile and dodoc stuff, 
also adds useflag statgrab.

Strange things:

* needs cd ${S} in src_unpack
* init file doesn't generate the familar [ok] messages but work nonetheless

Comment 19 Frido Ferdinand 2005-11-13 15:25:30 UTC
Created attachment 72852 [details, diff]
new collectd ebuild
Comment 20 Frido Ferdinand 2005-11-13 15:33:22 UTC
Created attachment 72853 [details]
collectd-3.3.0.initd

added ebegin/eend
Comment 21 Frido Ferdinand 2005-11-13 15:34:09 UTC
Added new initd with ebegin/eend
Comment 22 Frido Ferdinand 2005-11-14 05:21:06 UTC
pid file patch has been applied upstream, will be in the next version
Comment 23 Tommie 2005-12-18 01:22:24 UTC
Created attachment 74995 [details, diff]
pidfile-3.5.0.patch

Support for a PID-file is included in the package since 3.4.0, but it has a bug when removing the PID file. Bug report sent to mailing list.
Comment 24 Tommie 2005-12-18 01:23:30 UTC
Created attachment 74996 [details, diff]
sigterm-3.5.0.patch

Graceful termination only occurs with SIGINT. This isn't the standard way, so adding a single line allows us to skip the extra argument to start-stop-daemon. Bug report sent to mailing list.
Comment 25 Tommie 2005-12-18 01:25:25 UTC
Created attachment 74997 [details]
collectd-3.5.0.initd

Removed signal description from stop. See sigterm patch.
Comment 26 Tommie 2005-12-18 01:29:08 UTC
Created attachment 74998 [details]
collectd-3.5.0.ebuild

New ebuild for 3.5.0 (released 2005-12-16).

Mostly bugfixes since 3.4.0.

Marking old 2.1.0 files obsolete. Bugfixes for the sigterm and pidfile patches has been posted, hopefully making them obsolete for 3.6.0.

Files used by 3.5.0:

 * ebuild
 * pidfile/sigterm/highres patches
 * confd
 * initd
Comment 27 Tommie 2005-12-18 01:35:56 UTC
Created attachment 74999 [details]
collectd-3.5.0.initd

Hmpf. Database storage option changed from -d to -D.
Comment 28 Jordan Clark 2005-12-19 09:30:27 UTC
Created attachment 75109 [details]
collectd-3.5.0.init.d file allowing client & server

here is the init.d file that I use so that I can get both client and server usage out of collecd.  The only problem is that the PID file path is compiled into the binary.  So it is always set to /var/run/collectd.pid, that has a problem when you are running both client and server on the same box.

But anyway this init.d file currently gets the job done for me.
Comment 29 Jordan Clark 2005-12-19 09:31:50 UTC
Created attachment 75110 [details]
collectd-3.5.0.confd file allowing client & server

this is the confd file to work with my init.d file
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2005-12-20 21:49:33 UTC
*** Bug 116217 has been marked as a duplicate of this bug. ***
Comment 31 Tommie 2006-01-31 07:16:29 UTC
Created attachment 78563 [details]
collectd-3.7.0.ebuild
Comment 32 Tommie 2006-01-31 07:17:15 UTC
Created attachment 78564 [details]
collectd-3.7.0.conf

Now they use a configuration file in /etc
Comment 33 Tommie 2006-01-31 07:17:46 UTC
Created attachment 78565 [details]
collectd-3.7.0.confd

Heavily modified conf.d because of the new configuration file.
Comment 34 Tommie 2006-01-31 07:19:25 UTC
Created attachment 78566 [details]
collectd-3.7.0.initd

I've tried to make it useful for people running it in network mode... Pidfile location in the configuration makes it harder.

Anyway, depending on your taste, you may want to merge this file with 74999, collectd-3.5.0.initd.
Comment 35 Tommie 2006-01-31 07:20:24 UTC
Created attachment 78567 [details, diff]
ping-seq-3.7.0.patch

A small patch to the libping library. It sets the ICMP Sequence field to something useful. Some of the servers I tried to ping wouldn't respond if the Sequence field was zero.
Comment 36 Tommie 2006-01-31 07:23:13 UTC
3.7.0 is out. This is the first ebuild since the introduction of a configuration file at /etc/collectd.conf. The pid file location has been moved out of conf.d since the command line parameter has been removed. To support both servers and clients, you will have to specify to different configuration files for each. The default for the server is /etc/collectd-server.conf (Set in init.d)

Files used in collectd-3.7.0.ebuild:

 * collectd-3.7.0.conf
 * collectd-3.7.0.confd
 * collectd-3.7.0.initd
 * ping-seq-3.7.0.patch
 * highres-3.1.0.patch
Comment 37 Artur Frysiak 2006-02-06 04:19:55 UTC
Created attachment 79018 [details]
collectd-3.7.1.ebuild
Comment 38 Carsten Lohrke (RETIRED) gentoo-dev 2006-02-12 13:32:17 UTC
- please use $(use_with lm_sensors lm-sensors) $(use_with mysql) etc.
- Is calling ./configure instead econf really necessary? If so, your base is ${ROOT}, not /
Comment 39 Adrian Perez 2007-02-23 20:00:54 UTC
Created attachment 111075 [details]
collectd-3.11.2.ebuild
Comment 40 Adrian Perez 2007-02-23 20:01:19 UTC
Created attachment 111077 [details]
collectd.confd
Comment 41 Adrian Perez 2007-02-23 20:04:37 UTC
Created attachment 111079 [details]
collectd.initd

I added the ebuild, initscript and conf file I am using for the latest collectd release. Maybe not perfect, but uses $(use_with ...) and $(use_enable) as suggested. Use the files as inspiration, if you like them ;-)
Comment 42 Wolfgang Frisch 2007-06-28 00:45:06 UTC
Added an ebuild for collectd-4.0.4 to the Gentoo Sunrise overlay (http://overlays.gentoo.org/proj/sunrise).
I've used Adrian Perez' init.d-script for that.
Comment 43 Adrian Perez 2007-07-03 09:40:14 UTC
Created attachment 123746 [details]
collectd-4.0.4.ebuild

This revision of the 4.0.4 ebuild has some more USE flags and builds properly on amd64. The libiptc library which caused me some linkage problems (combining PIC with non-PIC code) is not needed in Linux for iptables support, so passing --with-libiptc is fine when kernel_linux is in use.
Comment 44 Adrian Perez 2007-07-03 10:00:45 UTC
Created attachment 123749 [details]
collectd-4.0.4.ebuild

Somewhat improved 4.0.4 ebuild, with "kernel_linux" in USE and removed unused "inherit".
Comment 45 Jakub Moc (RETIRED) gentoo-dev 2007-07-21 17:18:41 UTC
*** Bug 186124 has been marked as a duplicate of this bug. ***
Comment 46 Andi Lõhmus 2007-09-05 16:03:29 UTC
--enable-getifaddrs, which is enabled with kernel_linux, breaks the interface plugin on all my amd64 boxes. 
It is also disabled by default upstream because of "problems with `getifaddrs' and varying versions of `glibc'" (from src/interface.c)
Comment 47 Boian Berberov 2008-03-22 07:39:01 UTC
Created attachment 146843 [details]
collectd-4.3.1.ebuild

New ebuild for collectd.  This is my first ebuild and it is still a work in progress.
Comment 48 Boian Berberov 2008-03-22 07:43:28 UTC
Created attachment 146845 [details]
files/collectd-4.3.2.confd

Additional files
Comment 49 Boian Berberov 2008-03-22 07:44:29 UTC
Created attachment 146846 [details]
files/collectd-4.3.2.initd

Additional files
Comment 50 Boian Berberov 2008-04-03 20:01:07 UTC
Created attachment 148498 [details]
collectd-4.3.2.ebuild

Version Bump, changed some warnings

I would suggest that this be placed in net-analyzer instead of app-admin.
Comment 51 Boian Berberov 2008-04-24 05:58:05 UTC
Created attachment 150796 [details]
collectd-4.3.3.ebuild

Version Bump
- ebuild was cleaned up and now uses eautoreconf
- reuses the files from 4.3.2
Comment 52 Daniel Glaser 2008-08-07 17:52:16 UTC
collectd-4.3.3

There should be some check in the very beginning of the ebuild, if .confd and .initd are available, not when everthing is already compiled.
Comment 53 Boian Berberov 2008-08-07 18:16:38 UTC
Daniel,

I do not understand what you mean.  What kind of check?  Is there an example ebuild that has the feature you are looking for that I can look at?  I am working on 4.4.2 right now.
Comment 54 Boian Berberov 2008-08-08 07:49:30 UTC
Created attachment 162497 [details, diff]
files/collectd-4.4.2-ipvs.patch
Comment 55 Boian Berberov 2008-08-08 07:50:28 UTC
Created attachment 162499 [details, diff]
files/collectd-4.4.2-libtool-compatibility.patch
Comment 56 Boian Berberov 2008-08-08 07:51:11 UTC
Created attachment 162500 [details, diff]
files/collectd-4.4.2-localstatedir.patch
Comment 57 Boian Berberov 2008-08-08 07:55:32 UTC
Created attachment 162502 [details]
collectd-4.4.2.ebuild

Version bump
- libtool compatibility patch, now depends on libtool
- ipvs patch
- removed ~x86 keyword ( someone needs to confirm that it works )
- removed some checks
- USE flag restructuring
- dependency changes

Possible improvements
- Gentoo/BSD support
- Gentoo/Embedded support
- Gentoo/Prefix support
- Mac (Apple) support, apple-sensors plug-in
- netlink plug-in

Needs testing
Comment 58 Daniel Glaser 2008-08-08 08:11:55 UTC
Boian,

> I do not understand what you mean.  What kind of check?  Is there an example
> ebuild that has the feature you are looking for that I can look at?  I am
> working on 4.4.2 right now.

Just check, if the files collectd-x.y.z.initd and collectd-x.y.z.confd are in the files directory below the ebuild directory. At the end of the ebuild, it tries to copy them to /etc/init.d/collectd and /etc/conf.d/collectd. Since they must be downloaded seperately and are used from the previous version of the ebuild, there is a high chance to forget it and after compiling, it cannot copy them to the mentioned places.

There is no example, but at the very beginning of the ebuild, do a simple check:
[[ -e files/${PN}-4.3.2.confd ]] && [[ -e files/${PN}-4.3.2.initd ]] || die "Files ... do not exist"

I will try this evening, if it is still happening in 4.4.2.

Comment 59 Boian Berberov 2008-08-08 08:34:45 UTC
Daniel,

It will happen with 4.4.2.  The check you propose is a valid suggestion.  However, I have not seen anything similar in any other ebuild and I would be reluctant to include it.  Unfortunately Bugzilla is not an overlay, where all these files will be included normally.  If someone with a @gentoo dot org email says it is OK, I will make a 4.4.2-r1 ebuild and include it.

In general, download all files.  I will obsolete any that will not be needed with the latest version.
Comment 60 Daniel Glaser 2008-08-08 09:45:27 UTC
Boian,

> However, I have not seen anything similar in any other ebuild and I would be
> reluctant to include it.

Althought it is not totally the same, ebuilds that have fetch restriction (e.g. sun-jdk) do some kind of check before and mention the url where to get it.
But you are right, Bugzilla-ebuilds are a bit different, because in an overlay the files would be included automatically.

I hope this ebuild will be included soon, since it is on Bugzilla for 3 years now and some other distros (e.g. ubuntu) have this in for a long time now.
Comment 61 Daniel Glaser 2008-08-08 17:59:31 UTC
Why is only ~amd64 keyword included and not ~x86?
Comment 62 Boian Berberov 2008-08-09 03:15:22 UTC
RE: comment 61

I did not compile it on x86, therefore I did not keyword it.  Comment 57 says that someone needs to confirm that it works.  I think it is improper to keyword the ebuild when I have not even tried to compile with a particular arch. (previous ebuilds were wrong) Just trying to follow what I think is proper procedure.  Having said that, it should work.
Comment 63 Daniel Glaser 2008-08-09 10:46:57 UTC
Boian,

now you can include ~x86. It works here fine.
Comment 64 Boian Berberov 2008-08-09 18:01:05 UTC
Created attachment 162586 [details]
collectd-4.4.2.ebuild

- keyworded ~x86
Hopefully I will have my machine working and I can test myself next time.
Comment 65 Priit Laes (IRC: plaes) 2008-09-03 06:04:02 UTC
Could you also add acpi USE flag to silence this warning:

ACPI_BATTERY needs to be enabled in your kernel for the battery plug-in to work correctly

 ;)
Comment 66 Boian Berberov 2008-09-03 10:40:34 UTC
Sure.  I will do that next time I update the ebuild.  For that particular warning, I may use laptop as the USE flag to check in addition to acpi.  Thanks for the suggestion.
Comment 67 Boian Berberov 2008-10-01 17:29:07 UTC
A collectd-4.5.0.ebuild is posted here:

http://bazaar.launchpad.net/%7Ebberberov/%2Bjunk/dev-overlay/files/2?file_id=collectd-20081001162032-mij414teo0yk8yb0-16

I added both an acpi and a battery USE flag among other things.
Comment 68 Nathan McSween 2008-11-10 04:38:00 UTC
I would just like to state that the network use flag will not work with collectd as it spits out /lib64/libiptc.a: relocation R_X86_64_32S blah -fPIC.. compiling collectd and or iptables with -fPIC does nothing.

Comment 69 Nathan McSween 2008-11-10 04:56:22 UTC
(In reply to comment #68)
> I would just like to state that the network use flag will not work with
> collectd as it spits out /lib64/libiptc.a: relocation R_X86_64_32S blah -fPIC..
> compiling collectd and or iptables with -fPIC does nothing.
> 
Spoke to soon compiling iptables and collectd works. As upstream never meant libiptc to be standalone / interfaced its a bug in collectd.
Comment 70 Nathan McSween 2008-11-26 04:01:46 UTC
The ebuild needs a minimal configuration as emerging this in a chroot or openvz container pulls in many unessential packages.
Comment 71 Boian Berberov 2009-01-19 20:10:19 UTC
An ebuild for 4.5.2 is available here:

http://bazaar.launchpad.net/%7Ebberberov/%2Bjunk/dev-overlay/files/head%3A/net-analyzer/collectd/

- USE_EXPAND for plug-in selection
- EAPI 2
- Dependency changes

It needs more work since there have been quite a few changes.


Nathan,

I thought about adding a minimal (or another) USE flag, but I was not sure what I should change.  Give me an example of what you want.
Comment 72 Elias Probst 2009-03-03 22:30:17 UTC
This ebuild causes a collision with several other packages.

See bug#241756 (which I've added as blocker now) for more information.
Comment 73 Andreas K. Hüttel archtester gentoo-dev 2010-01-08 20:32:16 UTC
FYI, the ebuild in sunrise has been updated to collectd-4.9.0 (based on the work of Boian Berberov). Will be available soon...
Comment 74 Andreas K. Hüttel archtester gentoo-dev 2010-01-23 13:48:02 UTC
Created attachment 217235 [details]
app-admin/collectd-4.9.1 ebuild
Comment 75 Enchant 2010-01-25 08:52:11 UTC
Need collectd.initd file and other files in ${FILESDIR}.
Comment 76 Andreas K. Hüttel archtester gentoo-dev 2010-01-25 09:19:28 UTC
(In reply to comment #75)
> Need collectd.initd file and other files in ${FILESDIR}.
> 

http://overlays.gentoo.org/proj/sunrise/browser/reviewed/app-admin/collectd

collectd-4.9.1 is already committed and will be in the overlay soon.
Comment 77 Enchant 2010-01-25 09:42:31 UTC
I tried to install ebuild app-admin/collectd-4.9.1 (all USE off) and got collisions with nginx:

 * Detected file collision(s):                                           
 *                                                                       
 *      /usr/lib/perl5/5.8.8/i686-linux/perllocal.pod                    
 *                                                                       
 * Searching all installed packages for file collisions...               
 *                                                                       
 * Press Ctrl-C to Stop                                                  
 *                                                                       
 * www-servers/nginx-0.7.64                                              
 *      /usr/lib/perl5/5.8.8/i686-linux/perllocal.pod

Comment 78 Andreas K. Hüttel archtester gentoo-dev 2010-01-25 11:23:32 UTC
>  * Detected file collision(s):                                           
>  *                                                                       
>  *      /usr/lib/perl5/5.8.8/i686-linux/perllocal.pod                    
>  *                                                                       

Hmm. Something's wrong here... give me a few days...
Comment 79 Andreas K. Hüttel archtester gentoo-dev 2010-01-25 14:40:27 UTC
Created attachment 217390 [details]
Fixed perllocal.pod problem

Please test, this should fix the perllocal.pod problem. 

Note that no program should install this file; this is a bug in www-servers/nginx-0.7.64 as well.
Comment 80 Enchant 2010-01-25 15:02:39 UTC
Yes, now installed correctly, thank.
Comment 81 Steffen Weber 2010-02-13 09:42:55 UTC
The collectd.init from the Sunrise overlay should "use net" because otherwise collectd's network plugin fails to open a socket:

bind: Cannot assign requested address
network plugin: network_config_add_listen: sockent_open failed.
Comment 82 Andreas K. Hüttel archtester gentoo-dev 2010-02-14 17:25:07 UTC
Is fixed in sunrise.
Comment 83 Ben 2010-06-22 07:19:56 UTC
Running on amd64, I tried the 4.9.1 from above, or 4.10.0 from sunrise, but always same issue:

 libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../src -Wall -Werror -march=core2 -O2 -pipe -c libip6tc.c  -fPIC -DPIC -o .libs/libip6tc.o
In file included from libiptc.c:47,
                 from libip4tc.c:136:
xtables.h:193:1: error: "aligned_u64" redefined
In file included from libiptc.h:23,
                 from libip4tc.c:47:
/usr/include/linux/types.h:13:1: error: this is the location of the previous definition
In file included from libiptc.c:47,
                 from libip6tc.c:131:
xtables.h:193:1: error: "aligned_u64" redefined
In file included from libip6tc.h:23,
                 from libip6tc.c:48:
/usr/include/linux/types.h:13:1: error: this is the location of the previous definition
make[3]: *** [libip4tc.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [libip6tc.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-admin/collectd-4.10.0/work/collectd-4.10.0/src/owniptc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-admin/collectd-4.10.0/work/collectd-4.10.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-admin/collectd-4.10.0/work/collectd-4.10.0/src'
make: *** [all-recursive] Error 1
 * ERROR: app-admin/collectd-4.10.0 failed:
 *   compilation failed


Any idea?

Thank you.
Comment 84 Marcin Mirosław 2010-07-14 14:04:22 UTC
On x86 i've got the same issue, on ~x86 collectd compiles cleanly.
Problem looks simillary to bug 225505 .
I test it, on box "x86" i did:
ACCEPT_KEYWORDS="~x86" emerge -1 linux-headers
and then collectd compiles cleanly.
Comment 85 Benedikt Böhm (RETIRED) gentoo-dev 2010-07-22 08:20:46 UTC
(In reply to comment #84)
> On x86 i've got the same issue, on ~x86 collectd compiles cleanly.
> Problem looks simillary to bug 225505 .
> I test it, on box "x86" i did:
> ACCEPT_KEYWORDS="~x86" emerge -1 linux-headers
> and then collectd compiles cleanly.

a fixed version can be found in the betagarden overlay
Comment 86 n3ph 2010-08-02 06:33:22 UTC
Created attachment 241023 [details]
build log of app-admin/collectd-4.10.1

use-flag +cd_perl
Comment 87 n3ph 2010-08-02 06:35:36 UTC
Hey!

i was trying to compile app-admin/collectd-4.10.1 +cd_perl for openvz-plugin.. fails cause libperl wasn't found :-S

build-log:
http://bugs.gentoo.org/attachment.cgi?id=241023


emerge --info =app-admin/collectd-4.10.1:

Portage 2.1.8.3 (hardened/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.27-openvz-kiprensky.1-r1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.27-openvz-kiprensky.1-r1-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-1.12.13
Timestamp of tree: Mon, 02 Aug 2010 01:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/webapps-experimental /var/lib/layman/betagarden"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aac acl acpi alsa bash-completion berkdb branding bzip2 cdda cddb clamav cli consolekit cracklib crypt cups cxx dri fbcondecor ffmpeg gdbm gnutls gpm gstreamer gzip hardened hddtemp iconv jack lame libsamplerate lm_sensors lzo mmx mmxext modules mp3 mp4 mpeg mplayer mudflap ncurses netjack nls nptl nptlonly ogg openmp pam pcre perl pic posix pppd python readline reflection rrdtool see2 session snmp spl sse ssl subervion sysfs syslog tcpd theora twolame unicode urandom usb vorbis x86 xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1   emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel     mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage  siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware     voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-admin/collectd-4.10.1 was built with the following:
USE="cd_contextswitch cd_cpu cd_df cd_disk cd_entropy cd_hddtemp cd_interface cd_load cd_logfile cd_memory cd_network cd_processes cd_rrdtool cd_swap cd_syslog cd_unixsock -cd_apache -cd_apcups -cd_apple_sensors -cd_ascent -cd_battery -cd_bind -cd_conntrack -cd_cpufreq -cd_csv -cd_curl -cd_curl_xml -cd_dbi -cd_dns -cd_email -cd_exec -cd_filecount -cd_fscache -cd_gmond -cd_ipmi -cd_iptables -cd_ipvs -cd_irq -cd_java -cd_libvirt -cd_madwifi -cd_match_empty_counter -cd_match_hashed -cd_match_regex -cd_match_timediff -cd_match_value -cd_mbmon -cd_memcachec -cd_memcached -cd_modbus -cd_multimeter -cd_mysql -cd_netlink -cd_nfs -cd_nginx -cd_notify_desktop -cd_notify_email -cd_ntpd -cd_nut -cd_olsrd -cd_onewire -cd_openvpn -cd_oracle -cd_perl -cd_postgresql -cd_powerdns -cd_protocols -cd_python -cd_routeros -cd_rrdcached -cd_sensors -cd_serial -cd_snmp -cd_table -cd_tail -cd_tape -cd_target_notification -cd_target_replace -cd_target_scale -cd_target_set -cd_tcpconns -cd_teamspeak2 -cd_ted -cd_thermal -cd_tokyotyrant -cd_uptime -cd_users -cd_uuid -cd_vmem -cd_vserver -cd_wireless -cd_write_http -cd_zfs_arc -contrib -debug" 


emerge -pqv =app-admin/collectd-4.10.1:

[ebuild   R   ] app-admin/collectd-4.10.1  USE="cd_contextswitch cd_cpu cd_df cd_disk cd_entropy cd_hddtemp cd_interface cd_load cd_logfile cd_memory cd_network cd_perl* cd_processes cd_rrdtool cd_swap cd_syslog cd_unixsock -cd_apache -cd_apcups -cd_apple_sensors -cd_ascent -cd_battery -cd_bind -cd_conntrack -cd_cpufreq -cd_csv -cd_curl -cd_curl_xml -cd_dbi -cd_dns -cd_email -cd_exec -cd_filecount -cd_fscache -cd_gmond -cd_ipmi -cd_iptables -cd_ipvs -cd_irq -cd_java -cd_libvirt -cd_madwifi -cd_match_empty_counter -cd_match_hashed -cd_match_regex -cd_match_timediff -cd_match_value -cd_mbmon -cd_memcachec -cd_memcached -cd_modbus -cd_multimeter -cd_mysql -cd_netlink -cd_nfs -cd_nginx -cd_notify_desktop -cd_notify_email -cd_ntpd -cd_nut -cd_olsrd -cd_onewire -cd_openvpn -cd_oracle -cd_postgresql -cd_powerdns -cd_protocols -cd_python -cd_routeros -cd_rrdcached -cd_sensors -cd_serial -cd_snmp -cd_table -cd_tail -cd_tape -cd_target_notification -cd_target_replace -cd_target_scale -cd_target_set -cd_tcpconns -cd_teamspeak2 -cd_ted -cd_thermal -cd_tokyotyrant -cd_uptime -cd_users -cd_uuid -cd_vmem -cd_vserver -cd_wireless -cd_write_http -cd_zfs_arc -contrib -debug" 

Comment 88 Andreas K. Hüttel archtester gentoo-dev 2010-08-23 20:41:32 UTC
(In reply to comment #83)
> Running on amd64, I tried the 4.9.1 from above, or 4.10.0 from sunrise, but
> always same issue:
> 
>  libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../src
> -Wall -Werror -march=core2 -O2 -pipe -c libip6tc.c  -fPIC -DPIC -o
> .libs/libip6tc.o
> In file included from libiptc.c:47,
>                  from libip4tc.c:136:
> xtables.h:193:1: error: "aligned_u64" redefined

Is fixed now in 4.10.1 (the libiptc autoconf test was b0rken, it tried to compile its own copy and failed because of a type conflict).


Comment 89 Andreas K. Hüttel archtester gentoo-dev 2010-08-23 20:51:28 UTC
> i was trying to compile app-admin/collectd-4.10.1 +cd_perl for openvz-plugin..
> fails cause libperl wasn't found :-S

Could you please doublecheck that both perl and libperl are built with use-flag ithreads ?!
Comment 90 Andreas K. Hüttel archtester gentoo-dev 2010-09-28 15:19:27 UTC
In tree now. Please test! :)

BTW, the plugin build selection uses now COLLECTD_PLUGINS in /etc/make.conf, this works the same way as e.g. VIDEO_CARDS...
Comment 91 Benedikt Böhm (RETIRED) gentoo-dev 2010-10-10 06:23:08 UTC
(In reply to comment #88)
> (In reply to comment #83)
> > Running on amd64, I tried the 4.9.1 from above, or 4.10.0 from sunrise, but
> > always same issue:
> > 
> >  libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../src
> > -Wall -Werror -march=core2 -O2 -pipe -c libip6tc.c  -fPIC -DPIC -o
> > .libs/libip6tc.o
> > In file included from libiptc.c:47,
> >                  from libip4tc.c:136:
> > xtables.h:193:1: error: "aligned_u64" redefined
> 
> Is fixed now in 4.10.1 (the libiptc autoconf test was b0rken, it tried to
> compile its own copy and failed because of a type conflict).

this does not work with linux-headers-2.6.30, but it seems to be fixed with at least 2.6.35, which has these types renamed to __aligned_u64.

probably DEPEND should be updated to require 2.6.35, or the autoconf check still needs some tweaking ...
Comment 92 Benedikt Böhm (RETIRED) gentoo-dev 2010-10-10 06:41:32 UTC
(In reply to comment #90)
> In tree now. Please test! :)

it would probably be a good idea to remove --quiet from the init-script, since collectd does not log its startup errors to syslog, so a syntax error in the config will not be displayed
Comment 93 Andreas K. Hüttel archtester gentoo-dev 2010-10-10 18:20:02 UTC
> > 
> > Is fixed now in 4.10.1 (the libiptc autoconf test was b0rken, it tried to
> > compile its own copy and failed because of a type conflict).
> 
> this does not work with linux-headers-2.6.30, but it seems to be fixed with at
> least 2.6.35, which has these types renamed to __aligned_u64.
> 

Not sure what you are trying to tell me here. The autoconf test failed because of an as-needed issue. Since it is fixed now (yes, really), we should in theory never need the bundled libiptc and therefore never hit this redefinition again. For the practical issues see bug 340109...