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

Bug 458682

Summary: media-tv/xbmc xbmc-send script is incompatible with python3, needs python_convert_shebangs
Product: Gentoo Linux Reporter: Ben Kohler <bkohler>
Component: Current packagesAssignee: Gentoo Xbox project <xbox>
Status: RESOLVED FIXED    
Severity: normal CC: python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: xbmc-12.0.ebuild.patch
xbmc-12.1.ebuild.patch

Description Ben Kohler gentoo-dev 2013-02-22 03:28:51 UTC
Created attachment 339668 [details, diff]
xbmc-12.0.ebuild.patch

XBMC's xbmc-send script (/usr/bin/xbmc-send) to send events to a running XBMC, does not work properly when python3.x is the system default:

# eselect python set python3.2
# xbmc-send --action="UpdateLibrary(video)"
  File "/usr/bin/xbmc-send", line 32
    print "xbmc-send [OPTION] --action=ACTION"
                                             ^
SyntaxError: invalid syntax
# eselect python set python2.7
# xbmc-send --action="UpdateLibrary(video)"
Sending action: UpdateLibrary(video)
#

This affects all versions in the tree, as far as I can tell.  Simple ebuild patch attached.
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2013-03-31 15:15:20 UTC
Might be easier to migrate for python-r1 too.
Comment 2 Ben Kohler gentoo-dev 2013-04-01 20:29:47 UTC
Created attachment 343998 [details, diff]
xbmc-12.1.ebuild.patch

Ebuild patch for conversion to python-single-r1 eclass, thanks to hasufell for some tips in #g-dev-help
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-20 17:20:26 UTC
Fixed in cvs thanks for the patch.