python-libtorrent: python bindings for rb_libtorrent, at bug 148667. On sunrise: http://www.gentoo-sunrise.org/sunrise/browser/sunrise/dev-python/python-libtorrent
Created attachment 101211 [details] python-libtorrent-0.3.0.ebuild Fixes boost version requirement.
(In reply to comment #1) > Created an attachment (id=101211) [edit] > python-libtorrent-0.3.0.ebuild > > Fixes boost version requirement. > Hm...i prefer this to work with stable versions. The library compiles when specifying the boost prefix and everything. After r1 becomes stable(i guess in about a month) then we can modify the dep.
Does your boost-1.33.1 provide /usr/lib/libboost_thread.so? Mine (on x86) didn't, when compiled with the "threads" USE flag. So I needed boost-1.33.1-r1 instead, which *did* provide libboost_thread.so. Otherwise, python-libtorrent-0.3.0 did not compile.
(In reply to comment #3) > Does your boost-1.33.1 provide /usr/lib/libboost_thread.so? Mine (on x86) > didn't, when compiled with the "threads" USE flag. So I needed boost-1.33.1-r1 > instead, which *did* provide libboost_thread.so. Otherwise, > python-libtorrent-0.3.0 did not compile. > Right, you are completely right. I remember that i linked manually the lib sometime ago. My fault.
On my machine python-libtorrent doesn't compile, this is the output: i686-pc-linux-gnu-g++ -pthread -shared -O2 -march=pentium4 -fomit-frame-pointer -pipe -momit-leaf-frame-pointer build/temp.linux-i686-2.4/alert.o build/temp.linux-i686-2.4/identify_client.o build/temp.linux-i686-2.4/storage.o build/temp.linux-i686-2.4/allocate_resources.o build/temp.linux-i686-2.4/ip_filter.o build/temp.linux-i686-2.4/torrent.o build/temp.linux-i686-2.4/bt_peer_connection.o build/temp.linux-i686-2.4/peer_connection.o build/temp.linux-i686-2.4/torrent_handle.o build/temp.linux-i686-2.4/entry.o build/temp.linux-i686-2.4/piece_picker.o build/temp.linux-i686-2.4/torrent_info.o build/temp.linux-i686-2.4/escape_string.o build/temp.linux-i686-2.4/policy.o build/temp.linux-i686-2.4/tracker_manager.o build/temp.linux-i686-2.4/file.o build/temp.linux-i686-2.4/session.o build/temp.linux-i686-2.4/udp_tracker_connection.o build/temp.linux-i686-2.4/sha1.o build/temp.linux-i686-2.4/web_peer_connection.o build/temp.linux-i686-2.4/http_tracker_connection.o build/temp.linux-i686-2.4/stat.o build/temp.linux-i686-2.4/python-libtorrent.o -lboost_filesystem -lboost_date_time -lboost_program_options -lboost_regex -lboost_serialization -lboost_thread -lz -lpthread -o build/lib.linux-i686-2.4/torrent.so /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lboost_filesystem collect2: ld returned 1 exit status error: command 'i686-pc-linux-gnu-g++' failed with exit status 1 I'm using the ebuild found on sunrise overlay and I tried with boost-1.33.1 and boost-1.33.1-r1 with the same results. Any hint?
emerge boost-1.33.1-r1 with its "threads" USE flag, then "equery files boost | grep filesystem | wc -l" produces 17 for me, including: /usr/lib/libboost_filesystem.a /usr/lib/libboost_filesystem.so /usr/lib/libboost_filesystem.so.1.33.1
(In reply to comment #6) > emerge boost-1.33.1-r1 with its "threads" USE flag, then "equery files boost | > grep filesystem | wc -l" produces 17 for me, including: > > /usr/lib/libboost_filesystem.a > /usr/lib/libboost_filesystem.so > /usr/lib/libboost_filesystem.so.1.33.1 > I now use 1.33.1-r1 with USE="doc threads threadsonly -bcp -bjam -debug -pyste" But the error still remain.
There really should be a check it boost was built_with_use threads. As it stands there's no way of knowing that boost needs to have threads enabled before you compile python-libtorrent.
Created attachment 103045 [details] python-libtorrent-0.4.0.ebuild Added USE flags check.
Comment on attachment 103045 [details] python-libtorrent-0.4.0.ebuild Obsoleted, in favour of the ebuild on Sunrise.
Marking as WONTFIX, as i'll add deluge-0.5.0_rc2 to the tree and it doesn't need this.