Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458682 - media-tv/xbmc xbmc-send script is incompatible with python3, needs python_convert_shebangs
Summary: media-tv/xbmc xbmc-send script is incompatible with python3, needs python_con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xbox project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 03:28 UTC by Ben Kohler
Modified: 2013-04-20 17:20 UTC (History)
1 user (show)

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


Attachments
xbmc-12.0.ebuild.patch (xbmc-12.0.ebuild.patch,404 bytes, patch)
2013-02-22 03:28 UTC, Ben Kohler
Details | Diff
xbmc-12.1.ebuild.patch (xbmc-12.1.ebuild.patch,1.68 KB, patch)
2013-04-01 20:29 UTC, Ben Kohler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.