Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288974 - Prefix Portage (sys-apps/portage-2.2.00.14555) needs deps adjusted for python
Summary: Prefix Portage (sys-apps/portage-2.2.00.14555) needs deps adjusted for python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 00:41 UTC by calculuspenguin
Modified: 2009-10-15 18:10 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 calculuspenguin 2009-10-14 00:41:41 UTC
sys-apps/portage-2.2.00.14555 currently has python_dep=">=dev-lang/python-2.5 <dev-lang/python-3.0" as its python dependencies.  This is incorrect as when "* Byte compiling python modules for python-2.5 .. ..." results in many "SyntaxError: invalid syntax" messages.

Examples:
    except UninstallFailure as e:
                             ^
SyntaxError: invalid syntax

    myfd = os.open(lockfilename, os.O_CREAT|os.O_RDWR, 0o660)
                                                           ^
SyntaxError: invalid syntax

The changelogs from portage svn are:
r14292 - Update syntax of numbers for compatibility with Python 3.
r14289 - Update syntax of 'except' statements for compatibility with Python 3.

sys-apps/portage-2.2.00.14555 deps should be changed to python-2.6 (or some other version that is compatible with Python 3).
Comment 1 Fabian Groffen gentoo-dev 2009-10-14 06:10:09 UTC
correct, the dependency must be bumped to python-2.6
Comment 2 Fabian Groffen gentoo-dev 2009-10-15 18:10:11 UTC
thanks, I just committed this dependency change.