Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219103 - net-p2p/azureus-3.0.5.2 breaks cli
Summary: net-p2p/azureus-3.0.5.2 breaks cli
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-24 04:41 UTC by Craig Andrews
Modified: 2009-11-09 16:47 UTC (History)
5 users (show)

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


Attachments
patch for /usr/bin/azureus script (azureus.patch,521 bytes, patch)
2008-09-25 01:17 UTC, Michael Andersen
Details | Diff
Fix of /usr/bin/azureus script (azureus.patch,632 bytes, patch)
2008-09-27 15:27 UTC, Michael Andersen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2008-04-24 04:41:39 UTC
After the upgrade to 3.0.5.2, the CLI refuses to start.
In ~/.azureus/gentoo.config, I have the line:
UI="console"
as I've had for a very long time. When I run "azureus", I get usage information instead of azureus starting.

Reproducible: Always

Steps to Reproduce:
1. set UI="console" in ~/.azureus/gentoo.config
2. run "azureus"

Actual Results:  
$ azureus 
using /home/p2p/.azureus/gentoo.config
Usage : java org.gudy.azureus2.cl.Main [parameters] "file.torrent" "save path"
--maxUploads :           Max number of simultaneous uploads
--maxSpeed :             Max upload speed in KBytes/sec

Expected Results:  
Azureus starts in CLI mode.

