Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17082 - gentoolkit pkg-clean gives 'please specify a valid command' when cleaning
Summary: gentoolkit pkg-clean gives 'please specify a valid command' when cleaning
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-08 08:33 UTC by Ronald Moesbergen
Modified: 2003-05-03 07:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Moesbergen 2003-03-08 08:33:22 UTC
When using pkg-clean (i'm using gentoolkit version 0.1.19-r1, portage 2.0.47-r8), after 
selecting a version to unmerge, an error appears: 'please specify a valid command'. 

Reproducible: Always
Steps to Reproduce:
1. start pkg-clean 
2. select an old version of a package to unmerge and answer 'yes' to 'are you sure?' 
3.  
Actual Results:  
Error: please specify a valid command. 

Expected Results:  
Unmerge the old version of the package. 

It appears the ebuild command called by pkg-clean no longer supports the 'unmerge' 
command. The following patch fixes it for me, might not be correct: 
 
--- pkg-clean   2003-03-08 14:30:19.000000000 +0100 
+++ pkg-clean.fixed     2003-03-08 14:31:27.000000000 +0100 
@@ -92,7 +92,7 @@ 
 
                if res == 0: 
                        (status, unmerge_out) = commands.getstatusoutput( 
-                               "ebuild %s unmerge" % (full_path)) 
+                               "emerge unmerge %s" % (full_path)) 
                        print unmerge_out 
                        time.sleep(2) 
                        if status != 0: 
 
Emerge Info output: 
 
Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0) 
================================================================= 
System uname: 2.4.21-pre3 i686 Pentium III (Coppermine) 
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ " 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /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 qt-mt moznomail moznocompose moznoirc pam ssl mmx sse crypt kde alsa 
avi cdr encode gdbm gif gtk java jpeg mozilla mpeg oggvorbis opengl pic png qt 
quicktime readline samba tiff truetype X xmms zlib" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium3 -O3 -pipe" 
CXXFLAGS="-O2 -mcpu=i686 -pipe" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j3" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache distcc"
Comment 1 Gontran Zepeda 2003-03-13 07:29:37 UTC
Thanks Ronald!  Fix worked for me.

Portage 2.0.47-r8 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.19-xfs-r2 i686 Celeron (Coppermine)
GENTOO_MIRRORS="http://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /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="/usr/local/portage"
USE="x86 oss apm avi crypt cups encode jpeg libg++ mikmod mmx ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb bonobo esd gdbm gif gnome-libs gtk gtkhtml guile ldap libwww motif mozilla mysql nls oggvorbis pam perl png postgres python readline ssl svga tcpd tetex tiff -X -mpeg -opengl -imlib xml sse -3dnow -arts -gpm -java -kde -qt -qtmt -sdl -slang"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CXXFLAGS=""
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-05-03 07:58:50 UTC
Committed to CVS; will be available on next release of Gentoolkit, hopefully later this month. Thanks.