Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510286 - sys-cluster/ganglia - add systemd unit file
Summary: sys-cluster/ganglia - add systemd unit file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Bronder (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-05-14 07:43 UTC by aleiphoenix
Modified: 2015-08-05 13:06 UTC (History)
2 users (show)

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


Attachments
systemd patch for ganglia-3.5.0.ebuild (ganglia-3.5.0.ebuild.systemd.patch,1.21 KB, patch)
2014-05-14 07:45 UTC, aleiphoenix
Details | Diff
systemd unit file for gmond (gmond.service,159 bytes, text/plain)
2014-05-14 07:46 UTC, aleiphoenix
Details
systemd unit file for gmetad (gmetad.service,192 bytes, text/plain)
2014-05-14 07:46 UTC, aleiphoenix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aleiphoenix 2014-05-14 07:43:45 UTC
add systemd unit file for sys-cluster/ganglia-3.5.0, above version should be similar.

Reproducible: Always
Comment 1 aleiphoenix 2014-05-14 07:45:40 UTC
Created attachment 376884 [details, diff]
systemd patch for ganglia-3.5.0.ebuild
Comment 2 aleiphoenix 2014-05-14 07:46:27 UTC
Created attachment 376886 [details]
systemd unit file for gmond
Comment 3 aleiphoenix 2014-05-14 07:46:54 UTC
Created attachment 376888 [details]
systemd unit file for gmetad
Comment 4 Justin Bronder (RETIRED) gentoo-dev 2014-05-14 21:18:31 UTC
@systemd:  If the unit files work for you and you'll be supporting them, feel free to add them to ganglia.  I'm be right here yelling at kids to get off my openrc lawn.
Comment 5 Pacho Ramos gentoo-dev 2014-07-08 16:06:27 UTC
Looks like upstream added them but they fail to build:
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-1    -I../lib -I../gmond -I../include -D_LARGEFILE64_SOURCE -O2 -pipe -march=native -fno-strict-aliasing -Wall -D_REENTRANT -MT cleanup.o -MD -MP -MF .deps/cleanup.Tpo -c -o cleanup.o cleanup.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-1    -I../lib -I../gmond -I../include -D_LARGEFILE64_SOURCE -O2 -pipe -march=native -fno-strict-aliasing -Wall -D_REENTRANT -MT daemon_init.o -MD -MP -MF .deps/daemon_init.Tpo -c -o daemon_init.o daemon_init.c
make[2]: *** No rule to make target `gmetad.service.in', needed by `gmetad.service'.  Stop.
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/xml_hash.Tpo .deps/xml_hash.Po
mv -f .deps/daemon_init.Tpo .deps/daemon_init.Po
mv -f .deps/cleanup.Tpo .deps/cleanup.Po
make[2]: Leaving directory `/var/tmp/portage/sys-cluster/ganglia-3.6.0/work/ganglia-3.6.0/gmetad'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-cluster/ganglia-3.6.0/work/ganglia-3.6.0'
make: *** [all] Error 2

I would report it to upstream to let them fix their building

After that, you would only need to inherit systemd eclass and use --with-systemdsystemunitdir=$(systemd_get_unitdir) in configure
Comment 6 Justin Bronder (RETIRED) gentoo-dev 2015-08-05 13:05:48 UTC
+*ganglia-3.7.1 (05 Aug 2015)
+
+  05 Aug 2015; Justin Bronder <jsbronder@gentoo.org> +ganglia-3.7.1.ebuild:
+  bump, resolves #510286 (add systemd unit) and #435784 (calling gcc/ar/ranlib
+  directly)