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).
So whats the fix here?
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.
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
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.
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
(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.
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.
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.
(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>
*** Bug 257203 has been marked as a duplicate of this bug. ***
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.
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]
(In reply to comment #12) > So, this is fixed then? > So it seems.