Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 355939

Summary: sys-apps/portage-2.2.0_alpha24 breaks compilation under python3
Product: Gentoo Linux Reporter: Blu3 <david+gentoo.org>
Component: New packagesAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal CC: jmbsvicetto, python
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Blu3 2011-02-22 00:21:22 UTC
>>> Installing (1 of 88) sys-apps/portage-2.2.0_alpha24
 * Compilation and optimization of Python modules placed outside of site-packages directories for CPython 3.1 ...
*** Error compiling /usr/lib64/portage/pym/portage_db_anydbm.py ...
  File "/usr/lib64/portage/pym/portage_db_anydbm.py", line 24
    self.db = anydbm.open(self.filename, "c", 0664)
                                                 ^
SyntaxError: invalid token

*** Error compiling /usr/lib64/portage/pym/portage_db_cpickle.py ...
  File "/usr/lib64/portage/pym/portage_db_cpickle.py", line 18
    os.makedirs(self.path, 02775)
                               ^
SyntaxError: invalid token

*** Error compiling /usr/lib64/portage/pym/portage_db_flat.py ...
  File "/usr/lib64/portage/pym/portage_db_flat.py", line 25
    os.makedirs(self.fullpath, 02775)
                                   ^
SyntaxError: invalid token

*** Error compiling /usr/lib64/portage/pym/portage_db_template.py ...
  File "/usr/lib64/portage/pym/portage_db_template.py", line 37
    except SystemExit, e:
                     ^
SyntaxError: invalid syntax
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-02-22 15:05:21 UTC
@portage:

Is this a portage or python bug?
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-22 16:06:45 UTC
Portage hasn't been installing these files for a long time. Most likely VDB and/or Portage of user was broken and he tried to repair system in insufficiently correct way.
Comment 3 Blu3 2011-02-22 18:37:01 UTC
or perhaps portage installed them a long time ago and just left them there.  there's A LOT of files that get abandoned as time goes by that portage should clean up.  my actions were "emerge -u portage"