# emerge --info
Portage 2.1.5_rc6 (default-linux/amd64/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3300+
Timestamp of tree: Wed, 23 Apr 2008 19:45:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.2-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     9999
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch prelink sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"
LDFLAGS="-Wl,--hash-style=both,-z,relro,--enable-new-dtags,-O1,-z,now,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/sunrise /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/openrc /usr/local/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi aiglx alsa amd64 animation apache2 artworkextra asf aspnet2 asyncns authdaemond avahi avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo caps cdda cdparanoia cdr chm cli cracklib crypt cups curl daap dbus dga divx4linux dlloader dpms dri dts dv dvb dvd dvdr dvdread emboss encode exif fam fame fat fbcondecor fbsplash ffmpeg fftw firefox flac foomaticdb fortran freetype gaim gd gdbm geoip gif gimpprint glib glibc-omitfp glitz glut gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 hal hardenedphp hbci howl howl-compat iconv ieee1394 imagemagick imap imlib innodb ipv6 isdnlog java java5 joystick jpeg jpeg2k junit kde kdehiddenvisibility lcms libfame libnotify libsamplerate libusb lirc live lm_sensors lzo mad maildir mdnsresponder-compat midi mikmod mjpeg mmap mmx mmxext mng mono motif mozilla mozsvg mp3 mpeg mpeg2 mplayer mudflap musepack mysql mythtv nautilus ncurses network nls nptl nptlonly ntfs nvidia offensive ofx ogg oggvorbis openexr opengl openmp pam pango pcre pdf pdflib perl pic pie png pnp ppd ppds pppd prelude pulseaudio python qt qt3 qt3support qt4 quicktime rar readline reflection rtc samba sasl screensaver sdl session sharedmem shout snmp sox speex spell spl sqlite sse sse2 ssl suspend2 svg tcpd theora threads tiff transcode truetype truetype-fonts type-fonts unicode unzip upnp ups usb v4l v4l2 vcd videos vorbis webdav webservices wifi wmf wv x264 xanim xcb xine xinerama xml xml2 xorg xpm xprint xrandr xscreensaver xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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 auth_digest proxy proxy_ajp proxy_connect proxy_http" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2008-04-25 11:12:10 UTC
Works fine here:

ConsoleInput: initializing...
Attempting to load aliases from: /home/betelgeuse/.azureus/console.aliases.properties
ConsoleInput: initialized OK
ConsoleInput: starting...
ConsoleInput: started OK
> -----
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2008-04-25 11:16:18 UTC
Please post the output of GJL_DEBUG=1 azureus
Comment 3 Adam Jones 2008-04-25 21:35:13 UTC
(In reply to comment #2)
> Please post the output of GJL_DEBUG=1 azureus
> 

using /home/adam/.azureus/gentoo.config
Calling: gjl --package azureus --get-args --get-vm
Using: 
Running: exec java  -classpath .:/usr/share/bcprov/lib/bcprov.jar:/usr/share/json-simple/lib/json-simple.jar:/usr/share/swt-3.4/lib/swt.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/azureus/lib/Azureus2.jar:/usr/share/commons-cli-1/lib/commons-cli.jar -Djava.library.path=/usr/lib64:/lib:/usr/lib -Dazureus.install.path=/home/adam/.azureus/  org.gudy.azureus2.cl.Main  
Usage : java org.gudy.azureus2.cl.Main [parameters] "file.torrent" "save path"
--maxUploads :           Max number of simultaneous uploads
--maxSpeed :             Max upload speed in KBytes/sec
Comment 4 epitaph 2008-04-28 08:57:53 UTC
(In reply to comment #2)
> Please post the output of GJL_DEBUG=1 azureus
> 

I have the same problem.

using /home/epitaph/.azureus/gentoo.config
Calling: gjl --package azureus --get-args --get-vm
Using:
Running: exec java  -classpath .:/usr/share/bcprov/lib/bcprov.jar:/usr/share/commons-logging/lib/commons-logging.jar:/usr/share/commons-lang/lib/commons-lang.jar:/usr/share/json-simple/lib/json-simple.jar:/usr/share/swt-3.4/lib/swt.jar:/usr/share/log4j/lib/log4j.jar:/usr/share/azureus/lib/Azureus2.jar:/usr/share/commons-cli-1/lib/commons-cli.jar -Djava.library.path=/usr/lib64:/lib:/usr/lib -Dazureus.install.path=/home/epitaph/.azureus/  org.gudy.azureus2.cl.Main
Usage : java org.gudy.azureus2.cl.Main [parameters] "file.torrent" "save path"
--maxUploads :           Max number of simultaneous uploads
--maxSpeed :             Max upload speed in KBytes/sec

emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r2 x86_64 AMD Sempron(tm) Processor 3000+
Timestamp of tree: Mon, 28 Apr 2008 01:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X acpi amd64 apache2 bash-completion bitmap-fonts bzip2 cgi cli commercial console cracklib crypt dlloader emacs fortran gif hpn icq java javascript jpeg kerberos mp3 mpeg msn mysql ncurses nls nptl nptlonly offensive pam pcre pdf perl php png python quicktime readline rrdtool samba sdl server session snmp sockets ssl symlink tcpd tiff truetype-fonts type1-fonts usb vnc xml xorg xulrunner xv zip 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 5 John Koutras 2008-04-28 11:36:57 UTC
I have exactly the same problem.


# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686)
=================================================================
System uname: 2.6.24-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Timestamp of tree: Sun, 27 Apr 2008 23:32:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/nx /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apache2 berkdb bzip2 cli cracklib crypt dri dvdr fortran gdbm gpm hal iconv isdnlog jpeg jpeg2k midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection sdl session spl sse2 ssl tcpd threads truetype unicode vhosts x86 xcb xml xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Simon 2008-06-14 14:56:23 UTC
Have just done some checking into this, because the lack of a console UI (and thus the need to run X in order to have a daemonized Azureus) vastly annoys me.  

The first clue was that it was calling cl.Main, and not the usual console client.  Digging through /usr/bin/azureus dished out this diff:

--
75a76,78
> [[ ${UI} == swt ]] && UI=ui.swt
> [[ ${UI} == console ]] && UI=cl
> 
78c81
< gjl_main="org.gudy.azureus2.ui.common.Main"
---
> gjl_main="org.gudy.azureus2.${UI}.Main"
80d82
< gjl_pkg_args="--ui=${UI}"

--
Essentially, if you set the client to use UI = console, it's going to use UI=cl instead.  I don't know why you'd do this; CL is some sort of single file downloader.  I assume whoever patched the azureus loader must've chosen cl because a ui.cl.Main exists; there is no ui.console.Main in 3.0.5.2.

Anyway, it's 3am where I am now so I'm off to sleep, but hopefully this sets someone more familiar with Azureus than I am on the right track to finding a solution :).
Comment 7 Craig Andrews gentoo-dev 2008-08-18 16:40:52 UTC
I just upgraded to net-p2p/azureus-3.1.1.0 and this problem still exists.
Comment 8 epitaph 2008-08-21 14:55:53 UTC
(In reply to comment #7)
> I just upgraded to net-p2p/azureus-3.1.1.0 and this problem still exists.
> 

Same here.
Comment 9 John J. Aylward 2008-09-08 20:53:09 UTC
I have the same problem on 3.1.1.0
Comment 10 Craig Andrews gentoo-dev 2008-09-09 03:58:03 UTC
I (finally) filed the bug upstream:
http://sourceforge.net/tracker/index.php?func=detail&aid=2101341&group_id=84122&atid=575154
Comment 11 Michael Andersen 2008-09-25 01:10:52 UTC
Hi,

I got this working by using the /usr/bin/azureus script from the 3.0.2.4-r1 build. It's a workaround until somone fixes the ebuild (or whatever has to be done).

I have no idea why it was changed to begin with, but using the old script allowed me to run 3.1.1.0.

On a side note:

I normally use the init script from http://gentoo-wiki.com/Azureus but this requires setting JAVA_OPTIONS to a specific string in the gentoo.config file in the azureus home dir.

After upgrading and replacing the azureus script with the old one, I could run azureus from the console, but my init script stopped working (somehow java gets killed somewhere after writing the pid file) - so I cleared the JAVA_OPTIONS (empty string), and switched to the other init file from that wiki (the screen way), and that works for me :)

Hope it helps someone.
Comment 12 Michael Andersen 2008-09-25 01:17:18 UTC
Created attachment 166347 [details, diff]
patch for /usr/bin/azureus script

Continued from my previous post...

I made a small patch to revert the azureus script to the old version.
Comment 13 Michael Andersen 2008-09-27 15:26:04 UTC
Comment on attachment 166347 [details, diff]
patch for /usr/bin/azureus script

fixes cli, but breaks gui
Comment 14 Michael Andersen 2008-09-27 15:27:51 UTC
Created attachment 166599 [details, diff]
Fix of /usr/bin/azureus script

This time my patch should make it work for either console or GUI
Comment 15 Craig Andrews gentoo-dev 2008-09-28 01:57:18 UTC
The patch works great! Thanks so much - now let's get this into portage :-)
Comment 16 epitaph 2008-09-30 10:45:37 UTC
(In reply to comment #14)
> Created an attachment (id=166599) [edit]
> Fix of /usr/bin/azureus script
> 
> This time my patch should make it work for either console or GUI
> 

thank you! excellent work.
Comment 17 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-11-02 20:28:15 UTC
Fixed in 4.0.0.2 and also 3.1.1.0-r1