Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489132 - dev-vcs/gitstats-100711 uses system Python, should use Python 2
Summary: dev-vcs/gitstats-100711 uses system Python, should use Python 2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-10-23 12:40 UTC by Bert Geens (theBlackDragon)
Modified: 2013-10-24 17:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Change shebang to use python 2. (gitstats.patch,294 bytes, patch)
2013-10-23 12:40 UTC, Bert Geens (theBlackDragon)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bert Geens (theBlackDragon) 2013-10-23 12:40:27 UTC
Created attachment 361726 [details, diff]
Change shebang to use python 2.

This version of gitstats isn't compatible with Python 3 and should use Python 2 explicitly instead of the default system Python version.

Running with Python 3 results in this:
./gitstats                  
  File "./gitstats", line 45
    print '>> ' + ' | '.join(cmds),
              ^
SyntaxError: invalid syntax

Attached patch simply updates the shebang to use Python 2, fixing the above problem.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-10-24 17:24:35 UTC
+*gitstats-0_pre131024 (24 Oct 2013)
+
+  24 Oct 2013; Justin Lecher <jlec@gentoo.org> +gitstats-0_pre131024.ebuild,
+  gitstats-9999.ebuild, -gitstats-100711.ebuild, metadata.xml:
+  Drop old; pack latest and bump to new python eclasses, #489132
+