From owner-freebsd-java@FreeBSD.ORG Sun Mar 27 15:40:04 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC70F16A4CE for ; Sun, 27 Mar 2005 15:40:04 +0000 (GMT) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22CD543D1D for ; Sun, 27 Mar 2005 15:40:03 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j2RFdwTf011712; Sun, 27 Mar 2005 18:39:59 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.12.11/8.12.11) with ESMTP id j2RFdtqk038731; Sun, 27 Mar 2005 18:39:57 +0300 (EEST) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.0.308 [266.8.4]); Sun, 27 Mar 2005 18:39:49 +0300 Message-ID: <4246D3C5.5060303@ebs.gr> Date: Sun, 27 Mar 2005 18:39:49 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chuck Robey References: <424490CD.9080203@chuckr.org> In-Reply-To: <424490CD.9080203@chuckr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: java Subject: Re: eclipse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2005 15:40:05 -0000 Chuck Robey wrote: > I'm looking at java ports, now that I *have* a java, and the first I'm > looking at is eclipse. Understand, my processor is an amd64, and the > eclipse port is marked for i386 only. I just went to the site, and they > have a binary image available for download for the amd64, so I figure > that the amd64 might be reasonably fair game. > > The port I have is the native jdk15. Immediately after I tested my > jdk15 port to work ok, I deleted entirely the linux-sun-jdk14 port I'd > built it with, because I didn't want development confusion. Of course, > this first target, when I looked at their build instructions, they ask > for a jdk14 port of java. So, I need to know what's the preferred > method of porting for FreeBSD Java ports: > > (1) modify the port to build under the latest compiler, which would be > jdk15, or > > (2) run multiple simultaneous java ports? Can this be cleanly done? > > (3) shove my jdk15 off to the side, put back the linux-sun-jdk14 port, > and assume anyone else building it has to do the same thing? > > For my own self, option #1 seems selfish, option 2 possibly the best, > but can it work?, and option #3, not terrifically workable. If you can get it to work, I'd say that option #1 is not selfish, but quite helpful for everyone else, indeed! Please give it a shot, the eclipse port is supposed to be compilable with jdk>=1.4. See the following lines in the port's Makefile: USE_JAVA= yes JAVA_VERSION= 1.4+ JAVA_OS= native You can start by changing the following line: ONLY_FOR_ARCHS= i386 in the same file, to: ONLY_FOR_ARCHS= i386 amd64 and see how far you get from there. Nobody has tried building eclipse for amd64 with jdk1.5 yet AFAIK, but that doesn't mean it can't be done. And of course, don't forget to post any patches you come up with :-) Cheers, Panagiotis