So, I have a rather old Efika PPC install on mine, and I decided to go ahead and try to upgrade it, even though it hasn't been turned on since around November of 2009.
Initial sync went well, and while it complains about my profile, I couldn't switch (yet) because of the fact that the currently installed portage (portage 2.2_rc5) doesn't support over eapi 2.
I was able to upgrade portage (finally) by issuing:
PYTHON_TARGETS=python2_6 emerge portage
This did the following updates:
prototype portage # PYTHON_TARGETS=python2_6 emerge -pv =portage-2.2.1
!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:
These are the packages that would be merged, in order:
Calculating dependencies \/usr/lib/portage/pym/portage/dep.py:931: DeprecationWarning: portage.dep.dep_getkey() is deprecated, use portage.dep.Atom.cp instead
/usr/lib/portage/pym/portage/dep.py:695: DeprecationWarning: portage.dep.dep_getcpv() is deprecated, use portage.dep.Atom.cpv instead
DeprecationWarning) ... done!
[ebuild U ] sys-devel/make-3.82-r4 [3.81] USE="nls -static" 1,214 kB
[ebuild U ] sys-libs/readline-6.2_p4 [6.0_p3] USE="-static-libs%" 2,233 kB
[ebuild N ] virtual/yacc-0 0 kB
[ebuild U ] app-shells/bash-4.2_p45 [4.0_p35] USE="net nls (readline%*) (-afs) -bashlogger -examples -mem-scramble -plugins -vanilla" 6,953 kB
[ebuild U ] sys-apps/portage-2.2.1 [2.2_rc56] USE="(ipc%*) -build -doc -epydoc (-pypy2_0) -python2% -python3 (-selinux) -xattr%" LINGUAS="-ru% (-pl%)" PYTHON_TARGETS="python2_6%* (-pypy2_0) -python2_7% -python3_2% -python3_3% (-python3_4)" 881 kB
Total: 5 packages (4 upgrades, 1 new), Size of downloads: 11,279 kB
The packages all compiled successfully, and at the end I came across...
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* Regenerating GNU info directory index...
��&�'�j* Processed 127 info files.
* IMPORTANT: 6 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
prototype portage # etc-update
Traceback (most recent call last):
File "/usr/bin/portageq", line 1356, in <module>
File "/usr/bin/portageq", line 1274, in main
File "/usr/bin/portageq", line 1196, in add_pquery_arguments
TypeError: add_option() keywords must be strings
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
So, etc-update does not work correctly, however dispatch-conf does seem to.
This is fixed in 2.2.7.