From owner-freebsd-java@FreeBSD.ORG Mon Aug 18 07:10:08 2003 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 D9F0B37B408 for ; Mon, 18 Aug 2003 07:10:07 -0700 (PDT) Received: from puget.esil.univ-mrs.fr (puget.esil.univ-mrs.fr [139.124.41.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBD7A43F75 for ; Mon, 18 Aug 2003 07:10:05 -0700 (PDT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from puget.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1]) by puget.esil.univ-mrs.fr (8.12.9/8.12.6) with ESMTP id h7IEAXFE056723 for ; Mon, 18 Aug 2003 16:10:33 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from localhost (rv@localhost)h7IEAWiJ056720 for ; Mon, 18 Aug 2003 16:10:32 +0200 (CEST) X-Authentication-Warning: puget.esil.univ-mrs.fr: rv owned process doing -bs Date: Mon, 18 Aug 2003 16:10:31 +0200 (CEST) From: Herve Quiroz X-X-Sender: rv@puget.esil.univ-mrs.fr To: freebsd-java@FreeBSD.ORG In-Reply-To: <20030618221505.GA39813@misty.eyesbeyond.com> Message-ID: <20030818154837.P56591@puget.esil.univ-mrs.fr> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030523072854.GA61661@misty.eyesbeyond.com> <20030529175837.GA31122@misty.eyesbeyond.com> <20030618221505.GA39813@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: bsd.java.mk 2.0 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: Mon, 18 Aug 2003 14:10:09 -0000 Hi, I'm in the process of getting this bsd.java.mk 2.0 working together with a demonstration java lib port. I've managed to stay compatible with the former bsd.java.mk (that I call 1.0), which means we don't have to change all java ports at once, but rather mark the old features as "deprecated". BTW, is there something in portlint(1) regarding java ports ? If so, that would be the right place to check those "deprecated" statements. Anyway, that's not the main goal of my mail. Instead, I'm asking for help, not Java related but Make related... So far, JDK/JRE dependency is resolved as follow: It first builds a list of all JDK/JRE ports suitable according to their version number in _JAVA_PORTS_BY_VERSION. Then, the same for _JAVA_PORTS_BY_OS and _JAVA_PORTS_BY_VENDOR. I was trying to build a list which is the intersection of those 3 above lists. So far, the only answer I have found to this problem is using three for/do/done nested loops. But IMHO it relies too much on the underlying shell, which is subject to change depending on machines. I know GNU Make better than the BSD one (PMake IIRC) and I know that GNU Make provides 'for' loops on its own. I can't find anything similar with PMake... There may be another solution. If anyone has any idea, or just knows how to do 'for' loops (or even lists intersections) in a generic (that is not shell dependent) fashion, please let me know about it. Regards, Herve On Wed, 18 Jun 2003, Greg Lewis wrote: > On Wed, Jun 18, 2003 at 08:21:41PM +0200, Herve Quiroz wrote: > > Hi Greg and all, > > > > No feedback so far... Should I make and provide a patch for bsd.java.mk > > and some java ports for testing with what we have discussed so far ? > > Sure! Knock yourself out :). I'll be on holidays for a few weeks, so I > won't be able to provide feedback until I get back. >