From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 26 18:10:31 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 289F916A4D0 for ; Sat, 26 Jun 2004 18:10:31 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0878E43D2F for ; Sat, 26 Jun 2004 18:10:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i5QIANRp079513 for ; Sat, 26 Jun 2004 18:10:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5QIAN92079510; Sat, 26 Jun 2004 18:10:23 GMT (envelope-from gnats) Date: Sat, 26 Jun 2004 18:10:23 GMT Message-Id: <200406261810.i5QIAN92079510@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Brian Candler Subject: Re: ports/66246: new ports: textproc/docbook-utils, textproc/p5-SGMLSpm X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Brian Candler List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 18:10:31 -0000 The following reply was made to PR ports/66246; it has been noted by GNATS. From: Brian Candler To: Volker Stolz Cc: freebsd-gnats-submit@freebsd.org Subject: Re: ports/66246: new ports: textproc/docbook-utils, textproc/p5-SGMLSpm Date: Sat, 26 Jun 2004 19:08:22 +0100 On Fri, Jun 25, 2004 at 01:34:27PM +0200, Volker Stolz wrote: > Should we consider incorparting your patch into sgmltools-lite as a > contribution? > Can you please elaborate what it fixes? The problem was that I couldn't make it work with FreeBSD's catalog collection. I thought that I should be able to do SGML_CATALOG_FILES=/usr/local/share/sgml/catalog sgmltools ... but it didn't work because the catalog files contain relative filenames: e.g. /usr/local/share/sgml/catalog contains CATALOG "catalog.ports" /usr/local/share/sgml/catalog.ports contains CATALOG "iso8879/catalog" CATALOG "docbook/4.1/catalog" ... etc and this is what the patch fixes. (I don't know how anyone managed to get sgmltools-lite to work without it, unless they are expected to make their own set of catalog files or symlinks to catalog files, which seems poor design as it duplicates what FreeBSD's master catalog file should do) I've just tried installing sgmltools-lite-3.0.3_1 again (with my patch applied), and with a bit of fiddling I came up with this command line: SGML_CATALOG_FILES=/usr/local/share/sgml/stylesheets/sgmltools/sgmltools.cat:/usr/local/share/sgml/catalog sgmltools -b html test.sgml and hey presto it works. If this simple command line could be put in the documentation somewhere (in the pkg-descr, perhaps) then it would make sgmltools-lite much easier to get started with. Even better would be if the package could set this up as the default set of catalog files. Perhaps sgmltools.cat ought to find its way into catalog.ports as well. However, I have also come across Makefiles in other packages which reference tools docbook2html and friends from docbook-utils (e.g. if you build courier-imap from CVS you need these tools) so I still think they may be worth packaging in their own right. Regards, Brian.