Package: azureus
Version: 2.3.0.6-3
Severity: important
Tags: patch

Hi Shaun,

After upgrading to 2.4.0.2, azureus no longer starts -- it complains of not
being able to find swt-pi-gtk-3139 in java.library.path. (Which is fair:
it's only in my ~/.azureus/ ...)

I realise an updated version of libswt-gtk exists in Debian; regardless, if
the self-updater is to work properly in the future, /usr/bin/azureus should
prefer what it finds in the user's home directory over the system-installed
copy.

Here's a patch to /usr/bin/azureus which fixes the issue for now:

--- /usr/bin/azureus    2006-02-18 21:46:19.000000000 +0000
+++ local/bin/azureus   2006-03-23 13:43:31.000000000 +0000
@@ -6,6 +6,6 @@
        if [ ! -d ~/.Azureus ]; then mkdir ~/.Azureus; fi
        cd ~/.Azureus
 fi
-exec java -Djava.library.path=/usr/lib/jni:/usr/lib \
-       -classpath Azureus2.jar:/usr/share/java/Azureus2.jar:$JARS \
+exec java -Djava.library.path=$PWD:/usr/lib/jni:/usr/lib \
+       -classpath Azureus2.jar:swt.jar:/usr/share/java/Azureus2.jar:$JARS \
        org.gudy.azureus2.ui.swt.Main "$@"

However I'm wondering whether the following would be more appropriate:
namely, prepending CLASSPATH with all .jars found in ~/.azureus.

--- /usr/bin/azureus    2006-02-18 21:46:19.000000000 +0000
+++ local/bin/azureus   2006-03-23 14:00:43.000000000 +0000
@@ -6,6 +6,7 @@
        if [ ! -d ~/.Azureus ]; then mkdir ~/.Azureus; fi
        cd ~/.Azureus
 fi
-exec java -Djava.library.path=/usr/lib/jni:/usr/lib \
-       -classpath Azureus2.jar:/usr/share/java/Azureus2.jar:$JARS \
+USERJARS="`find -maxdepth 1 -name '*.jar' -printf %P:`"
+exec java -Djava.library.path=$PWD:/usr/lib/jni:/usr/lib \
+       -classpath $USERJARS/usr/share/java/Azureus2.jar:$JARS \
        org.gudy.azureus2.ui.swt.Main "$@"

Cheers,
/Liyang

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (80, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages azureus depends on:
ii  libcommons-cli-java       1.0-8          API for working with the command l
ii  liblog4j1.2-java          1.2.13-1       Logging library for java
ii  libseda-java              3.0-3          the Staged Event-Driven Architectu
ii  libswt-gtk-3.1-java       3.1-3          Standard Widget Toolkit for GTK Ja
pn  sun-j2re1.5 | java-virtua <none>         (no description available)
ii  sun-j2sdk1.5 [java2-runti 1.5.0+update06 Java(TM) 2 SDK, Standard Edition, 

Versions of packages azureus recommends:
ii  java-package                  0.27       utility for building Java(TM) 2 re

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to