Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25303 - gkrellm does not build gkrellm2 binary
Summary: gkrellm does not build gkrellm2 binary
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-25 23:14 UTC by Anthony Ventimiglia
Modified: 2003-08-18 13:40 UTC (History)
0 users

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


Attachments
patch to gkrellm-2.1.14.ebuild and ChangeLog (gkrellm.diff,1.96 KB, patch)
2003-07-25 23:18 UTC, Anthony Ventimiglia
Details | Diff
patch to gkrellm-2.1.14.ebuild and ChangeLog (gkrellm.diff,1.96 KB, patch)
2003-07-25 23:19 UTC, Anthony Ventimiglia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Ventimiglia 2003-07-25 23:14:21 UTC
This seems to have happened in the past, and none of the past bug reports had a fix 
which applied to 2.1.14, so I hacked the ebuild so it works properly. I first tried 
ACCEPT_KEYWORDS="gtk" emerge gkrellm, which didn't. 
 
I'm including a patch which will make it work
Comment 1 Anthony Ventimiglia 2003-07-25 23:18:33 UTC
Created attachment 15025 [details, diff]
patch to gkrellm-2.1.14.ebuild and ChangeLog

To apply this (assuming patch is ~/gkrellm.diff)
# cd /usr/portage/apps-admin/gkrellm
# patch -Np1 < ~/gkrellm.diff
# ebuild gkrellm-2.1.14.ebuild digest
Comment 2 Anthony Ventimiglia 2003-07-25 23:19:22 UTC
Created attachment 15026 [details, diff]
patch to gkrellm-2.1.14.ebuild and ChangeLog

To apply this (assuming patch is ~/gkrellm.diff)
# cd /usr/portage/apps-admin/gkrellm
# patch -Np1 < ~/gkrellm.diff
# ebuild gkrellm-2.1.14.ebuild digest
Comment 3 Anthony Ventimiglia 2003-07-25 23:25:12 UTC
ant@afghan gkrellm $ emerge info 
Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz 
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo 
http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config 
/var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 oss 3dnow apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mmx 
mpeg ncurses nls pdflib png spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline 
arts tetex svga ggi tcltk java guile mysql X gpm tcpd pam libwww perl python esd imlib 
oggvorbis qt kde motif opengl mozilla cdr quicktime sdl ssl Xaw3d curl doc dvd emacs flash 
leim samba usb xinerama -cups -gnome -gtk" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium3 -pipe -mmmx" 
CXXFLAGS="-march=pentium3 -pipe -mmmx" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache strict" 
 
Now I know i have -gtk in my USE flags, but changing that didn't do any good. but if the idea is 
that -gtk should only build the server, I think that's the wrong approach. I use -gtk, because I 
prefer not to use gtk if there is an option, but that does not mean I expect to get away without 
ever having gtk installed.  
 
I know this fix is a bit of a hack, but I hope you can fix this so it works properly. 
 
Sorry, there was an error so I couldn't attatch the patch separatley, but you can just cut and 
paste it from below: 
 
To apply this (assuming patch is ~/gkrellm.diff) 
# cd /usr/portage/apps-admin/gkrellm 
# patch -Np1 < ~/gkrellm.diff 
# ebuild gkrellm-2.1.14.ebuild digest 
 
--- /usr/portage/app-admin/gkrellm/ChangeLog    2003-07-17 16:02:19.000000000 -0400 
+++ gkrellm/ChangeLog   2003-07-26 06:55:18.000000000 -0400 
@@ -2,6 +2,9 @@ 
 # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 
 # $Header: /home/cvsroot/gentoo-x86/app-admin/gkrellm/ChangeLog,v 1.47 2003/07/17 
20:02:19 mholzer Exp $ 
 
+  26 Jul 2003; Anthony Ventimiglia <anthony@ventimiglia.org> gkrellm-2.14.ebuild: 
+  Hacked ebuild so gkrellm builds and installs. 
+ 
   18 Jul 2003; Martin Holzer <mholzer@gentoo.org> gkrellm-2.1.14.ebuild: 
   Marked x86 stable. 
 
--- /usr/portage/app-admin/gkrellm/gkrellm-2.1.14.ebuild        2003-07-17 16:02:19.000000000 
-0400 
+++ gkrellm/gkrellm-2.1.14.ebuild       2003-07-26 06:46:22.000000000 -0400 
@@ -25,43 +25,29 @@ 
        fi 
 
        sed -i 's:INSTALLROOT ?= /usr/local:INSTALLROOT ?= ${D}/usr:' Makefile 
- 
-       if use gtk2 || use gtk 
-       then 
-               emake || die 
-       else 
-               cd ${S}/server 
-               emake glib12=1 || die 
-       fi 
+ 
+       emake || die 
 } 
 
 src_install() { 
        dodir /usr/{bin,include,share/man} 
 
-       if use gtk2 || use gtk 
-       then 
-               keepdir /usr/share/gkrellm2/themes 
-               keepdir /usr/lib/gkrellm2/plugins 
- 
-               make DESTDIR=${D} install \ 
-                       INSTALLDIR=${D}/usr/bin \ 
-                       MANDIR=${D}/usr/share/man/man1 \ 
-                       INCLUDEDIR=${D}/usr/include \ 
-                       LOCALEDIR=${D}/usr/share/locale \ 
-                       PKGCONFIGDIR=${D}/usr/lib/pkgconfig 
- 
-               cd ${S} 
-               mv gkrellm.1 gkrellm2.1 
- 
-               mv src/gkrellm src/gkrellm2 
-               dobin src/gkrellm2 
-               rm -f ${D}/usr/bin/gkrellm 
-       else 
-               cd ${S}/server 
-               dobin gkrellmd 
-               cd ${S} 
-               rm gkrellm.1 
-       fi 
+       keepdir /usr/share/gkrellm2/themes 
+       keepdir /usr/lib/gkrellm2/plugins 
+ 
+       make DESTDIR=${D} install \ 
+           INSTALLDIR=${D}/usr/bin \ 
+           MANDIR=${D}/usr/share/man/man1 \ 
+           INCLUDEDIR=${D}/usr/include \ 
+           LOCALEDIR=${D}/usr/share/locale \ 
+           PKGCONFIGDIR=${D}/usr/lib/pkgconfig 
+ 
+       cd ${S} 
+       mv gkrellm.1 gkrellm2.1 
+ 
+       mv src/gkrellm src/gkrellm2 
+       dobin src/gkrellm2 
+       rm -f ${D}/usr/bin/gkrellm 
 
        rm -f ${D}/usr/share/man/man1/* 
        doman *.1 
 
Comment 4 Anthony Ventimiglia 2003-07-25 23:26:45 UTC
Sorry for the duplicate attatchment, I was getting an error message when I attatched the file, 
so I assumed it wasn't working. 
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-08-04 11:40:18 UTC
try 2.1.15
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-08-18 13:40:00 UTC
seems like newer works