ports/92210: [PATCH] Fixing Azureus to work on amd64
Mikhail T.
mi at aldan.algebra.com
Mon Jan 23 16:10:21 UTC 2006
>Number: 92210
>Category: ports
>Synopsis: [PATCH] Fixing Azureus to work on amd64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 23 16:10:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Mikhail T.
>Release: FreeBSD 6.0-STABLE amd64
>Organization:
Virtual Estates, Inc.
>Environment:
System: FreeBSD aldan.algebra.com 6.0-STABLE FreeBSD 6.0-STABLE #5: Sun Nov 20 20:06:48 EST 2005 mi at aldan.algebra.com:/var/src/sys/amd64/compile/GENERIC-aldan amd64
>Description:
As soon as the PR 92190 is closed:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/92190
azureus can be made to work on amd64 (and Java-1.5 on
other platforms) with the simple patch below.
I'm running it right now, as a matter of fact.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/azureus/Makefile,v
retrieving revision 1.29
diff -U2 -r1.29 Makefile
--- Makefile 4 Jan 2006 23:24:28 -0000 1.29
+++ Makefile 23 Jan 2006 16:00:34 -0000
@@ -26,10 +26,9 @@
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt31
-ONLY_FOR_ARCHS= i386
USE_JAVA= yes
JAVA_BUILD= jdk
JAVA_RUN= jdk
-JAVA_VERSION= 1.4
+JAVA_VERSION= 1.4+
JAVA_OS= native
USE_ANT= yes
@@ -38,4 +38,5 @@
USE_REINPLACE= yes
USE_ZIP= yes
+USE_DOS2UNIX= org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java
NO_WRKSUBDIR= yes
@@ -43,4 +44,5 @@
# build classpath from BUILD_DEPENDS
+MAKE_ENV= LANG=C _JAVA_OPTIONS=-Xmx512M
CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar}
Index: files/patch-TransferTypes
===================================================================
RCS file: files/patch-TransferTypes
diff -N files/patch-TransferTypes
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-TransferTypes 23 Jan 2006 16:00:34 -0000
@@ -0,0 +1,17 @@
+--- org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java Fri Dec 12 09:56:48 2003
++++ org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java Sat Jun 11 16:06:40 2005
+@@ -41,5 +41,5 @@
+ TransferData[] data = event.dataTypes;
+ for (int i = 0; i < data.length; i++) {
+- int id = data[i].type;
++ long id = data[i].type;
+ String name = getNameFromId(id);
+ System.out.println("Data type is " + id + " " + name);
+@@ -97,5 +97,5 @@
+ return ids;
+ }
+- static String getNameFromId(int id) {
++ static String getNameFromId(long id) {
+- switch (id) {
++ switch ((int)id) {
+ case 1 :
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list