From owner-freebsd-current@FreeBSD.ORG Tue Apr 13 16:22:28 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A466D16A4CE for ; Tue, 13 Apr 2004 16:22:28 -0700 (PDT) Received: from smtp0.server.rpi.edu (smtp0.server.rpi.edu [128.113.53.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AF3543D2D for ; Tue, 13 Apr 2004 16:22:28 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp0.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i3DNMREd028744; Tue, 13 Apr 2004 19:22:27 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <1081896823.772.58.camel@klotz.local> References: <20040413121925.GB29867@voodoo.oberon.net> <407C4035.8020609@ciam.ru> <1081896823.772.58.camel@klotz.local> Date: Tue, 13 Apr 2004 19:22:26 -0400 To: Martin From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) cc: FreeBSD Current Subject: Re: Second "RFC" on pkg-data idea for ports X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2004 23:22:28 -0000 At 12:53 AM +0200 4/14/04, Martin wrote: >Am Tue, den 13.04.2004 schrieb Garance A Drosihn um 23:40: > > > If someone has a better format, and a format which will be > > as easy for a simple program to process, I will be willing > > to try that format instead. I am not too hung up on this > > specific format. > >I would personally like it to use XML. I'm developing a small >application which is a kind of GUI for ports (works like a >browser). It is very difficult to parse the Makefiles to find >out which version number and which dependencies it has. Some >versions (like KDE3) are just variables and I don't have an >idea how to fetch them yet. If it is easy for you to execute commands, then something like: /bin/make -f /usr/ports/shells/bash2/Makefile -V PORTVERSION might give you the result you want. But I do not know if that will work for all ports. >With a structured language like XML, it would make the >parsing process for such utils like mine easier. Well, one of my goals for this project is to make it easier for others to write programs which do their own processing of the ports-files. I am a little worried about how long it would take us (Darren and I) to figure out the right XML format, and how to process it, but maybe we really need to do that. Would it be useful-enough if the pd-handling program could spit out a true XML-formatted document, once we knew what that was? I realize this is rather lame, but it would allow us to keep this key program pretty small and simple. > > That is what I was thinking of when I picked this specific > > format. With this strict, limited format, it should be easy > > to write a program that can do all the processing we want > > to do (at least for now). > >Before using XML, you should really ask people who have an >idea about both, ports and XML. Well, at the moment I am *not* using XML... :-) Right now I'm just looking for feedback. Thank you for providing some more ideas for Darren and I to think about. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu