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
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.
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.
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...
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...
Fix is in subversion.
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.
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.
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.
gentoolkit-0.2.1_pre7 has been released