Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342739 - app-portage/gentoolkit-0.2.4.6.1-r1 fails with dev-lang/python-3.1.2-r4
Summary: app-portage/gentoolkit-0.2.4.6.1-r1 fails with dev-lang/python-3.1.2-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2010-10-26 10:31 UTC by Andreas K. Hüttel
Modified: 2011-05-11 01:30 UTC (History)
1 user (show)

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 Andreas K. Hüttel archtester gentoo-dev 2010-10-26 10:31:13 UTC
huettel@grenadine ~ $ equery files marble
  File "/usr/bin/equery", line 271
    print pp.path(" /" + c[0])
           ^
SyntaxError: invalid syntax
huettel@grenadine ~ $ eselect python list
Available Python interpreters:
  [1]   python2.6
  [2]   python3.1 *
Comment 1 Douglas Anderson 2010-10-27 06:24:47 UTC
Gentoolkit-0.3.0 is our branch of gentoolkit that has support for py3k. It's in the tree now.

Py3k support isn't planned for the current stable branch, but not sure if the ebuild could be updated to reflect that... I'll leave that up to the maintainer. The above was just FYI.
Comment 2 Albert W. Hopkins 2011-05-09 11:23:07 UTC
This is a bit confusing (for the user).

As the current stage3 tarballs now come with python-3.* as the system python, one would expect to be able to install from a stage3, upgrade all packages, and then run revdep-rebuild (after having installed gentoolkit).

Currently, this is possible.  revdep-rebuild will kind of run, but not without error, e.g:


# revdep-rebuild -i
 * Configuring search environment for revdep-rebuild
  File "<string>", line 1
    import os; import pwd; print pwd.getpwuid(os.getuid())[0]
                                   ^
SyntaxError: invalid syntax


This is from the get_search_env() function in the revdep-rebuild script.

So I appreciate that the unstable version of gentoolkit supports python3, it is still an issue for users running stable.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2011-05-09 19:02:38 UTC
unfortunately, they will have to either package.keyword it it, or wait a few more days and then put in a stabilization request.  Apr 11 was when -0.3.0 was released so in 2 more days the 30 day minimum requirement will have been met.
Comment 4 Albert W. Hopkins 2011-05-09 19:39:12 UTC
Or perhaps you could explicitly call "python2" in get_search_env()
Comment 5 Paul Varner (RETIRED) gentoo-dev 2011-05-09 20:11:14 UTC
The 0.3.0 branch of gentoolkit will be requested to be stable shortly.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2011-05-11 00:36:01 UTC
This is fixed in gentoolkit-0.3.0
Comment 7 Albert W. Hopkins 2011-05-11 01:30:59 UTC
Thank you!