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

Bug#377261: warning about /etc/xml/openoffice.org-common.xml when unpacking openoffice.org-common (misplaced exit 0??)



Package: openoffice.org-common
Version: 2.0.3-2
Severity: normal

I upgraded openoffice.org-common recently and I got this warning:

Preparing to replace openoffice.org-common 2.0.3-1 (using .../openoffice.org-common_2.0.3-2_all.deb) ...
update-xmlcatalog: error: entity not registered
update-xmlcatalog: error: package catalog /etc/xml/openoffice.org-common.xml not found
Unpacking replacement openoffice.org-common ...

I do seem to have some openoffice xml catalogs though:

$ ls -l /etc/xml/openoffice.org*
-rw-r--r-- 1 root root 365 2006-05-03 13:32 /etc/xml/openoffice.org-common.xml.old
-rw-r--r-- 1 root root 358 2005-08-25 11:06 /etc/xml/openoffice.org.xml.old
$ cat /etc/xml/openoffice.org-common.xml.old
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
  "file:///usr/share/xml/schema/xml-core/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<delegatePublic publicIdStartString="-//OpenOffice.org//DTD OfficeDocument 1.0//EN" catalog="file:///usr/share/xml/openoffice.org-common/catalog.xml"/>
</catalog>
$ cat /etc/xml/openoffice.org.xml.old
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN"
  "file:///usr/share/xml/schema/xml-core/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<delegatePublic publicIdStartString="-//OpenOffice.org//DTD OfficeDocument 1.0//EN" catalog="file:///usr/share/xml/openoffice.org/catalog.xml"/>
</catalog>

Absolutely no idea where they came from, this is a sid install I've been
upgrading since before the sarge release. At one point I installed
openoffice.org2 from experimental.

I also have this line in /etc/xml/catalog.old:

<delegatePublic publicIdStartString="-//OpenOffice.org//DTD OfficeDocument 1.0//EN" catalog="file:///etc/xml/openoffice.org-common.xml"/>

/etc/xml/catalog doesn't mention openoffice.org at all, not even
the /usr/share/xml/openoffice.org-common/catalog.xml file, which I have.

I get the same warning with a dpkg-reconfigure or a aptitude reinstall.

If I manually add set -x to all the maintainer scripts for
openoffice.org-common, I get:

# dpkg-reconfigure openoffice.org-common
+ THIS_PACKAGE=openoffice.org-common
+ THIS_SCRIPT=prerm
++ stty size
++ awk '{print $2}'
+ DEFCOLUMNS=157
+ expr 157 : '[[:digit:]]\+$'
+ trap 'message;      message "Received signal.  Aborting script /var/lib/dpkg/info/openoffice.org-common.prerm.";      message;      exit 1' 1 2 3 15
+ VER=
+ '[' upgrade = remove ']'
+ '[' upgrade = upgrade ']'
+ update-xmlcatalog --del --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --root
update-xmlcatalog: error: entity not registered
+ true
+ update-xmlcatalog --del --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --package openoffice.org-common
update-xmlcatalog: error: package catalog /etc/xml/openoffice.org-common.xml not found
+ true
+ THIS_PACKAGE=openoffice.org-common
+ THIS_SCRIPT=postinst
+ set -e
+ '[' configure = configure ']'
+ update-openoffice-dicts
Updating OpenOffice.org's dictionary list... done.
+ exit 0

Looking at the postinst, it becomes clear that there seems to be a
misplaced "exit 0", since running update-mime-database and
update-xmlcatalog is skipped. If I remove that line, the output from
dpkg-reconfigure looks like this (notice that there are no errors the
second time):

