>>> 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
@portage: Is this a portage or python bug?
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.
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"