Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1357273 - uninstall script generates errors
Summary: uninstall script generates errors
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docbook-dtds
Version: 7.4
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: BaseOS QE - Apps
Depends On: 1357272
Blocks: 1420851
TreeView+ depends on / blocked
Reported: 2016-07-17 14:33 UTC by Martin Poole
Modified: 2018-11-06 13:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1357272
: 1651187 (view as bug list)
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description Martin Poole 2016-07-17 14:33:01 UTC
+++ This bug was initially created as a clone of Bug #1357272 +++

Description of problem:

If docbooks-dtd is the only dtd installed and removal is attempted an error is generated.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. yum install docbook-dtds
2. yum remove docbook-dtds

Actual results:

Loaded plugins: auto-update-debuginfo, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package docbook-dtds.noarch 0:1.0-51.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

 Package                        Arch                     Version                         Repository                               Size
 docbook-dtds                   noarch                   1.0-51.el6                      @rhel-x86_64-server-6                   4.4 M

Transaction Summary
Remove        1 Package(s)

Installed size: 4.4 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : docbook-dtds-1.0-51.el6.noarch                                                                                      1/1
Failed to remove entry from /etc/sgml/catalog
  Verifying  : docbook-dtds-1.0-51.el6.noarch                                                                                      1/1

  docbook-dtds.noarch 0:1.0-51.el6


Expected results:

no error.

Additional info:

Error occurs during when the last of the --sgml removes is attempted

    /usr/bin/xmlcatalog --noout --sgml --del /etc/sgml/catalog /etc/sgml/

when the only contents of /etc/sgml/catalog is the single line

    CATALOG "/etc/sgml/"

I'm not certain but I think the problem is due to the fact that xmlcatalog will attempt to remove the entry twice because the --no-super-update option is not given.

--- Additional comment from Martin Poole on 2016-07-17 15:30:55 BST ---

The error message is not produced if an additional (non-dependent) dtd is also installed (xhtml1-dtds).

This also points to the catalog empty check and the super-catalog area.

Note You need to log in before you can comment on or make changes to this bug.