# dpkg-reconfigure openoffice.org-common
+ THIS_PACKAGE=openoffice.org-common
+ THIS_SCRIPT=prerm
++ stty size
++ awk '{print $2}'
+ DEFCOLUMNS=157
+ expr 157 : '[[:digit:]]\+$'
+ trap 'message;      message "Received signal.  Aborting script /var/lib/dpkg/info/openoffice.org-common.prerm.";      message;      exit 1' 1 2 3 15
+ VER=
+ '[' upgrade = remove ']'
+ '[' upgrade = upgrade ']'
+ update-xmlcatalog --del --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --root
update-xmlcatalog: error: entity not registered
+ true
+ update-xmlcatalog --del --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --package openoffice.org-common
update-xmlcatalog: error: package catalog /etc/xml/openoffice.org-common.xml not found
+ true
+ THIS_PACKAGE=openoffice.org-common
+ THIS_SCRIPT=postinst
+ set -e
+ '[' configure = configure ']'
+ update-openoffice-dicts
Updating OpenOffice.org's dictionary list... done.
++ stty size
++ awk '{print $2}'
+ DEFCOLUMNS=157
+ expr 157 : '[[:digit:]]\+$'
+ trap 'message;      message "Received signal.  Aborting script /var/lib/dpkg/info/openoffice.org-common.postinst.";      message;      exit 1' 1 2 3 15
+ VER=
+ '[' configure = configure ']'
++ which update-mime-database
+ '[' -x /usr/bin/update-mime-database ']'
+ update-mime-database /usr/share/mime
***
* Updating MIME database in /usr/share/mime...
Wrote 474 strings at 20 - 2778
Wrote aliases at 2778 - 292c
Wrote parents at 292c - 2fcc
Wrote literal globs at 2fcc - 3028
Wrote suffix globs at 3028 - 6510
Wrote full globs at 6510 - 6534
Wrote magic at 6534 - be48
Wrote namespace list at be48 - be58
***
+ '[' configure = configure ']'
+ update-xmlcatalog --add --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --package openoffice.org-common --local /usr/share/xml/openoffice.org-common/catalog.xml
+ update-xmlcatalog --add --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --package openoffice.org-common --root
chianamo:~# dpkg-reconfigure openoffice.org-common
+ THIS_PACKAGE=openoffice.org-common
+ THIS_SCRIPT=prerm
++ stty size
++ awk '{print $2}'
+ DEFCOLUMNS=157
+ expr 157 : '[[:digit:]]\+$'
+ trap 'message;      message "Received signal.  Aborting script /var/lib/dpkg/info/openoffice.org-common.prerm.";      message;      exit 1' 1 2 3 15
+ VER=
+ '[' upgrade = remove ']'
+ '[' upgrade = upgrade ']'
+ update-xmlcatalog --del --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --root
+ update-xmlcatalog --del --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --package openoffice.org-common
+ THIS_PACKAGE=openoffice.org-common
+ THIS_SCRIPT=postinst
+ set -e
+ '[' configure = configure ']'
+ update-openoffice-dicts
Updating OpenOffice.org's dictionary list... done.
++ stty size
++ awk '{print $2}'
+ DEFCOLUMNS=157
+ expr 157 : '[[:digit:]]\+$'
+ trap 'message;      message "Received signal.  Aborting script /var/lib/dpkg/info/openoffice.org-common.postinst.";      message;      exit 1' 1 2 3 15
+ VER=
+ '[' configure = configure ']'
++ which update-mime-database
+ '[' -x /usr/bin/update-mime-database ']'
+ update-mime-database /usr/share/mime
***
* Updating MIME database in /usr/share/mime...
Wrote 474 strings at 20 - 2778
Wrote aliases at 2778 - 292c
Wrote parents at 292c - 2fcc
Wrote literal globs at 2fcc - 3028
Wrote suffix globs at 3028 - 6510
Wrote full globs at 6510 - 6534
Wrote magic at 6534 - be48
Wrote namespace list at be48 - be58
***
+ '[' configure = configure ']'
+ update-xmlcatalog --add --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --package openoffice.org-common --local /usr/share/xml/openoffice.org-common/catalog.xml
+ update-xmlcatalog --add --type public --id '-//OpenOffice.org//DTD OfficeDocument 1.0//EN' --package openoffice.org-common --root

-- System Information:
Debian Release: unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-k7
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages openoffice.org-common depends on:
ii  dictionaries-common [openoffi 0.70.1     Common utilities for spelling dict
ii  openoffice.org-l10n-en-us     2.0.3-2    English_american language package 
ii  xml-core                      0.09-0.1   XML infrastructure and XML catalog

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: