Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179384 - net-p2p/tribler ebuild request
Summary: net-p2p/tribler ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Anthony Basile
URL: http://www.tribler.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 05:46 UTC by Martin Böcher
Modified: 2012-02-14 20:21 UTC (History)
7 users (show)

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


Attachments
Tribler ebuild (tribler-4.1.7.ebuild,1.83 KB, text/plain)
2008-01-11 19:45 UTC, Sergio D. Rodríguez Inclan
Details
Tribler ebuild (tribler-4.1.7.ebuild,1.72 KB, text/plain)
2008-01-13 21:19 UTC, Sergio D. Rodríguez Inclan
Details
files/tribler (tribler,102 bytes, text/plain)
2012-02-09 17:49 UTC, Ștefan Talpalaru
Details
tribler-9999.ebuild (tribler-9999.ebuild,811 bytes, text/plain)
2012-02-09 17:52 UTC, Ștefan Talpalaru
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Böcher 2007-05-22 05:46:23 UTC
ebuild for tribler wanted.

Reproducible: Always
Comment 1 Raphael 2007-06-09 21:53:31 UTC
Useless though this is.. I second the vote :)

Raphael
Comment 2 Sergio D. Rodríguez Inclan 2008-01-11 19:45:55 UTC
Created attachment 140735 [details]
Tribler ebuild

I made this ebuild for tribler-4.1.7 but is far for being completely functional since the python bindings problem detailed here http://bugs.gentoo.org/show_bug.cgi?id=146884 so the internal player controls  will be useless but the torrent client is working; actually I'm testing the bindings from the Videolan SVN. I tested the ebuild on ~amd64 and ~x86 archs, it seems to be stable except after several installations, plz send comments.

Thanks.
Comment 3 Sergio D. Rodríguez Inclan 2008-01-13 21:19:25 UTC
Created attachment 140897 [details]
Tribler ebuild

Added desktop entry and use the provided tribler.sh.
Comment 4 Sergio D. Rodríguez Inclan 2008-01-15 11:15:56 UTC
Now tribler is in the sunrise overlay: http://overlays.gentoo.org/proj/sunrise/browser/reviewed/net-p2p/tribler
Comment 5 Pablo Montepagano 2008-10-30 20:29:16 UTC
Can anyone do the version bump to 4.5.0?
Comment 6 vp 2008-11-03 12:33:55 UTC
VLC is not a hard requirement for tribler. in the preferences there is an option to set vlc (or any other video player) but otherwise it doesn't require vlc to work.
Comment 7 Mizery De Aria 2012-02-08 16:59:29 UTC
Is there any progress on updating the ebuild for this in light of http://torrentfreak.com/tribler-makes-bittorrent-impossible-to-shut-down-120208/
Comment 8 Ștefan Talpalaru 2012-02-09 17:49:52 UTC
Created attachment 301411 [details]
files/tribler
Comment 9 Ștefan Talpalaru 2012-02-09 17:52:32 UTC
Created attachment 301413 [details]
tribler-9999.ebuild

tribler-9999.ebuild - live ebuild because the sourceforge mirror is no longer up to date and the tribler site is reduced to a simple download page with no link to a source archive for 5.5.10 .

The previously attached files/trible script is needed to launch this poorly packaged piece of software.
Comment 10 Anthony Basile gentoo-dev 2012-02-10 11:55:18 UTC
I just noticed this bug after adding an ebuild I wrote from scratch to the tree.  I used the debian package rather than pulling from svn with some other differences.  stefan et al., please look at how I did things and feel free to be critical of the different approach.  The only thing I feel strongly about is not using svn.
Comment 11 Ștefan Talpalaru 2012-02-10 12:13:30 UTC
Anthony, you're right about using the deb instead of SVN to get a stable package.

The startup script bundled in the debian package creates a log file in /tmp. We should probably document or change that.

If I understood correctly, the common practice for python packages is to generate the bytecode at install time with python_mod_optimize and remove it during uninstall with python_mod_cleanup. these functions are in the 'python' eclass which also provides a better way to specify python version dependencies with PYTHON_DEPEND.

For the other required packages:
- openssl doesn't need a version specified since the oldest one available in portage is 0.9.8r
- idem for apsw (3.7.6.2.1), m2crypto (0.21.1), wxpython (2.8.11.0 but we might need the '2.8' slot there)
- vlc is an optional dependency which I haven't tested. How about a use flag for it?
Comment 12 Anthony Basile gentoo-dev 2012-02-11 17:46:18 UTC
(In reply to comment #11)

Okay rather than polute the tree, I put the updated ebuild on my overlay.  When we're all happy, I'll move it to the tree:

http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=tree;f=net-p2p/tribler;h=956643d8dd87b7288c789702b0b5b0e89dd48404;hb=615f0e2133027f267285cd3cb8814b149dac5681

> The startup script bundled in the debian package creates a log file in /tmp. We
> should probably document or change that.

Thanks! Patch ${FILESDIR}/tribler-log2homedir.patch move the log file from /tmp to $HOME/.Tribler/tribler.log.  I did find other logging to /tmp at

   Main/Build/Ubuntu/tribler.sh           <- this is installed to /usr/bin/tribler
   Player/Build/Ubuntu/swarmplayer.sh
   Transport/bgprocess/bgprocessd
   Transport/bgprocess/swarmengined

but the last three are not installed, so I didn't touch those.

> 
> If I understood correctly, the common practice for python packages is to
> generate the bytecode at install time with python_mod_optimize and remove it
> during uninstall with python_mod_cleanup. these functions are in the 'python'
> eclass which also provides a better way to specify python version dependencies
> with PYTHON_DEPEND.
> 

Yes and I added that.  Since I was working off the .deb I didn't think of generating the .py[co], but it worked.   The tribler team seems to have been working with 2.4 and 2.5.  I tested python 2.6 and 2.7.  With 2.7 there were a couple of syntax problems with the new use of global's, so patch ${FILESDIR}/tribler-fix-global-declarations.patch addresses that.


> For the other required packages:
> - openssl doesn't need a version specified since the oldest one available in
> portage is 0.9.8r
> - idem for apsw (3.7.6.2.1), m2crypto (0.21.1), wxpython (2.8.11.0 but we might
> need the '2.8' slot there)

If you know the versions (the readme gives them), its better to put them in.  You're just thinking of the main portage tree, but people add all sorts of overlays.

> - vlc is an optional dependency which I haven't tested. How about a use flag
> for it?

Done. vlc flag is in.



Thanks Stefan!
Comment 13 Anthony Basile gentoo-dev 2012-02-14 20:21:59 UTC
Okay this is moving to the tree.  I'm closing this bug (request for tribler ebuild) is done, so I'm closing it resolved.  If there are other issues, please open a new bug.