Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35556 - new package net-p2p/azureus java bit-torrent client
Summary: new package net-p2p/azureus java bit-torrent client
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on: 44331
Blocks:
  Show dependency tree
 
Reported: 2003-12-10 14:33 UTC by Jeremy Huddleston (RETIRED)
Modified: 2004-03-13 18:02 UTC (History)
3 users (show)

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


Attachments
net-p2p/azureus/azureus-2.0.4.2.ebuild (azureus-2.0.4.2.ebuild,1.43 KB, text/plain)
2003-12-10 14:34 UTC, Jeremy Huddleston (RETIRED)
Details
net-p2p/azureus/files/azureus-2.0.4.2-gentoo.patch (azureus-2.0.4.2-gentoo.patch,2.46 KB, text/plain)
2003-12-10 14:35 UTC, Jeremy Huddleston (RETIRED)
Details
net-p2p/azureus-bin/azureus-bin-2.0.6.0.ebuild (azureus-bin-2.0.6.0.ebuild,1.63 KB, text/plain)
2004-01-03 10:53 UTC, Jeremy Huddleston (RETIRED)
Details
net-p2p/azureus-bin/files/azureus-bin-2.0.6.0-gentoo.patch (azureus-bin-2.0.6.0-gentoo.patch,1.89 KB, text/plain)
2004-01-03 10:54 UTC, Jeremy Huddleston (RETIRED)
Details
net-p2p/azureus-bin/files/azureus-bin-2.0.7.0a-gentoo.patch (azureus-bin-2.0.7.0a-gentoo.patch,2.43 KB, patch)
2004-02-22 23:07 UTC, Andy Daniels
Details | Diff
net-p2p/azureus-bin/azureus-bin-2.0.7.0a.ebuild (azureus-bin-2.0.7.0a.ebuild,2.42 KB, text/plain)
2004-02-22 23:12 UTC, Andy Daniels
Details
azureus-bin/azureus-bin-2.0.7.0a.ebuild (azureus-bin-2.0.7.0a.ebuild,2.50 KB, text/plain)
2004-02-24 02:01 UTC, Jeremy Huddleston (RETIRED)
Details
net-p2p/azureus-bin/azureus-bin-2.0.7.1_pre20040224.ebuild (azureus-bin-2.0.7.1_pre20040224.ebuild,3.13 KB, text/plain)
2004-02-24 02:02 UTC, Jeremy Huddleston (RETIRED)
Details
azureus-bin/files/azureus-bin-2.0.7.0a-gentoo.patch (azureus-bin-2.0.7.0a-gentoo.patch,2.86 KB, text/plain)
2004-02-24 02:02 UTC, Jeremy Huddleston (RETIRED)
Details
azureus-bin/files/azureus-bin-Makefile.patch (azureus-bin-Makefile.patch,402 bytes, text/plain)
2004-02-24 02:03 UTC, Jeremy Huddleston (RETIRED)
Details
net-p2p/azureus-bin/files/azureus-bin-2.0.7.1_pre20040224-gentoo.sh (azureus-bin-2.0.7.1_pre20040224-gentoo.sh,2.44 KB, text/plain)
2004-02-24 02:03 UTC, Jeremy Huddleston (RETIRED)
Details
net-p2p/azureus-bin/files/azureus-bin-2.0.7.0a-gentoo.sh (azureus-bin-2.0.7.0a-gentoo.sh,1.91 KB, text/plain)
2004-02-24 02:22 UTC, Jeremy Huddleston (RETIRED)
Details
patch against azureus-bin-2.0.7.1_pre20040224.ebuild (poorfix.patch,522 bytes, patch)
2004-02-25 00:55 UTC, Andy Daniels
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2003-12-10 14:33:38 UTC
Here's an ebuild for the azureus bit-torrent client.  I didn't set it to provide virtual/bit-torrent because it isn't based off of the python source tree and thus does not conflict with any of the other packages.

I wasn's sure whehter the code should be installed in /usr/share/${PN} or /opt/${PN} or /usr/${PN}, but this is easily changed by just editing the PROGRAM_DIR variable in the ebuild

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2003-12-10 14:34:30 UTC
Created attachment 21997 [details]
net-p2p/azureus/azureus-2.0.4.2.ebuild
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2003-12-10 14:35:46 UTC
Created attachment 21998 [details]
net-p2p/azureus/files/azureus-2.0.4.2-gentoo.patch

