portupgrade -f fails on docbook-sk

Don Lewis truckman at FreeBSD.org
Mon Feb 2 21:27:19 PST 2004


Portupgrade -f fails to properly reinstall the textproc/docbook-sk port
because the port in not cleanly deinstalled.

xmlcatmgr: enabling compatibility mode; removing ALL matching entries
xmlcatmgr: no matching entry for `/usr/local/share/xml/docbook/4.1.2/catalog.xml
share/xml/docbook/4.1.2/catalog.xml' of any type
pkg_delete: unexec command for '/usr/local/bin/xmlcatmgr -c /usr/local/share/xml
/catalog.ports remove /usr/local/share/xml/docbook/4.1.2/catalog.xmlshare/xml/do
cbook/4.1.2/catalog.xml' failed
xmlcatmgr: enabling compatibility mode; removing ALL matching entries
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)


Because the entries for this port were not removed from
/usr/local/share/sgml/catalog.ports and
/usr/local/share/xml/catalog.ports, the reinstallation fails:

for file in `unzip -l /usr/ports/distfiles/docbkx412.zip|/usr/bin/awk '/:[0-9].*
[^\/]$/{print $4}'`; do  install  -o root -g wheel -m 444 /usr/ports/textproc/do
cbook-sk/work/$file /usr/local/share/xml/docbook/4.1.2/$file;  done
xmlcatmgr: entry already exists for `/usr/local/share/xml/docbook/4.1.2/catalog.
xml' of type `nextCatalog'
*** Error code 1

Stop in /usr/ports/textproc/docbook-sk.


At this point, even the package the was created before deinstalling the
old version can't be reinstalled.

--->  Restoring the old version
xmlcatmgr: entry already exists for `/usr/local/share/xml/docbook/4.1.2/catalog.
xml' of type `nextCatalog'
pkg_add: command '/usr/local/bin/xmlcatmgr -c /usr/local/share/xml/catalog.ports
 add nextCatalog /usr/local/share/xml/docbook/4.1.2/catalog.xml' failed
xmlcatmgr: entry already exists for `/usr/local/share/xml/docbook/4.1.2/docbook.
cat' of type `CATALOG'
pkg_add: command '/usr/local/bin/xmlcatmgr -sc /usr/local/share/sgml/catalog.por
ts add CATALOG /usr/local/share/xml/docbook/4.1.2/docbook.cat' failed
** Fix the installation problem and try again.



More information about the freebsd-gnome mailing list