From owner-freebsd-java@FreeBSD.ORG Thu Feb 26 18:25:30 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A02F61065672 for ; Thu, 26 Feb 2009 18:25:30 +0000 (UTC) (envelope-from brian@experts-exchange.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 8680A8FC0A for ; Thu, 26 Feb 2009 18:25:30 +0000 (UTC) (envelope-from brian@experts-exchange.com) Received: from [192.168.103.26] (unknown [72.29.180.81]) by mail.experts-exchange.com (Postfix) with ESMTP id 401674A309F4; Thu, 26 Feb 2009 10:25:30 -0800 (PST) Message-ID: <49A6DE9C.9090102@experts-exchange.com> Date: Thu, 26 Feb 2009 10:25:32 -0800 From: Brian Gardner User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Peter Ulrich Kruppa References: <20090225.204541.48442950.chat95@mac.com> <20090226.211029.264452332.toshi@ruby.ocn.ne.jp> <49A68DBD.6060106@pukruppa.net> In-Reply-To: <49A68DBD.6060106@pukruppa.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: artemciy@gmail.com, SAITOU Toshihide , freebsd-java@freebsd.org Subject: Re: openjdk6 port complete and ready for testing X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 18:25:30 -0000 It seems like this logic should be built into /usr/ports/Mk/bsd.java.mk. I don't know much about how these files are maintained but this is my suggestion: Before including /usr/ports/Mk/bsd.java.mk you could include variables BUILD_REQUIRES_JAVA_ BUILD_REQUIRES_JAVA_ bsd.java.mk would look for any suitable (from a hard coded list per java version) ports are installed. If no suitable port was installed, create the dependency for the default (hard coded per java version). If a suitable port was found then FREEBSD_JAVA_HOME_ which any java port would then be able to utilize. This would work in conjunction with a java-select tool built into the javavmwrapper that would allow multiple ports that have the same JAVA_VERSION to be installed and allow the client to choose which one is active. This method would allow any java dependant port to easially declare its dependancy to a java version vs a specific port, and would also allow any port to require a specific java version. This is the fundemental idea however the implementation would need to be more complex to support: *) java dependant ports may work multiple java versions (java 5 or java 6), so maybe it could specify (BUILD_REQUIRES_JAVA_5_OR_6) *) dependencies involving javavmwrapper may get a bit tricky and should be thought through before proceeding. *) it would be nice to be able to specify a list of suitable JAVA_PORTS (BUILD_REQUIRES_JAVA_PORTS - comma seperated list of ports) in the case that a java dependant port works with java/diablo-jdk6 and java/openjdk6 but doesn't work with java/jdk6. *) I'm sure there are other caveats that I'm not thinking about. Brian Peter Ulrich Kruppa wrote: > SAITOU Toshihide schrieb: >> In message: >> ArtemGr writes: >>> Mike Jakubik rogers.com> writes: >>>> Good news, the port compiled and installed OK for me!. Now is someone >>>> could tell me how to us the javavmwrapper to switch to this i would be >>>> very thankful, as i can't find any documentation on this. >>> export JAVA_HOME=/usr/local/openjdk6 >> >> /usr/local/etc/javavm_opts.conf is also functional. >> Add this line: >> >> #JAVA_HOME=/usr/local/diablo-jdk1.6.0/ >> JAVA_HOME=/usr/local/openjdk6/ > Please do excuse if I missed something: > There are JAVA dependent ports which don't allow JAVA_HOME to be set - > for example openjdk6 itself. > How or better: can I build these with openjdk6? > > > Greetings > > Peter > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" >