This patch merely alters the startup script to better fit our uses
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-01-03 10:53:20 UTC
Created attachment 23073 [details]
net-p2p/azureus-bin/azureus-bin-2.0.6.0.ebuild

version bump.
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-01-03 10:54:03 UTC
Created attachment 23074 [details]
net-p2p/azureus-bin/files/azureus-bin-2.0.6.0-gentoo.patch

version bump
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-01-03 10:55:03 UTC
In addition to bumping the version, I renamed it to azureus-bin and I'll try to throw together a source ebuild later.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-01-16 02:41:52 UTC
so... is anyone on this?  I'm more than willing to be a maintainer for this package...
Comment 7 Jason Toffaletti 2004-01-16 23:53:43 UTC
if you create a source ebuild, i'd be happy to test it on amd64.
Comment 8 Andy Daniels 2004-02-22 23:07:49 UTC
Created attachment 26139 [details, diff]
net-p2p/azureus-bin/files/azureus-bin-2.0.7.0a-gentoo.patch
Comment 9 Andy Daniels 2004-02-22 23:12:46 UTC
Created attachment 26140 [details]
net-p2p/azureus-bin/azureus-bin-2.0.7.0a.ebuild

This ebuild started with Jeremy Huddleston's ebuild, but more is different than
the same at this point.  It has correct dependancies for USE="kde" users,
builds a Motif version for those with USE="-gtk", and correctly builds the kde
system tray daemon, and runs on excecution for those using KDE (this can be
disable in /usr/bin/azureus by simply changing KDE_SYSTRAY4J_DAEMON to false in
the header.

Please merge, and/or e-mail me if any bugs are found.
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-22 23:51:34 UTC
Any net-p2p-ers mind if I submit this and add myself as maintainer since nobody in-herd seems to be responding?
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-23 02:38:44 UTC
looks like I just volunteered to join the net-p2p herd... I'll take a look at your ebuild and most likely merge it in in the next couple days.

I was having some screen-refresh trouble with the 2.0.6.0 version using gtk... did you notice that at all?  Well... hopefully it's fixed here...  time to test this out by downloading some torrents ;)
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-23 03:33:16 UTC
I'm having the same issue with 2.0.7.0 as with 2.0.6.0... I've created a bug upstream:

http://sourceforge.net/tracker/index.php?func=detail&aid=902603&group_id=84122&atid=575154

I'm going to wait for a resolution to this bug before comitting.
Comment 13 Andy Daniels 2004-02-23 07:04:32 UTC
This is a bug with the program itself, you can turn up the refresh rate in the settings, it will make the refresh problem less noticable,but will also eat up more CPU.  There is also a huge bug with file status bars being off by one line.  Both of these issues are non-existant in the Motif version, I find it to work much better if you don't mind it's ugliness.

Keep in mind this is a pre-compiled ebuild also, the only compilation we are doing is the KDE system-tray daemon.
Comment 14 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-23 10:18:50 UTC
about compilation, I realize that, but the refresh issue is actually present in the motif version as well...  it's not delayed, it's actually indefinite
Comment 15 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-23 21:29:30 UTC
The summary only refreshes when I change languages... really odd... I went to talk to the developers on irc, but it doesn't look like anyone's around right now...  hopefully this is just something stupid on my behalf...
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-24 02:01:34 UTC
Created attachment 26242 [details]
azureus-bin/azureus-bin-2.0.7.0a.ebuild
Comment 17 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-24 02:02:00 UTC
Created attachment 26243 [details]
net-p2p/azureus-bin/azureus-bin-2.0.7.1_pre20040224.ebuild
Comment 18 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-24 02:02:43 UTC
Created attachment 26244 [details]
azureus-bin/files/azureus-bin-2.0.7.0a-gentoo.patch
Comment 19 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-24 02:03:00 UTC
Created attachment 26245 [details]
azureus-bin/files/azureus-bin-Makefile.patch
Comment 20 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-24 02:03:58 UTC
Created attachment 26246 [details]
net-p2p/azureus-bin/files/azureus-bin-2.0.7.1_pre20040224-gentoo.sh
Comment 21 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-24 02:22:33 UTC
Created attachment 26247 [details]
net-p2p/azureus-bin/files/azureus-bin-2.0.7.0a-gentoo.sh

Ok, Andy, I'm gonna need your help here... I am just not good at getting java
classpath type stuff setup.  Can you give me a hand here.  I updated your
2.0.7.0a ebuild and startup script a little here and then expanded on it
further to make the 2.0.7.1_preblah version (using the cvs snapshot of
Azureus.jar).

Everything works fine if I simply use the 2.0.7.0a ebuild and overwrite the
Azureus2.jar file with the one from cvs (note that it's on the gentoo
repository as Azureus2-2.0.7.1-20040224.jar), but when I follow the
instructions to setup the web and console ui's... things break giving messages
like 'can't find class <blah>' for the cli, log4j, and junit classes.  I setup
my CLASSPATH as:

CLASSPATH=/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:/usr/share/log4j/lib/log4j-1.2.8.jar:/usr/share/junit/lib/junit.jar:/usr/share/commons-cli/lib/commons-cli-1.0.jar:.


based on the CLASSPATH settings that exist in
/usr/share/{junit,commons-cli,log4j}/package.env

Now, here's the thing... when I use the azureus-bin-2.0.7.0a-gentoo.sh init
script, it works fine, but when I use the
azureus-bin-2.0.7.1_pre20040224-gentoo.sh init script, I get an error.

The main difference is in the java command line to start it.  In the old
version, we added Azureus2.jar to the CLASSPATH and used:

java -cp $CLASSPATH -Djava.library.path="${AZDIR}"
org.gudy.azureus2.ui.swt.Main "$1"

and in the new version	      
java -cp $CLASSPATH -Djava.library.path="${AZDIR}" -jar Azureus2.jar
${UI_OPTIONS} "$1"

where UI_OPTIONS="--gui=swt"

I want to use this second method to select the possible UIs as described on
http://azureus.sourceforge.net/CVS/ but unfortunately I am not the best when it
comes to understanding how java classpaths and whatnot get setup.  Can you try
to sort this out for me?
Comment 22 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-24 02:27:14 UTC
Ok, I should've written that whole thing without taking a break as it's a bit confusing... here's an explaination that hopefully helps explain things better:

emerge azureus-bin-2.0.7.1_pre20040224.ebuild
export CLASSPATH=/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:/usr/share/log4j/lib/log4j-1.2.8.jar:/usr/share/junit/lib/junit.jar:/usr/share/commons-cli/lib/commons-cli-1.0.jar:.
(or similar based on your jre)

azureus
(watch missing class borkage)
cp /usr/share/log4j/lib/log4j-1.2.8.jar /usr/share/junit/lib/junit.jar /usr/share/commons-cli/lib/commons-cli-1.0.jar /usr/lib/azureus
azureus
(watch another borkage I don't understand)
cp <portage_overlay>/net-p2p/azureus-bin/files/azureus-bin-2.0.7.0a-gentoo.sh /usr/bin/azureus
azureus
(be happy... yet unsatisfied that you are limited to the swt ui)
Comment 23 Andy Daniels 2004-02-25 00:55:31 UTC
Created attachment 26305 [details, diff]
patch against azureus-bin-2.0.7.1_pre20040224.ebuild

This is a temp fix for the problem, just creates symlinks to the jars (since
our run script adds all jars in PROGRAM_DIR already.)  I'll wrestle with it
some more when I have some time.  I was more concerned with a re-occurring
error with web, and web2.

Web:
[main] ERROR azureus2.ui.web  - Something is wrong with . Not added. (Reason:
File  not found.)

I got the same error in web2, plus the following whenever I tried to connect to
it with my browser:
[TP-0 <ResouceReader>] INFO azureus2.ui.web.stages.ResourceReader  - Could not
open resource org/gudy/azureus2/ui/web/template/
Comment 24 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-04 23:22:22 UTC
Well, I've committed what I could get to work (swt only)... I put comments in the init script that shows "this works" and "this doesn't" for getting the different interfaces working...

I hope you get a chanve to take a look at it because I don't really understand how  jars and classpaths work... it looks like it's fine to me...
Comment 25 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-13 18:02:57 UTC
alright, I'm closing this as we've got a working ebuild now...