"Bad example: I can't emerge anything! Gentoo is broken!" Yes it's true. I made a emerge -u world, and then get lots auf errors. I haven't done something special. I just wanted "emerge ddd". Reproducible: Couldn't Reproduce Steps to Reproduce: 1. 2. 3. root@buzz bin # emerge info Performing Global Updates: /usr/portage/profiles/updates/1Q-2004 (Could take a couple minutes if you have a lot of binary packages.) .='update pass' *='binary update' @='/var/db move' portage: Update type "" not recognized. Traceback (most recent call last): File "/usr/bin/emerge", line 1954, in ? print getportageversion() File "/usr/bin/emerge", line 309, in getportageversion for x in portage.vardbapi(portage.root).match("glibc"): File "/usr/lib/portage/pym/portage.py", line 3362, in match mydep=dep_expand(origdep,self) File "/usr/lib/portage/pym/portage.py", line 2748, in dep_expand return prefix+cpv_expand(mydep,mydb)+postfix File "/usr/lib/portage/pym/portage.py", line 2694, in cpv_expand if mydb.cp_list(x+"/"+myp): File "/usr/lib/portage/pym/portage.py", line 3311, in cp_list mystat=os.stat(self.root+"var/db/pkg/"+mysplit[0])[ST_MTIME] TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str root@buzz bin # root@buzz bin # emerge -up world Performing Global Updates: /usr/portage/profiles/updates/1Q-2004 (Could take a couple minutes if you have a lot of binary packages.) .='update pass' *='binary update' @='/var/db move' portage: Update type "" not recognized. These are the packages that I would merge, in order: Calculating world dependencies ...done! INCOMPLETE MERGE: /var/db/pkg/sys-fs/-MERGING-devfsd-1.3.25-r3 [ebuild N ] sys-fs/devfsd-1.3.25-r3 [ebuild U ] sys-apps/portage-2.0.50-r1 [2.0.49-r21] *** Portage will stop merging at this point and reload itself, recalculate dependencies, and complete the merge. [ebuild UD] sys-apps/findutils-4.1.7-r1 [4.1.20-r1] INCOMPLETE MERGE: /var/db/pkg/sys-kernel/-MERGING-linux-headers-2.4.21 [ebuild N ] sys-kernel/linux-headers-2.4.21 [ebuild U ] sys-apps/baselayout-1.8.6.13 [1.8.6.10-r1] root@buzz bin # root@buzz bin # emerge ddd Performing Global Updates: /usr/portage/profiles/updates/1Q-2004 (Could take a couple minutes if you have a lot of binary packages.) .='update pass' *='binary update' @='/var/db move' portage: Update type "" not recognized. Calculating dependencies Traceback (most recent call last): File "/usr/bin/emerge", line 2181, in ? retval,favorites=mydepgraph.select_files(myfiles) File "/usr/bin/emerge", line 794, in select_files mykey=portage.dep_expand(x,portage.portdb) File "/usr/lib/portage/pym/portage.py", line 2748, in dep_expand return prefix+cpv_expand(mydep,mydb)+postfix File "/usr/lib/portage/pym/portage.py", line 2694, in cpv_expand if mydb.cp_list(x+"/"+myp): File "/usr/lib/portage/pym/portage.py", line 4024, in cp_list list=listdir(self.root+"/"+mycp,EmptyOnError=1) File "/usr/lib/portage/pym/portage.py", line 225, in listdir if os.path.isdir(mypath): File "/usr/lib/python2.3/posixpath.py", line 187, in isdir st = os.stat(path) TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str root@buzz bin # Have a look here: http://forums.gentoo.org/viewtopic.php?p=864890#864890 If you need some special files, please mail to me. I send you my config files and everything you need.
Created attachment 25577 [details] my /usr/bin/emerge
Created attachment 25578 [details] my /usr/lib/portage/pym/portage.py file
The bug happens yet? let us know.
My Harddisk carshed => reinstalled gentoo 2004.0 I can't reproduce it, and it seems that I'm the only one who had/have this problem.
OK, thanks for reporting.