RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1099195 - rpm -e xorg-x11-font-utils succeeds even though it's required by ghostscript-fonts
Summary: rpm -e xorg-x11-font-utils succeeds even though it's required by ghostscript-...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.5
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: Karel Srot
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-19 17:38 UTC by Greg Bailey
Modified: 2014-10-14 04:37 UTC (History)
4 users (show)

Fixed In Version: yum-3.2.29-58.el6
Doc Type: Bug Fix
Doc Text:
Cause: have packages installed with missing pre/post dependencies and run 'yum check' Consequence: yum reports rpmdb problems Fix: ignore missing pre/post dependencies Result: 'yum check' doesn't report any rpmdb problems
Clone Of:
Environment:
Last Closed: 2014-10-14 04:37:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to apply (5.87 KB, patch)
2014-05-21 14:13 UTC, Valentina Mukhamedzhanova
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1410 0 normal SHIPPED_LIVE yum bug fix update 2014-10-14 00:54:51 UTC

Description Greg Bailey 2014-05-19 17:38:03 UTC
Description of problem:

Removing xorg-x11-font-utils via "rpm -e" or "yum erase" succeeds even though ghostscript-fonts is installed.  This causes error messages like the following to be displayed when performing yum operations:

** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
ghostscript-fonts-5.50-23.1.el6.noarch has missing requires of xorg-x11-font-utils

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

rpm-4.8.0-37.el6.x86_64

How reproducible:

Always

Steps to Reproduce:
1.  yum install ghostscript-fonts
2.  rpm -q --requires ghostscript-fonts
3.  rpm -e xorg-x11-font-utils

Actual results:

Step 3 above succeeds without error

Expected results:

error: Failed dependencies:
        xorg-x11-font-utils is needed by (installed) ghostscript-fonts-5.50-23.1.el6.noarch

Additional info:

Note that "yum install ghostscript-fonts" *does* pull in xorg-x11-font-utils correctly.

Comment 2 Panu Matilainen 2014-05-20 05:36:46 UTC
[pmatilai@localhost tmp]$ rpm -qpv --requires ghostscript-fonts-5.50-23.1.el6.noarch.rpm 
post,interp: /bin/sh
postun,interp: /bin/sh
manual: fontconfig
post: fontconfig
postun: fontconfig
rpmlib: rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib: rpmlib(FileDigests) <= 4.6.0-1
rpmlib: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
post: xorg-x11-font-utils
rpmlib: rpmlib(PayloadIsXz) <= 5.2-1

Note "post" on the xorg-x11-font-utils dependency. This means the package only requires xorg-x11-font-utils during the execution of %post script, and after that it can be legally removed (altough an upgrade of ghostscript-fonts would install it again)

Yum is wrong to complain, changing component. This is the same as bug 785690 which has been fixed upstream and in Fedora.

Comment 3 Valentina Mukhamedzhanova 2014-05-21 14:13:24 UTC
Created attachment 898017 [details]
patch to apply

Comment 5 Valentina Mukhamedzhanova 2014-05-27 09:36:05 UTC
Yes, that's correct.

Comment 13 errata-xmlrpc 2014-10-14 04:37:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1410.html


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