[xml/sgml-pkgs] Bug#255472: Installation fails. cannot stat `/usr/share/sgml-base/catalog.super'

Andreas Metzler Andreas Metzler <ametzler@downhill.at.eu.org>, 255472@bugs.debian.org
Mon, 21 Jun 2004 12:01:32 +0200

Package: sgml-base
Version: 1.23
Severity: serious

/tmp XX:> dpkg -i sgml-base_1.23_all.deb 
Selecting previously deselected package sgml-base.
(Reading database ... 15885 files and directories currently installed.)
Unpacking sgml-base (from sgml-base_1.23_all.deb) ...
cp: cannot stat `/usr/share/sgml-base/catalog.super': No such file or directory
dpkg: error processing sgml-base_1.23_all.deb (--install):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:

Which is caused by this bit in preinst:
    [ ! -f /etc/sgml/catalog ] \
        && cp -a /usr/share/sgml-base/catalog.super /etc/sgml/catalog

Obviously you cannot access files in sgml-base in its preinst script,
as it runs *before* the package is unpacked.
              cu andreas
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"