Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: rpm -e xorg-x11-font-utils succeeds even though it's required by ghostscript-fonts
Product: Red Hat Enterprise Linux 6 Reporter: Greg Bailey <gbailey>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: james.antill, ksrot, pmatilai, vmukhame
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 04:37:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to apply none

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