[xml/sgml-pkgs] Bug#248910: xml-core: dh_installxmlcatalogs make unusable installation scripts
Ardo van Rangelrooij
Ardo van Rangelrooij <ardo@debian.org>, 248910@bugs.debian.org
Sun, 16 May 2004 19:38:31 -0500
Hi,
Which version of sed are you using? This is definitely not an issue with xml-core
(besides the possible need for a versioned dependency on sed). We had this before
and then the issue was an old version of sed that didn't properly processed '\n'.
Thanks,
Ardo
Jonathan Dupart (jonathan@globenet.org) wrote:
> Package: xml-core
> Version: 0.09
> Severity: normal
>
> The dh_installxmlcatalogs perl script use at lines 230, 231, 239,
> 240 and 256 to 259 the chain "\\n" as the end of a replacement chain
> finaly used by the function autoscript() from Debian::Debhelper::Dh_Lib.
>
> I don't know how this append (between perl and sed expansion), but
> finaly, no line feed are made and a 'n' is attached to the last letter
> of the replacement chain, making lines like :
>
> update-xmlcatalog --add --type system --id "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" --package xml-core --local /usr/share/xml/schema/xml-core/catalog.xmln update-xmlcatalog --add --type public --id "-//OASIS//DTD XML Catalogs V1.0//EN" --package xml-core --local /usr/share/xml/schema/xml-core/catalog.xmln
> ^
>
> Output of the package installation :
>
> $ export LC_ALL=C; sudo dpkg -i xml-core_0.09_all.deb
> (Reading database ... 71418 files and directories currently installed.)
> Preparing to replace xml-core 0.09 (using xml-core_0.09_all.deb) ...
> update-xmlcatalog: error: entity not registered
> /var/lib/dpkg/info/xml-core.prerm: truen: command not found
> /var/lib/dpkg/info/xml-core.prerm: truen: command not found
> dpkg: warning - old pre-removal script returned error exit status 127
> dpkg - trying script from the new package instead ...
> dpkg: ... it looks like that went OK.
> Unpacking replacement xml-core ...
> Setting up xml-core (0.09) ...
> update-xmlcatalog: error: local catalog /usr/share/xml/schema/xml-core/catalog.xmln not found
> dpkg: error processing xml-core (--install):
> subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
> xml-core
>
> The only fix i have found is to replace the "\\n" by "; ".
>
> -- System Information:
> Debian Release: 3.0
> Architecture: i386 (i686)
> Kernel: Linux 2.6.1
> Locale: LANG=fr_FR, LC_CTYPE=fr_FR
>
> Dehelper version 4.2.7
>
> Versions of packages xml-core depends on:
> ii perl 5.6.1-8.7 Larry Wall's Practical Extraction
> ii sgml-base 1.22 utilities to maintain SGML catalog
--
Ardo van Rangelrooij Debian XML/SGML Group
<ardo@debian.org> <debian-xml-sgml-devel@lists.alioth.debian.org>
http://people.debian.org/~ardo/ http://debian-xml-sgml.alioth.debian.org/