Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256448 - sys-apps/portage - File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1824, in getcontents mylines = myc.readlines() IOError: [Errno 5] Input/output error
Summary: sys-apps/portage - File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", li...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 20:20 UTC by David R
Modified: 2009-05-31 23:19 UTC (History)
0 users

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 David R 2009-01-26 20:20:24 UTC
After an new emerge of portage and a revdep-rebuild, emerge breaks in a lot of ways. It seems that some .py code breaks it and now I cannot use it to emerge any files. Following the instructions in manually fixing portage did not yield any results. emerge --sync works, thou.

Reproducible: Always

Steps to Reproduce:
1.emerge -a portage
2.
3.

Actual Results:  
teapot ~ # emerge -a cmake
These are the packages that would be merged, in order:

Calculating dependencies       ## (freezes for a bit here. No spinner! :(
Traceback (most recent call last):
  File "/usr/bin/emerge", line 18, in <module>
    retval = _emerge.emerge_main()
  File "/usr/lib64/portage/pym/_emerge/__init__.py", line 14327, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/__init__.py", line 13149, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/lib64/portage/pym/_emerge/__init__.py", line 4219, in __init__
    pkg_cache=self._pkg_cache)
  File "/usr/lib64/portage/pym/_emerge/__init__.py", line 1104, in __init__
    real_dbapi.flush_cache()
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1023, in flush_cache
    self._owners.populate() # index any unindexed contents
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1403, in populate
    self._populate()
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1429, in _populate
    owners_cache.add(cpv)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1353, in add
    contents = self._vardb._dblink(cpv).getcontents()
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1824, in getcontents
    mylines = myc.readlines()
IOError: [Errno 5] Input/output error


Expected Results:  
Emerge!
Comment 1 solar (RETIRED) gentoo-dev 2009-01-26 23:41:17 UTC
You forgot to include lots of vital data. Such as which portage version are you running. And emerge --info 

A summary of "portage" does not tell our maintainers much which causes the likely hood of this bug being seen by one of them is rather slim as is.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-29 17:24:06 UTC
Please post your `emerge --info' and reopen this bug report.
Comment 3 Alberto federman Neto 2009-05-31 23:19:29 UTC
This is a Problem again unresolved. 
a also have this, see the messages:

File "//usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1858, in getcontents
IOError: [Errno 5] Input/output error

it occurs in portages 2.2_32 an d 2.2_33, after i unmasked and install, i was unable to downgrade it....