I have a gateway with Gentoo 1.4_rc2 installed. I also run it on my main machine behind the gateway. The internal machine has X/Gnome/gtk installed, the gateway does not. I like to use gkrellm to monitor both boxes, running gkrellm on the internal machine and using gkrellmd on the gateway. Emerging gkrellm-2.1.5.ebuild worked perfectly on both boxes, installing everything on my main machine and only gkrellmd on the gateway. gkrellm-2.1.7a.ebuild fails to build on the gateway, works fine on my main box. Reproducible: Always Steps to Reproduce: 1.USE=-gtk emerge gkrellm 2. 3. Actual Results: the build runs fine up to this point: make[1]: Leaving directory `/var/tmp/portage/gkrellm-2.1.7a/work/gkrellm-2.1.7a/po' (cd src && make install) make[1]: Entering directory `/var/tmp/portage/gkrellm-2.1.7a/work/gkrellm-2.1.7a/src' install -c -s -m 755 gkrellm /var/tmp/portage/gkrellm-2.1.7a/image//usr/bin/gkrellm install: cannot stat `gkrellm': No such file or directory make[1]: *** [install] Error 1 make[1]: Leaving directory `/var/tmp/portage/gkrellm-2.1.7a/work/gkrellm-2.1.7a/src' make: *** [install] Error 2 !!! ERROR: app-admin/gkrellm-2.1.7a failed. !!! Function src_install, Line 43, Exitcode 2 !!! (no error message) Expected Results: It should not attempt to build/install gkrellm on a system without gtk. In that case, it should just install gkrellmd. Proposed patch attached. Not real familiar with the ebuild format (yet) and haven't done many patches, so there may be a more elegant solution, but this one worked for me. It installs only gkrellmd on the gateway (no gtk) and everything on the main box (with gtk).
Created attachment 8515 [details, diff] Patch to make gkrellm-2.1.7a.ebuild only install gkrellmd on machines without gtk
Created attachment 8565 [details, diff] alternate patch I was already working along the same lines, so here's an alternate patch. Take your pick.
mm.. i have exactly the same requirements (gkrellmd on a gtk-less server) and the same problem. using gentoo stable of course. FYI
fixed in portage.