Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 417429

Summary: 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/', 222, 25, 'def starts_with(str, with):n'))
Product: Gentoo Linux Reporter: Iftikhar Rathore <iftikhar.rathore>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Severity: major CC: bkohler, zerochaos
Priority: Normal Keywords: STABLEREQ
Version: 10.1   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

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/', 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/', 222, 25, 'def starts_with(str, with):n'))

Possible fix:
Replace "with" with "_with" at  
/usr/lib64/python2.7/site-packages/ 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