Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417429 - stabilize : media-sound/jack-3.1.1-r1 to fix current stable jack-3.1.1 - src_install(): SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/jack_functions.py', 222, 25, 'def starts_with(str, with):n'))
Summary: stabilize : media-sound/jack-3.1.1-r1 to fix current stable jack-3.1.1 - src_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2012-05-24 22:50 UTC by Iftikhar Rathore
Modified: 2013-03-31 09:57 UTC (History)
2 users (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 Iftikhar Rathore 2012-05-24 22:50:47 UTC
While emerging jack-3.1.1 this error is outpput (It proceeds with install though. I think the cause is that "with" is a pythin keyword. (proposed fix in the end)


>>> Installing (1 of 1) media-sound/jack-3.1.1
 * Compilation and optimization of Python modules for CPython 2.7 ...    [ !! ]
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/jack_functions.py', 222, 25, 'def starts_with(str, with):n'))

 * Messages for package media-sound/jack-3.1.1:

 * Syntax errors / warnings in Python modules for CPython 2.7:
 *     SyntaxError: ('invalid syntax', ('/usr/lib64/python2.7/site-packages/jack_functions.py', 222, 25, 'def starts_with(str, with):n'))


Possible fix:
Replace "with" with "_with" at  
/usr/lib64/python2.7/site-packages/jack_functions.py line 222

def starts_with(str, _with):
    "checks whether str starts with with"
    return str[0:len(_with)] == _with
Comment 1 Ben Kohler gentoo-dev 2013-03-22 03:11:11 UTC
3.1.1-r1 fixes this (as of 17 Jun 2010!), let's get it stabilized
Comment 2 Agostino Sarubbo gentoo-dev 2013-03-22 16:18:21 UTC
amd64 stable
Comment 3 Agostino Sarubbo gentoo-dev 2013-03-22 16:21:03 UTC
x86 stable
Comment 4 Agostino Sarubbo gentoo-dev 2013-03-22 17:26:53 UTC
ppc stable
Comment 5 Agostino Sarubbo gentoo-dev 2013-03-23 09:55:46 UTC
ppc64 stable
Comment 6 Agostino Sarubbo gentoo-dev 2013-03-31 09:57:48 UTC
sparc stable. Last arch, closing