Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105382 - gentoolkit-0.2.1_pre6: "eclean -p -d" doesn't run
Summary: gentoolkit-0.2.1_pre6: "eclean -p -d" doesn't run
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-09-09 06:56 UTC by Phil Richards
Modified: 2005-11-03 09:48 UTC (History)
1 user (show)

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


Attachments
eclean--fix_for_portage_2.0.52.patch (eclean--fix_for_portage_2.0.52.patch,482 bytes, patch)
2005-09-09 08:51 UTC, TGL
Details | Diff
eclean--fix_listdir.patch (eclean--fix_listdir.patch,591 bytes, patch)
2005-09-09 09:09 UTC, TGL
Details | Diff
gentoolkit-0.2.1_pre6_to_-r1.patch (gentoolkit-0.2.1_pre6_to_-r1.patch,395 bytes, patch)
2005-09-12 04:50 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Richards 2005-09-09 06:56:13 UTC
This is all I get when I try to run eclean:

~ # eclean -p -d distfiles
Traceback (most recent call last):
  File "/usr/bin/eclean", line 32, in ?
    else: from portage_file import listdir
ImportError: cannot import name listdir

--
Phil

~ # emerge info
Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r1,
2.6.13-gentoo i686)
=================================================================
System uname: 2.6.13-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/src/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/
http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/src/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa apm avi berkdb bitmap-fonts bzip2 cdr crypt cups curl
dbus dvd dvdr dvi eds emboss encode esd fam firefox flac foomaticdb fortran gd
gdbm gif gnome gpm gstreamer gtk gtk2 guile hal imagemagick imlib jpeg lesstif
libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg ncurses nls nntp nptl
nptlonly offensive ogg oggvorbis opengl pam pdflib perl png python quicktime
readline real samba scanner sdl slang speex spell sse ssl svga tcltk tcpd tetex
theora threads tiff truetype truetype-fonts type1-fonts usb vorbis win32codecs
xine xml2 xmms xv zlib video_cards_i915 userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Paul Varner (RETIRED) gentoo-dev 2005-09-09 08:39:18 UTC
I didn't test with portage 2.0.52 since it wasn't out when I was testing.  I'll
start looking into this and see what I can find.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2005-09-09 08:50:25 UTC
Quick hack if you are running 2.0.52.  Edit /usr/bin/eclean, and change the
2.0.51 to 2.0.52 on line 32. I'll fix this properly later today.
Comment 3 TGL 2005-09-09 08:51:57 UTC
Created attachment 68041 [details, diff]
eclean--fix_for_portage_2.0.52.patch

Argh! I didn't there would ever be a 2.0.52 when i wrote this...
Comment 4 TGL 2005-09-09 09:09:50 UTC
Created attachment 68045 [details, diff]
eclean--fix_listdir.patch

Err, no, silly me. There was no need for this ugly hack anyway, since CVS
listdir is already imported from portage_file. Thus, a simple
listdir=portage.listdir should actually work with both branches.

Sorry about that...
Comment 5 Paul Varner (RETIRED) gentoo-dev 2005-09-09 09:50:09 UTC
Fix is in subversion.
Comment 6 TGL 2005-09-12 04:47:55 UTC
Paul, if you don't plan a new gentoolkit release anytime soon, could you make a
revision bump with this patch? I know it's my bad, but i don't like the idea of
 eclean beiing completly broken in its first public version...
Thanks.
Comment 7 TGL 2005-09-12 04:50:23 UTC
Created attachment 68239 [details, diff]
gentoolkit-0.2.1_pre6_to_-r1.patch

Ebuild patch for a rev bump. It assumes the fix_list patch is name
gentoolkit-0.2.1_pre6-fix_listdir_in_eclean.patch in $FILESDIR.
Comment 8 Paul Varner (RETIRED) gentoo-dev 2005-09-12 07:37:27 UTC
The new ebuild is on its way.  I had limited availabilty to my development
machine this weekend so I'm doing the final tests on the new ebuild now and will
commit it to the tree shortly.
Comment 9 Paul Varner (RETIRED) gentoo-dev 2005-09-12 07:59:10 UTC
gentoolkit-0.2.1_pre7 has been released