[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Possible trimming of build dependencies



* Osamu Aoki <osamu@debian.org>, 2010-05-16, 21:44:
Originally I used xsltproc to generate roxterm's man pages, as per the example in the New Maintainers' Guide, but when I moved the man pages upstream I got a bug report because the location of docbook.xsl isn't consistent across OSs

Just use http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl instead of the file name. Thanks to XML catalogs, xsltproc _won't_ download this file if docbook-xsl is installed.

Are you suggesting to change from:

          override_dh_auto_build:
                  xsltproc --nonet \
                   --param make.year.ranges 1 \
                   --param make.single.year.ranges 1 \
                   --param man.charmap.use.subset 0 \
                   -o debian/ \
            /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
                  debian/gentoo.1.xml
                  dh_auto_build

to
          override_dh_auto_build:
                  xsltproc --nonet \
                   --param make.year.ranges 1 \
                   --param make.single.year.ranges 1 \
                   --param man.charmap.use.subset 0 \
                   -o debian/ \
            http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
                  debian/gentoo.1.xml
                  dh_auto_build

Yes, this is what docbook-xsl maintainer recommends:

$ zcat /usr/share/doc/docbook-xsl/NEWS.Debian.gz | grep '1.74.3+dfsg-1' -A 9
docbook-xsl (1.74.3+dfsg-1) unstable; urgency=low

  IMPORTANT: The stylesheets have been moved from
  /usr/share/xml/docbook/stylesheet/nwalsh/ to
  /usr/share/xml/docbook/stylesheet/docbook-xsl/. The old directory is a
  symlink to the new location for compatibility reasons. Note, that I plan to
  drop the old location /usr/share/xml/docbook/stylesheet/nwalsh/ in the
  future. So plese adjust the path in your scripts, XML documents, ... or
  better: use the WWW resource URI and the catalog system.

--
Jakub Wilk

Attachment: signature.asc
Description: Digital signature


Reply to: