Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439488 - sys-apps/portage: missing import errno in pym/portage/_sets/files.py
Summary: sys-apps/portage: missing import errno in pym/portage/_sets/files.py
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: http://prefix.gentooexperimental.org:...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-24 09:16 UTC by Kacper Kowalik (Xarthisius) (RETIRED)
Modified: 2012-12-26 15:29 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 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-10-24 09:16:03 UTC
diff --git a/master:pym/portage/_sets/files.py b/prefix:pym/portage/_sets/files.py
index b839582..fbe14bc 100644
--- a/master:pym/portage/_sets/files.py
+++ b/prefix:pym/portage/_sets/files.py
@@ -1,7 +1,6 @@
 # Copyright 2007-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-import errno
 import re
 from itertools import chain

That leads to things like that during emerge invocation:

plgxarth@wn2111 ~ $ emerge -av portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
Traceback (most recent call last):
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/bin/emerge", line 48, in <module>
    retval = emerge_main()
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/_emerge/main.py", line 1022, in emerge_main
    gc_locals=locals().clear)
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/_emerge/actions.py", line 3868, in run_action
    myopts, myaction, myfiles, spinner)
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/_emerge/actions.py", line 341, in action_build
    favorites=favorites)
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/_emerge/depgraph.py", line 6289, in display
    return display(self, mylist, favorites, verbosity)
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/_emerge/resolver/output.py", line 857, in __call__
    self.check_system_world(pkg)
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/_emerge/resolver/output.py", line 705, in check_system_world
    pkg, modified_use=self.conf.pkg_use_enabled(pkg))
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/portage/_sets/base.py", line 134, in findAtomForPackage
    for atom in self.iterAtomsForPackage(pkg):
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/portage/_sets/base.py", line 152, in iterAtomsForPackage
    self._load() # make sure the atoms are loaded
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/portage/_sets/base.py", line 59, in _load
    self.load()
  File "/mnt/lustre/permanent/plgxarth/gentoo/usr/lib/portage/pym/portage/_sets/files.py", line 253, in load
    if e.errno != errno.ENOENT:
NameError: global name 'errno' is not defined
Comment 1 Fabian Groffen gentoo-dev 2012-12-26 15:15:20 UTC
thanks!
Comment 2 Fabian Groffen gentoo-dev 2012-12-26 15:29:41 UTC
this is in 2.2.01.21476