From owner-freebsd-java@FreeBSD.ORG Fri May 2 11:04:57 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 0964A37B401 for ; Fri, 2 May 2003 11:04:57 -0700 (PDT) Received: from mgr1.xmission.com (mgr1.xmission.com [198.60.22.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B4E843F85 for ; Fri, 2 May 2003 11:04:56 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr1.xmission.com with spam-scanned (Exim 3.35 #1) id 19Besu-00057F-01 for freebsd-java@freebsd.org; Fri, 02 May 2003 12:03:48 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr1.xmission.com with esmtp (Exim 3.35 #1) id 19BeWe-0004Kx-01; Fri, 02 May 2003 11:40:49 -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 h42HjGQf005891; Fri, 2 May 2003 11:45:17 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h42HjECK005890; Fri, 2 May 2003 11:45:14 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Fri, 2 May 2003 11:45:14 -0600 From: Greg Lewis To: Herve Quiroz Message-ID: <20030502174514.GB5567@misty.eyesbeyond.com> References: <200210140852.g9E8qfbH050638@zaphod.euronet.nl> <200305010918.56072.znerd@FreeBSD.org> <20030501155811.GA78184@misty.eyesbeyond.com> <20030501182907.K83285@puget.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030501182907.K83285@puget.esil.univ-mrs.fr> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-3.8 required=8.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_01_02,USER_AGENT, USER_AGENT_MUTT,X_AUTH_WARNING version=2.43 X-Spam-Level: cc: Ernst de Haan cc: freebsd-java@FreeBSD.org Subject: Re: java/44041: Generate bsd.java.mk from an XML file 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: Fri, 02 May 2003 18:04:57 -0000 Hi Herve, On Thu, May 01, 2003 at 06:48:36PM +0200, Herve Quiroz wrote: > On Thu, 1 May 2003, Greg Lewis wrote: > > On Thu, May 01, 2003 at 09:18:56AM +0200, Ernst de Haan wrote: > > > Hi Herve, > > > > > > > I was in the mood for some XSLT coding so I decided to take care of this > > > > one hour ago. So far, I've finished everything up to step 3 (included) > > > > but I will need to get some sleep sooner or later ;) > > > > > > > > So I was wondering if you still need this XML->bsd.java.mk tool... and if > > > > you (or anybody else) had already done something about it. > > > > > > Haven't done anything about it yet. And I personally think it's a very good > > > idea. This way we only have to maintain a bsd.java.xml file. > > > > > > Greg, what do you think of this? > > > > Well, without having seen Herve's XSLT, I think the best way of explaining > > things is to describe what I would like to see ultimately happen with > > bsd.java.mk. Maybe some of this is due to not fully understanding the > > file, but here goes. > > [...] > > > > Well, I was just working on the dependency stuff in stage 4 of the > bsd.java.mk which is not simple to implement in XSLT. But maybe I should > wait that we fix this before... > > You're right bsd.java.mk sometimes behaves a strange way. And your > "multiple JDK dependency" point is right if you take for example the > jakarta-commons-logging port. It compiles and runs with any JDK (1.2+) but > if you've got JDK 1.4, it's better because it also handles the 1.4 logger > API. Right. So maybe in that case you prefer 1.4. However, maybe some other port works with 1.4 but exercises a bug in our 1.4 (for example) and you want to prefer 1.3. > So, the question is: what to do for now ? Let the bsd.java.mk as-is ? Have > an XSLT to generate it from an XML Java VMs list ? I still have some difficulty believing that this won't severely limit what we can do in bsd.java.mk. I realise XSLT is Turing complete, but I really think we're asking for a lot of pain trying to generate arbitrary Make and shell syntax from an XML file using XSLT. At best I think generating an included list of default preferences is workable, but I'd still prefer to generate that list from the ports themselves to remove the maintenance issue entirely (all the XML proposal does is move the maintenance to a different file and format). > We could have a user/system configuration file to specify which JDKs/JREs > to install and in which order, as it is the case for many applications > (/usr/local/etc/pkgtools.conf, /etc/make.conf...). And to be > "cutting-edge", we could use an XML file to store preferences instead of > the standard Perl or Ruby stuff. XML processing has many dependencies but > so does any Java port so this is not an issue. But why XML? This should be simple enough to be able to support just environment settings (which could be standardly read from /etc/make.conf or some other, similar file read by bsd.java.mk). XML doesn't seem to be a good fit and seems inconsistent with how ports preferences are generally expressed. Of course, the people prepared to do the work ultimately get to pick :) -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org