[xml/sgml-pkgs] Bug#548141: xmlto uses bashisms
Michael Biebl
biebl at debian.org
Thu Sep 24 05:57:50 UTC 2009
Package: xmlto
Version: 0.0.23-1
Severity: serious
Hi,
the latest upload of xmlto produces a lot of errors with /bin/sh not
being bash (the default is now dash, thus severity serious):
E.g. a test compilation of ConsoleKit 0.3.1 looks like this:
$ make -C doc/
make: Entering directory `/tmp/ConsoleKit-0.3.1/doc'
Making all in dbus
make[1]: Entering directory `/tmp/ConsoleKit-0.3.1/doc/dbus'
/usr/bin/xsltproc ../../doc/dbus/spec-to-docbook.xsl ../../src/org.freedesktop.ConsoleKit.Manager.xml | tail -n +2 > org.freedesktop.ConsoleKit.Manager.ref.xml
xsl:call-template: misplaced text element
/usr/bin/xsltproc ../../doc/dbus/spec-to-docbook.xsl ../../src/org.freedesktop.ConsoleKit.Seat.xml | tail -n +2 > org.freedesktop.ConsoleKit.Seat.ref.xml
/usr/bin/xsltproc ../../doc/dbus/spec-to-docbook.xsl ../../src/org.freedesktop.ConsoleKit.Session.xml | tail -n +2 > org.freedesktop.ConsoleKit.Session.ref.xml
xsl:call-template: misplaced text element
xsl:call-template: misplaced text element
/usr/bin/xmlto xhtml-nochunks -m ../../doc/dbus/config.xsl ConsoleKit.xml
/usr/bin/xmlto: 113: declare: not found
/usr/bin/xmlto: 117: declare: not found
eval: 1: CLEANFILES[0]=/tmp/xmlto-xsl.u86Qnw: not found
eval: 1: CLEANFILES[1]=/tmp/xmlto-xsl.H18fkw: not found
/usr/bin/xmlto: 1: XSL_MODS[0]=/tmp/xmlto-xsl.H18fkw: not found
/usr/bin/xmlto: 364: XSL_MODS[1]=/tmp/ConsoleKit-0.3.1/doc/dbus/../../doc/dbus/config.xsl: not found
eval: 1: CLEANFILES[2]=/tmp/xmlto-xsl.ORpKXT: not found
/usr/bin/xmlto: 1: Bad substitution
/usr/bin/xmlto: 1: Bad substitution
eval: 1: CLEANFILES[3]=/tmp/xmlto.yMxvLC: not found
[: 576: 0: unexpected operator
/usr/bin/xmlto: 1: Bad substitution
make[1]: Leaving directory `/tmp/ConsoleKit-0.3.1/doc/dbus'
make[1]: Entering directory `/tmp/ConsoleKit-0.3.1/doc'
make[1]: Für das Ziel »all-am« ist nichts zu tun.
make[1]: Leaving directory `/tmp/ConsoleKit-0.3.1/doc'
make: Leaving directory `/tmp/ConsoleKit-0.3.1/doc'
A trivial fix is to use #!/bin/bash as shebang in /usr/bin/xmlto, ideally
though xmlto is fixed to not use any bashisms.
Cheers,
Michael
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.31
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages xmlto depends on:
ii debianutils 3.2.1 Miscellaneous utilities specific t
ii docbook-xml 4.5-7 standard XML documentation system
ii docbook-xsl 1.75.2+dfsg-2 stylesheets for processing DocBook
ii libc6 2.9-26 GNU C Library: Shared libraries
ii libxml2-utils 2.7.4.dfsg-2 XML utilities
ii sgml-base 1.26 SGML infrastructure and SGML catal
ii xsltproc 1.1.24-2 XSLT command line processor
Versions of packages xmlto recommends:
pn dblatex | fop <none> (no description available)
ii libpaper-utils 1.1.23+nmu1 library for handling paper charact
Versions of packages xmlto suggests:
ii lynx-cur 2.8.8dev.1-1 Text-mode WWW Browser with NLS sup
ii w3m 0.5.2-2.1 WWW browsable pager with excellent
pn xmltex <none> (no description available)
-- no debconf information
More information about the debian-xml-sgml-pkgs
mailing list