Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2006 11:06:15 -0500 (EST)
From:      "Mikhail T." <mi@aldan.algebra.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        klm@ptc.com, past@ebs.gr, freebsd-eclipse@FreeBSD.org
Subject:   ports/92210: [PATCH] Fixing Azureus to work on amd64
Message-ID:  <200601231606.k0NG6FUf018681@aldan.algebra.com>
Resent-Message-ID: <200601231610.k0NGA4WS012318@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601231606.k0NG6FUf018681>