From owner-freebsd-ports Sun Sep 15 2:37:36 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA69B37B400; Sun, 15 Sep 2002 02:37:34 -0700 (PDT) Received: from mailhost.nxad.com (lan.ext.nxad.com [66.250.180.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38E6143E6E; Sun, 15 Sep 2002 02:37:34 -0700 (PDT) (envelope-from sean@nxad.com) Received: from perrin.int.nxad.com (perrin.int.nxad.com [192.168.1.251]) by mailhost.nxad.com (Postfix) with ESMTP id 48D62212EF3; Sun, 15 Sep 2002 02:37:30 -0700 (PDT) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id 150A420F01; Sun, 15 Sep 2002 02:37:30 -0700 (PDT) Date: Sun, 15 Sep 2002 02:37:29 -0700 From: Sean Chittenden To: Poul-Henning Kamp Cc: ports@freebsd.org Subject: Re: expat2 in /src Message-ID: <20020915093729.GJ85674@perrin.int.nxad.com> References: <77582.1032081717@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77582.1032081717@critter.freebsd.dk> User-Agent: Mutt/1.4i X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 6CEB 1B06 BFD3 70F6 95BE 7E4D 8E85 2E0A 5F5B 3ECB X-Web-Homepage: http://sean.chittenden.org/ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > I need to import expat2 into /src to get some basic XML reading > capability, and expat2 being both small and good fits this slot. Any reason you wouldn't use libxml2's SAX interface? It's also got a slick DOM interface that I highly recommend, as well as it being the most feature complete XML opensource implementation (has a XSL engine that works with libxml2 and an XMLsec library) that I'm aware of (and MIT licensed too). > So the simple question for the ports crew is, which option is > better: > > A) Import it so it shows up in /usr/lib and /usr/include as > the official expat2, and have the ports pick up this copy > through configure. > > B) Import it so it shows up as something different ("libxmlthing") > from expat2, leaving the ports to continue to use > ports/textproc/expat2 since configure will not trigger on it. > > For the programs in /src which will need this, it makes no > difference which of the two we choose. > > I like the fact that B) would decouple us from any version-issues > like the ones we experienced with perl. On the other hand, I wonder > if the exposure to such problems is an issue with expat2, but 1227 > is a "large number of ports" in my book. Given the hell that was incurred a while ago with Apache, mod_perl, and PHP all having their own copy of expat with the same entry points, B definitely sounds like the best option. Just my $0.02. -sc PS I am skeptical of a need for any kind of XML parser in the base tree though, it seems like software creep and whatever it is that you're writing should be in the ports and depend on your preferred XML library. I'm writing the libxml bindings for Ruby and am curious as to what you're use is for such a library. -- Sean Chittenden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message