Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266682 - net-p2p/deluge-1.1.6 either uses bundled libs or has automagical dependencies
Summary: net-p2p/deluge-1.1.6 either uses bundled libs or has automagical dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
: 257203 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-18 19:24 UTC by Rafał Mużyło
Modified: 2010-03-06 18:24 UTC (History)
4 users (show)

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


Attachments
added rb_libtorrent dep (deluge-1.1.7-r1.ebuild,1.54 KB, text/plain)
2009-05-20 16:45 UTC, Eric Smith
Details
deluge-1.1.9-r1.ebuild with rb_litorrent dep (deluge-1.1.9-r1.ebuild,1.48 KB, text/plain)
2009-07-11 20:03 UTC, Eric Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2009-04-18 19:24:58 UTC
From ${S}/setup.py:
build_libtorrent = True
try:
    import libtorrent
except ImportError:
    build_libtorrent = True
else:
    if libtorrent.version_major == 0 and libtorrent.version_minor == 14:
        build_libtorrent = False

that's a reference to net-libs/rb_libtorrent and it indirectly adresses
bug 182324 (perhaps even bug 257203).
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2009-04-20 17:04:20 UTC
So whats the fix here?
Comment 2 Rafał Mużyło 2009-04-20 17:36:00 UTC
Good question.
If you do want to fix it, it's probably
adding a net-libs/rb_libtorrent[python] dep
(and - automatically - net-libs/libtorrent block)
to the ebuild.
Comment 3 ~S 2009-05-18 11:35:48 UTC
excuse me, i didn't get what you said (plain English please :P )
anyways, what I tried is this

$ emerge -av1 libtorrent

libtorrent installed

$ emerge -av deluge

same crappy loooooooong error


ERROR: net-p2p/deluge-1.1.7 failed.
Call stack:
              ebuild.sh, line   49:  Called src_compile
            environment, line 2845:  Called distutils_src_compile
            environment, line  814:  Called die
The specific snippet of code:
      ${python} setup.py build "$@" || die "compilation failed"
 The die message:
  compilation failed


now i try this

$ USE="expat tools" emerge -av boost

boost is reinstalled

now i try my luck again

$ emerge -av deluge

woila! deluge emerges safely!!!
now i try to run it and see if it works
tada!! its working !!!

so if i am correct
to compile deluge, you need libtorrent and/or boost with tools (and/or expat) flag

i am thoroughly confused now
but i am just happy that the damn app works!

~S
Comment 4 Eric Smith 2009-05-20 16:45:30 UTC
Created attachment 191910 [details]
added rb_libtorrent dep

You're right. Deluge should definitely be using the system libtorrent instead of the builtin.  I just tried adding the dependency to the 1.1.7 ebuild and it worked! :)  Unfortunately, deluge depends on rb_libtorrent-0.14*, which is still package masked in portage.  Hopefully, it will be stabilized soon.
Comment 5 ~S 2009-05-20 17:14:51 UTC
kindly elaborate
what part of wacky solution is correct??
i mean, does it require libtorrent
or does it work without it?

should one set tools and/or expat flag for boost in order to compile deluge?
how about runtime dependecies??

thanks for your confirmation
if you think the dependencies of libtorrent and/or boost can be resolved, can you try out new ebuild with correct boost dependencies?

~S
Comment 6 Eric Smith 2009-05-20 17:39:11 UTC
(In reply to comment #5)
> kindly elaborate
> what part of wacky solution is correct??
> i mean, does it require libtorrent
> or does it work without it?
> 
> should one set tools and/or expat flag for boost in order to compile deluge?
> how about runtime dependecies??
> 
> thanks for your confirmation
> if you think the dependencies of libtorrent and/or boost can be resolved, can
> you try out new ebuild with correct boost dependencies?
> 
> ~S
> 

Well I do not have the "tools" or "expat" flag set for boost and everything is working fine.  I'm not exactly sure what you want me to test..

The idea of adding the rb_libtorrent dependency to deluge is that if deluge does not detect that one is installed, it will build its own built-in version of rb_libtorrent.  By installing rb_libtorrent ourselves, we avoid deluge building its built-in version.  This is the preferred Gentoo way of doing things and may also fix some the boost problems.

Comment 7 Eric Smith 2009-05-20 18:44:04 UTC
Also to add to my comment about boost: it must be built with the "python" use flag, but of course rb_libtorrent[python] should require that, see bug 270608.
Comment 8 Eric Smith 2009-07-11 20:03:58 UTC
Created attachment 197583 [details]
deluge-1.1.9-r1.ebuild with rb_litorrent dep

Updated the deluge ebuild to the latest version and added the rb_libtorrent dep, so that it builds from the system rb_libtorrent instead of the deluge packaged version.

Now that rb_libtorrent-0.14 has been unmasked in portage, deluge should now use it.
Comment 9 Ben de Groot (RETIRED) gentoo-dev 2009-08-15 23:37:55 UTC
(In reply to comment #8)
> Now that rb_libtorrent-0.14 has been unmasked in portage, deluge should now
> use it.

Indeed it should! <poking maintainers>

Comment 10 Sebastian Luther (few) 2009-10-26 20:24:00 UTC
*** Bug 257203 has been marked as a duplicate of this bug. ***
Comment 11 Fabiano Francesconi 2009-11-18 20:05:10 UTC
It happens again.

dev-libs/boost[eselect -doc -expat -icu -mpi -python -test -tools]
net-p2p/deluge[-gtk -libnotify]


./libtorrent/bindings/python/src/extensions.cpp:13:28: error: boost/python.hpp: No such file or directory
In file included from ./libtorrent/bindings/python/src/extensions.cpp:14:
./libtorrent/bindings/python/src/gil.hpp:8:43: error: boost/python/make_function.hpp: No such file or directory
./libtorrent/bindings/python/src/gil.hpp:9:41: error: boost/python/def_visitor.hpp: No such file or directory
./libtorrent/bindings/python/src/gil.hpp:10:39: error: boost/python/signature.hpp: No such file or directory
In file included from ./libtorrent/bindings/python/src/extensions.cpp:14:
./libtorrent/bindings/python/src/gil.hpp:27: error: ISO C++ forbids declaration o

and so on..

Now I'm trying to rebuild boost with python useflag.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2010-03-04 13:59:30 UTC
So, this is fixed then?

deluge-1.2.0.ebuild:    >=net-libs/rb_libtorrent-0.14.5[python]
deluge-1.2.0_rc5.ebuild:        >=net-libs/rb_libtorrent-0.14.5[python]
deluge-1.2.1.ebuild:    >=net-libs/rb_libtorrent-0.14.9[python]
deluge-9999.ebuild:     >=net-libs/rb_libtorrent-0.14.5[python]
Comment 13 Rafał Mużyło 2010-03-04 14:14:06 UTC
(In reply to comment #12)
> So, this is fixed then?
> 
So it seems.