Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182816 - >=net-p2p/rtorrent-0.7.6 xmlrpc support
Summary: >=net-p2p/rtorrent-0.7.6 xmlrpc support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Peter Alfredsen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-21 20:00 UTC by Łukasz Michalik
Modified: 2008-08-06 18:22 UTC (History)
14 users (show)

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


Attachments
Proposed ebuild. (rtorrent-0.7.5.ebuild,1.55 KB, text/plain)
2007-06-21 20:01 UTC, Łukasz Michalik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Michalik 2007-06-21 20:00:31 UTC
New {lib,r}torrent released. As to libtorrent there's no change (that I know of) in the build process, rtorrent now has the optional xmlrcp support, and the bug 151221 is not a case in this version, so the flag -O2 -> -O3 replacement becomes obsolete.
Comment 1 Łukasz Michalik 2007-06-21 20:01:40 UTC
Created attachment 122724 [details]
Proposed ebuild.
Comment 2 Gabriel Devenyi 2007-06-28 01:28:50 UTC
Reference for release
http://rakshasa.no/pipermail/libtorrent-devel/2007-June/001180.html
Comment 3 Gerald 2007-07-09 17:13:35 UTC
Compiles fine and (seems to) work fine for me on amd64 - both the new rtorrent script and the renamed libtorrent.
Comment 4 Vladimir Rusinov 2007-07-25 07:31:33 UTC
From http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide:
"What you need:

    * http://python.ca/scgi/ for Apache, Lighttpd should have this built-in.
    * http://xmlrpc-c.sourceforge.net/ 1.00 or later, 1.07 or later for 64bit integer support.
    * rtorrent 0.7.5 or later. "

So, I think we should make something like
xmlrpc? (
        !amd64? (>=dev-libs/xmlrpc-c-1.00)
        amd64? (>=dev-libs/xmlrpc-c-1.007)
)

with RDEPEND.

Also, I suggest add some note about scgi.

Sorry, if I'm not right.

PS: both rtorrent 0.7.5 & libtorrent 0.11.5 forks fine for me (x86).
xmlprc support not yet tested
Comment 5 Avuton Olrich 2007-08-03 10:35:49 UTC
rtorrent 0.7.6 & libtorrent 0.11.6 out now.
Comment 6 Simon Arlott 2007-08-04 12:37:12 UTC
The ebuilds are missing econf $(use_enable ipv6).
Comment 7 Bailey Kong 2007-08-21 17:19:27 UTC
rtorrent 0.7.7 and libtorrent 0.11.7 are out now.
Comment 8 Kalidarn 2007-08-21 22:11:27 UTC
not as stable upstream versions.

Stable Release

    * libtorrent-0.11.6.tar.gz
    * rtorrent-0.7.6.tar.gz 

Unstable Release

Renamed all commands from e.g "get_d_*" to "d.get_*". Removed support for appending multiple arguments to a 'schedule' command, it must now be quoted, e.g 'schedule=foo,5,5,"print=foo,bar"'. Remember to update your rc file.

    * libtorrent-0.11.7.tar.gz
    * rtorrent-0.7.7.tar.gz
Comment 9 Gerald 2007-08-25 01:16:14 UTC
rtorrent 0.7.6 (attached ebuild) + libtorrent 0.11.6 (renamed ebuild)
work fine here on amd64. Would be nice to see this update in portage.
Comment 10 Łukasz Michalik 2007-09-06 08:48:49 UTC
> The ebuilds are missing econf $(use_enable ipv6).
Well, viewing the code proves that INET6 support introduces almost no overhead, so as there's no problems (?) with it enabled by default, IMO it should be left as is. 

> amd64? (>=dev-libs/xmlrpc-c-1.07)
Sure, when I was modifing the ebuild I wasn't aware of it.

> I suggest add some note about scgi.
Most certanly yes. Current one provides info like `rtorrent now supports a configuration file', so it is indeed outdated.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2007-09-09 11:03:48 UTC
rtorrent in tree is at 0.7.8..
Comment 12 Łukasz Michalik 2007-09-19 09:24:14 UTC
From rtorrent-0.7.8.ebuild: `--disable-xmlrpc-c: I want to keep it disabled while >=dev-libs/xmlrpc-c-1.07 is masked'.  Supposedly that version is needed for amd64, so `amd64? (>=dev-libs/xmlrpc-c-1.07)', or no amd64 KEYWORD at all might suffice. Anyways good something has moved.
Comment 13 Thomas Green 2007-11-09 21:09:09 UTC
For what it's worth, I have been using the ebuild attached to this bug (renamed for rtorrent-0.7.9) in conjunction with dev-libs/xmlrpc-c-1.06.09 on a amd64 machine for over a week now and everything has worked fine.

So, I am skeptical about a requirement of >=dev-libs/xmlrpc-c-1.07 for the amd64 architecture as I have been making use of the xmlrpc interface constantly (via wTorrent[1]) and it hasn't failed me yet.

[1] http://canbruixa.homelinux.net/wt/
Comment 14 Łukasz Michalik 2007-11-11 18:29:57 UTC
Further digging shows that 64 integer support has nothing to do with arch.  1.07 is needed for 64 bit results.  Therefor output for torrents with size bigger than 2^31-1 bytes (approx. 2.1GB) is wrong/false with <1.07.  I am not sure if that's the developer's reasoning to disable the feature completly.
Comment 15 Morten Lied Johansen 2007-11-13 08:35:02 UTC
Regardless of which xmlrpc-c version is needed for 64bit, could those of us not running 64bit get the xmlrpc support?

I would suggest using a USE flag for xmlrpc, and then require the correct version of xmlrpc-c for the architecture you're running on.
Comment 16 Luca Lesinigo 2008-01-10 11:12:12 UTC
I can at least confirm that xmlrpc-c < 1.07 doesn't do 64bit integers onn 64bit archs. I'm in that case and I get (signed) numbers wrapped at 2G to -2G when using rtgui to manage my rtorrent through xmlrpc-c-1.06.09.
It should really be independent from the arch.
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2008-05-31 12:23:57 UTC
Err.. is there something we still need to change for rtorrent-0.8.2.ebuild ?
Comment 18 Luca Lesinigo 2008-05-31 16:03:18 UTC
The xmlrpc-c issue is independent from rtorrent, and the misaligned accesses on HPPA (and possibly other 64bit archs) aren't, as far as I know, anything that could be solved in the ebuild but needs upstream attention.
So nothing to be done in the ebuild as far as I know.
Comment 19 Luca Lesinigo 2008-06-16 07:54:22 UTC
After upgrading to:
 * dev-libs/xmlrpc-c-1.14.07
 * net-libs/libtorrent-0.12.2-r2
 * net-p2p/rtorrent-0.8.2-r2

everything is working fine on HPPA. It even shows correct file sizes in rtGui (a web interface working through xmlrpc - see bug #182816)
Comment 20 Luca Lesinigo 2008-06-16 07:55:57 UTC
(In reply to comment #19)
> (see bug #182816)
Please ignore the circular reference :)
Comment 21 Peter Alfredsen (RETIRED) gentoo-dev 2008-08-06 18:22:29 UTC
rtorrent-0.8.2-r3 has xmlrpc support. Unaligned accesses adressed also. If you use xmlrpc-c-1.14.07 (Which I will promptly make multlib-strict), you will get 64-bit integer support. Closing.