From owner-freebsd-java Mon Nov 19 8:30:59 2001 Delivered-To: freebsd-java@freebsd.org Received: from shikima.mine.nu (pc1-card3-0-cust77.cdf.cable.ntl.com [62.252.49.77]) by hub.freebsd.org (Postfix) with ESMTP id 4E2BE37B419 for ; Mon, 19 Nov 2001 08:30:44 -0800 (PST) Received: from rasputin by shikima.mine.nu with local (Exim 3.33 #1) id 165rLE-000EbF-00 for java@freebsd.org; Mon, 19 Nov 2001 16:32:16 +0000 Date: Mon, 19 Nov 2001 16:32:16 +0000 From: Rasputin To: java@freebsd.org Subject: Re: A Modest Proposal for Java(tm) dependency selection among ports Message-ID: <20011119163216.B56021@shikima.mine.nu> Reply-To: Rasputin References: <20011115130202.E33074@johncoop.MSHOME> <200111161042.fAGAg8V55897@zaphod.euronet.nl> <20011116084005.A40560@johncoop.MSHOME> <200111191317.fAJDHRi12634@zaphod.euronet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111191317.fAJDHRi12634@zaphod.euronet.nl>; from znerd@freebsd.org on Mon, Nov 19, 2001 at 02:17:27PM +0100 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Sorry to jump in after the fact ,but I wondered if there was a specific problem with JAVA_VER - this would tie in nicely with things like XFREE86_VERSION and OS_VERSION, etc, and could be compared against in the same way that many ports use OS_VERSION (i.e. numerically > ) In any case, I think make.conf would be suitable to hold relevant variables (once we decide what they are). If an app needs a specific version of a JRE/JDK surely it can just have a RUN_DEPENDS clause that points to an absolute path e.g. (syntax may be wrong but you get the idea) RUN_DEPENDS= ${LOCALBASE}/linux-jdk1.3.1/bin/java:${PORTDIR}/java/linux-jdk1.3.1 Although I've no idea how to handle an app that runs on multiple JVMS; perhaps we should check each in order of preference, and use the first that fits? Also most ports seem to use JAVADIR or JAVA_HOME - the two seem fairly interchangable so perhaps they could be merged in here as well?? A lot of ports seem to use dependencies specific to whoever wrote the port, so this is a mess worth fixing - roll on bsd.java.mk :) -- Anyone who goes to a psychiatrist ought to have his head examined. -- Samuel Goldwyn Rasputin :: Jack of All Trades - Master of Nuns :: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message