Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 153528

Summary: New package: dev-python/python-libtorrent
Product: Gentoo Linux Reporter: Raúl Porcel (RETIRED) <armin76>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: brebs, bruce, lucamarturana
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
URL: http://code.google.com/p/python-libtorrent/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 148667    
Bug Blocks: 153543    
Attachments: python-libtorrent-0.3.0.ebuild
python-libtorrent-0.4.0.ebuild

Description Raúl Porcel (RETIRED) gentoo-dev 2006-10-31 02:48:33 UTC
python-libtorrent: python bindings for rb_libtorrent, at bug 148667.

On sunrise:

http://www.gentoo-sunrise.org/sunrise/browser/sunrise/dev-python/python-libtorrent
Comment 1 Paul Bredbury 2006-11-04 04:10:31 UTC
Created attachment 101211 [details]
python-libtorrent-0.3.0.ebuild

Fixes boost version requirement.
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2006-11-05 05:04:03 UTC
(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.
Comment 3 Paul Bredbury 2006-11-05 05:47:34 UTC
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.
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2006-11-05 13:35:20 UTC
(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.

Comment 5 Luca Marturana 2006-11-09 13:22:51 UTC
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?
Comment 6 Paul Bredbury 2006-11-09 13:55:48 UTC
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
Comment 7 Luca Marturana 2006-11-11 12:19:25 UTC
(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.
Comment 8 Nathan Caldwell 2006-11-21 15:25:09 UTC
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.
Comment 9 Paul Bredbury 2006-11-30 09:29:26 UTC
Created attachment 103045 [details]
python-libtorrent-0.4.0.ebuild

Added USE flags check.
Comment 10 Paul Bredbury 2007-02-18 15:48:37 UTC
Comment on attachment 103045 [details]
python-libtorrent-0.4.0.ebuild

Obsoleted, in favour of the ebuild on Sunrise.
Comment 11 Raúl Porcel (RETIRED) gentoo-dev 2007-03-16 14:52:11 UTC
Marking as WONTFIX, as i'll add deluge-0.5.0_rc2 to the tree and it doesn't need this.