Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382767 - app-portage/tatt-9999 syntax errors with python-2.4 and python-2.5
Summary: app-portage/tatt-9999 syntax errors with python-2.4 and python-2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 04:39 UTC by Mike Gilbert
Modified: 2011-09-13 13:55 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 Mike Gilbert gentoo-dev 2011-09-13 04:39:31 UTC
If you don't feel like changing the code, I suggest setting the following variables in the ebuild:

PYTHON_DEPEND="2:2.6" (before inherit)

RESTRICT_PYTHON_ABIS="2.[45] 3.*"



 * Messages for package app-portage/tatt-9999:

 * git.eclass is deprecated.
 * Please update your ebuilds to use git-2 instead. For details, see
 * http://archives.gentoo.org/gentoo-dev/msg_b7ba363cae580845819ae3501fb157e9.xml
 * GIT update -->
 *    repository:               git://github.com/tom111/tatt.git
 *    at the commit:            d60242a092728032c884e9b5ce57710cb297b761
 *    branch:                   master
 *    storage directory:        "/usr/portage/distfiles/git-src/tatt"
 * Syntax errors / warnings in Python modules for CPython 2.4:
 *     Compiling /usr/lib64/python2.4/site-packages/tatt/packageFinder.py ...
 *     File "/usr/lib64/python2.4/site-packages/tatt/packageFinder.py", line 4
 *     from .gentooPackage import gentooPackage as gP
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     Compiling /usr/lib64/python2.4/site-packages/tatt/scriptwriter.py ...
 *     File "/usr/lib64/python2.4/site-packages/tatt/scriptwriter.py", line 6
 *     from .usecombis import findUseFlagCombis
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     Compiling /usr/lib64/python2.4/site-packages/tatt/tinderbox.py ...
 *     File "/usr/lib64/python2.4/site-packages/tatt/tinderbox.py", line 10
 *     from .gentooPackage import gentooPackage as gP
 *     ^
 *     SyntaxError: invalid syntax
 *     
 *     Compiling /usr/lib64/python2.4/site-packages/tatt/usecombis.py ...
 *     File "/usr/lib64/python2.4/site-packages/tatt/usecombis.py", line 8
 *     from .tool import unique
 *     ^
 *     SyntaxError: invalid syntax
 * Syntax errors / warnings in Python modules for CPython 2.5:
 *     /usr/lib64/python2.5/site-packages/tatt/tinderbox.py:35: Warning: 'as' will become a reserved keyword in Python 2.6
 *     Compiling /usr/lib64/python2.5/site-packages/tatt/tinderbox.py ...
 *     File "/usr/lib64/python2.5/site-packages/tatt/tinderbox.py", line 35
 *     except urllib2.HTTPError as e:
 *     ^
 *     SyntaxError: invalid syntax
Comment 1 Mike Gilbert gentoo-dev 2011-09-13 04:42:54 UTC
I also suggest migrating to the git-2 eclass, which should simply be a matter of changing "git" to "git-2" in this ebuild.
Comment 2 Thomas Kahle (RETIRED) gentoo-dev 2011-09-13 13:55:19 UTC
Done. Thanks Mike!

+  13 Sep 2011; Thomas Kahle <tomka@gentoo.org> tatt-9999.ebuild:
+  Fixing python dependencies and use git-2.eclass (Bug 382767)