Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397815 - net-p2p/deluge-1.3.3 breakage: net-libs/rb_libtorrent-0.15.9 requires the python2 interpreter, but depends on dev-libs/boost-1.47.0-r1 which can be compiled with the python3 interpreter.
Summary: net-p2p/deluge-1.3.3 breakage: net-libs/rb_libtorrent-0.15.9 requires the pyt...
Status: RESOLVED DUPLICATE of bug 382711
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 23:51 UTC by Martijn Schmidt
Modified: 2012-01-06 12:12 UTC (History)
0 users

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


Attachments
Working ~/.config/deluge/gtkui.conf to set deluge-gtk to thin client mode. (gtkui.conf,1.63 KB, text/plain)
2012-01-05 23:54 UTC, Martijn Schmidt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martijn Schmidt 2012-01-05 23:51:51 UTC
Compiling net-p2p/deluge-1.3.3 with dev-lang/python-3.2.2 set as main Python
interpreter results in a deluge-gtk crash at runtime. The UI briefly pops up,
but crashes after just moments.

martijn@martijnlaptop ~ $ deluge-gtk 
/usr/bin/python2.7: symbol lookup error:
/usr/lib64/python2.7/site-packages/libtorrent.so: undefined symbol:
_ZN5boost6python6detail11init_moduleEPKcPFvvE

This crash can be avoided by setting the classic_mode flag to false in
~/.config/deluge/gtkui.conf - I have provided a sample config in the attachments
for your convenience. I can then connect to a remote daemon and the rest of the
application works as normal.

Which leads me to believe that the crash is caused by
net-libs/rb_libtorrent-0.15.9 depending on dev-libs/boost-1.47.0-r1, as the
error message indicates.

Deluge depends on rb_libtorrent, and they both require python2. Rb_libtorrent
depends on boost, which accepts both versions of python - in my case I have
chosen python3. Mixing these is apparently a bad idea.

Could this be solved in an elegant way, or is this an issue that needs to be reported upstream to the rb_libtorrent dev team?

Reproducible: Always

Steps to Reproduce:
1. Use eselect to set your main python interpreter to 3.x

2. emerge =dev-libs/boost =net-libs/rb_torrent =net-p2p/deluge

3. Remove ~/.config/deluge/gtkui.conf in case you've had Deluge installed previously.

4. deluge-gtk from the console so you can view stdout

5. Notice crash due to rb_libtorrent depending on boost.

6. Set the classic_mode flag to false in ~/.config/deluge/gtkui.conf

7. deluge-gtk starts and works properly now, as long as you don't try to start a local daemon.
Actual Results:  
Can't run a deluge daemon locally.

Expected Results:  
Deluge daemon runs as normal, OR it's made clear at buildtime that rb_libtorrent doesn't work with boost linked to python3.

martijn@martijnlaptop ~ $ emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r2, 3.1.6-gentoo x86_64)
=================================================================
System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Mon, 02 Jan 2012 19:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://de-mirror.org/distro/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en nl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apng berkdb branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr embedded emboss encode exif extras fam ffmpeg flac fortran gcrypt gdbm gdu geoip gif gimp gnutls gpm gstreamer gtk handbook iconv icu ieee1394 ipv6 java javascript jpeg kde kipi lcms ldap libnotify lm_sensors lzma lzo mad matroska mmx mmxext mng modules mp3 mp4 mpeg msn mudflap multilib ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pango parcheck pcre pdf phonon pic plasma png policykit ppds pppd python python3 qt3support qt4 raw readline samba scanner sdl session smp sndfile spell sql sqlite sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb v4l2 vorbis webkit wicd wifi x264 xattr xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martijn Schmidt 2012-01-05 23:54:07 UTC
Created attachment 298051 [details]
Working ~/.config/deluge/gtkui.conf to set deluge-gtk to thin client mode.
Comment 2 Martijn Schmidt 2012-01-06 00:03:51 UTC
(In reply to comment #0)
> This crash can be avoided by setting the classic_mode flag to false in
> ~/.config/deluge/gtkui.conf - I have provided a sample config in the
> attachments
> for your convenience. I can then connect to a remote daemon and the rest of the
> application works as normal.

Quick clarification, the crash of rb_libtorrent can't be avoided, but you do circumvent it this way because rb_libtorrent is never called in thin client mode.
Comment 3 Pacho Ramos gentoo-dev 2012-01-06 12:12:33 UTC

*** This bug has been marked as a duplicate of bug 382711 ***