From owner-freebsd-java@FreeBSD.ORG Tue Aug 19 22:27:34 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 F33D216A4BF for ; Tue, 19 Aug 2003 22:27:33 -0700 (PDT) Received: from mgr4.xmission.com (mgr4.xmission.com [198.60.22.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F65A43F93 for ; Tue, 19 Aug 2003 22:27:31 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr4.xmission.com with spam-scanned (Exim 3.35 #1) id 19pLVJ-0006tR-04 for freebsd-java@freebsd.org; Tue, 19 Aug 2003 23:27:30 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr4.xmission.com with esmtp (Exim 3.35 #1) id 19pLUz-0006m9-04; Tue, 19 Aug 2003 23:27:10 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.9/8.12.9) with ESMTP id h7K5ZGC5008172; Tue, 19 Aug 2003 23:35:25 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h7K5YwtC008163; Tue, 19 Aug 2003 23:34:58 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 19 Aug 2003 23:34:54 -0600 From: Greg Lewis To: Herve Quiroz Message-ID: <20030820053454.GB7208@misty.eyesbeyond.com> References: <20030514.125107.74756915.haro@kgt.co.jp> <20030523072854.GA61661@misty.eyesbeyond.com> <20030529175837.GA31122@misty.eyesbeyond.com> <20030618221505.GA39813@misty.eyesbeyond.com> <20030818154837.P56591@puget.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030818154837.P56591@puget.esil.univ-mrs.fr> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-9.9 required=8.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT,X_AUTH_WARNING autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-java@freebsd.org 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: Wed, 20 Aug 2003 05:27:34 -0000 On Mon, Aug 18, 2003 at 04:10:31PM +0200, Herve Quiroz wrote: > 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". Cool :). > 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. As per make(1): .for variable in expression .endfor You can find many example usages in the various makefiles across the system, e.g. /usr/share/mk, /usr/ports/Mk, etc. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org