Created attachment 303535 [details] tribler-5.5.18.ebuild First tribler has been updated to 5.5.18 and deserve a bump. But adding to this, when python2 is not the default python interpreter, tribler is broken, since it's a python2 only app. So making some modifications to the ebuild (shebang conversion and altering the startup script), it can run fine using the python2 interpreter even if python3 is the default selected python interpreter. See attached the ebuild (for 5.5.18) that fixes the installation issue and shebang conversion when python2 is not the default. Basically, it adds a python_set_active_version directive and a python_convert_shebang. Follow the modified tribler-log2homedir.patch invoking "python2" instead of "python". Thanks !
Created attachment 303537 [details, diff] tribler-log2homedir.patch updated tribler-log2homedir.patch patch
Comment on attachment 303535 [details] tribler-5.5.18.ebuild --- tribler-5.5.10-r1.ebuild 2012-02-14 21:40:40.000000000 +0100 +++ - 2012-02-27 21:30:13.541599891 +0100 @@ -34,6 +34,11 @@ S=${WORKDIR} +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + src_unpack() { unpack ${A} unpack ./data.tar.gz @@ -42,6 +47,8 @@ src_prepare() { epatch "${FILESDIR}/${PN}-fix-global-declarations.patch" epatch "${FILESDIR}/${PN}-log2homedir.patch" + + python_convert_shebangs -r 2 . } src_compile() { :; }
Okay its in the tree.