Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16051 - ebuild for gkrellm-2.1.7a fails when built on machine not using X/gtk. Want just gkrellmd. Worked with previous ebuild gkrellm-2.1.5.
Summary: ebuild for gkrellm-2.1.7a fails when built on machine not using X/gtk. Want j...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-20 00:17 UTC by Richard M. Ferko
Modified: 2003-02-23 17:33 UTC (History)
1 user (show)

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


Attachments
Patch to make gkrellm-2.1.7a.ebuild only install gkrellmd on machines without gtk (gkrellm-2.1.7a.ebuild.patch,2.01 KB, patch)
2003-02-20 00:20 UTC, Richard M. Ferko
Details | Diff
alternate patch (gkrellm.ebuild.diff,1.05 KB, patch)
2003-02-20 20:06 UTC, Andy Dustman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard M. Ferko 2003-02-20 00:17:35 UTC
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).
Comment 1 Richard M. Ferko 2003-02-20 00:20:05 UTC
Created attachment 8515 [details, diff]
Patch to make gkrellm-2.1.7a.ebuild only install gkrellmd on machines without gtk
Comment 2 Andy Dustman 2003-02-20 20:06:59 UTC
Created attachment 8565 [details, diff]
alternate patch

I was already working along the same lines, so here's an alternate patch. Take
your pick.
Comment 3 Thomas Capricelli 2003-02-21 13:10:22 UTC
mm.. i have exactly the same requirements (gkrellmd on a gtk-less server) and the 
same problem. 
using gentoo stable of course. 
FYI 
 
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-23 17:33:02 UTC
fixed in portage.