Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163219 - portage-2.1.2 trace back in globalupdate with binpkg
Summary: portage-2.1.2 trace back in globalupdate with binpkg
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 162453
  Show dependency tree
 
Reported: 2007-01-22 11:04 UTC by Togge
Modified: 2007-01-23 23:35 UTC (History)
0 users

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


Attachments
handle binpkgs that have missing PF metadata (corrupt_binpkg.patch,817 bytes, patch)
2007-01-22 11:29 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Togge 2007-01-22 11:04:26 UTC
When running emerge --sync I got this trace back:

Performing Global Updates: /usr/portage/profiles/updates/1Q-2007
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
..........
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5289, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5246, in emerge_main
    action_sync(settings, trees, mtimedb, myopts, myaction)
  File "/usr/bin/emerge", line 3988, in action_sync
    if portage.global_updates(settings, trees, mtimedb["updates"]):
  File "/usr/lib/portage/pym/portage.py", line 7899, in global_updates
    trees["/"]["bintree"].move_ent(update_cmd)
  File "/usr/lib/portage/pym/portage.py", line 6100, in move_ent
    self.populate()
  File "/usr/lib/portage/pym/portage.py", line 6363, in populate
    if mypkg != mytbz2.getfile("PF").strip():
AttributeError: 'NoneType' object has no attribute 'strip'

real	4m35.850s
user	0m11.670s
sys	0m13.785s
 * emerge --sync failed


Reproducible: Always

Steps to Reproduce:




Could this have anything to do with the fact that the binpkgs are from a 32 bit chroot and not from the host system?
Comment 1 Zac Medico gentoo-dev 2007-01-22 11:29:05 UTC
Created attachment 107771 [details, diff]
handle binpkgs that have missing PF metadata

You seem to have a corrupt binary package.  If this patch is saved as /tmp/corrupt_binpkg.patch, then it can be applied as follows:

cd /usr/lib/prtage
patch -p0 < /tmp/corrupt_binpkg.patch
Comment 2 Togge 2007-01-22 11:53:34 UTC
Thanks!

Btw that was a really fast bug squash :)
Comment 3 Zac Medico gentoo-dev 2007-01-23 23:35:18 UTC
This has been released in 2.1.2-r3.