Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25408 - portage-2.0.48-r7: emerge generated callback trace
Summary: portage-2.0.48-r7: emerge generated callback trace
Status: RESOLVED DUPLICATE of bug 25339
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-28 00:03 UTC by Phil Richards
Modified: 2005-07-17 13:06 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 Phil Richards 2003-07-28 00:03:27 UTC
I emerged PDL-2.4.0-r1, and after it had installed the new version,
and removed the old files, I got:
[...]
<<<        dir /usr/doc/PDL-2.4.0/html/PDL/Fit
<<<        dir /usr/doc/PDL-2.4.0/html/PDL/Filter
<<<        dir /usr/doc/PDL-2.4.0/html/PDL/Doc
<<<        dir /usr/doc/PDL-2.4.0/html/PDL/Core
<<<        dir /usr/doc/PDL-2.4.0/html/PDL
<<<        dir /usr/doc/PDL-2.4.0/html
<<<        dir /usr/doc/PDL-2.4.0
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1993, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1264, in merge
    if not unmerge("clean", [xsplit[0]]):
  File "/usr/bin/emerge", line 1468, in unmerge
    retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,unmerge_action not
in ["clean","prune"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 1882, in unmerge
    mylink.unmerge(trimworld=mytrimworld)
  File "/usr/lib/python2.2/site-packages/portage.py", line 4245, in unmerge
    if len(objld)>0:
TypeError: len() of unsized object

Everything appears fine (the package is recorded as being installed).
Looking at the code, we see:

[...]
			while pos<len(mydirs):
				obj=mydirs[pos]
				objld=listdir(obj)
				if len(objld)>0:
					#we won't remove this directory (yet), continue
						pos += 1
						continue
				elif (objld != None):
[...]

I suspect objld is None (the directory is empty, and listdir isn't being
passed a non-zero EmptyOnError), so len(None) is invoked, which will blow up...

phil
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-07-28 01:23:00 UTC
Just experienced this bug with portage-2.0.48-r5.  Just an FYI for carpaski.
Comment 2 Phil Richards 2003-07-28 01:33:47 UTC
Bizarre update:

Just installed a new package and when clean was invoked as the final step,
it cleaned the PDL-2.4.0 stuff as well - and it worked this time.

There is clearly a bug somewhere, but maybe not where I first thought :-)

phil
Comment 3 SpanKY gentoo-dev 2003-07-28 04:31:22 UTC
re-emerge PDL for now 

*** This bug has been marked as a duplicate of 25339 ***