From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Firefox/1.0.2 Fedora/1.0.2-1.3.1 Description of problem: the package is missing a postun dependency on mkfontdir resulting in removal of it and xorg-x11-font-utils succeeding only when they're removed in the proper order. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. start with no X or fonts installed 2. yum install fonts-xorg-100dpi 3. rpm -e fonts-xorg-100dpi-6.8.1.1-1 ttmkfdir-3.0.9-16 xorg-x11-font-utils-6.8.2-19 xorg-x11-xfs-6.8.2-19 chkfontpath-1.10.0-4 Actual Results: /var/tmp/rpm-tmp.16594: line 3: /usr/X11R6/bin/mkfontdir: No such file or directory error: %postun(fonts-xorg-100dpi-6.8.1.1-1.noarch) scriptlet failed, exit status 127 Expected Results: removals should occur in order to not remove mkfontdir before it's needed. Additional info:
This looks like an rpm bug. The fonts-xorg-100dpi-6.8.1.1-1 package has the following Requires present: %package 100dpi Summary: A set of 100dpi resolution fonts for the X Window System. Group: User Interface/X Requires(post): %{_x11bindir}/mkfontdir, chkfontpath Requires(postun): %{_x11bindir}/mkfontdir Obsoletes: XFree86-100dpi-fonts Obsoletes: xorg-x11-100dpi-fonts %description 100dpi A set of 100 dpi fonts used by the X window system. If rpm is uninstalling the package that provides mkfontdir (which is currently xorg-x11-font-utils) before uninstalling the packages that require mkfontdir, and neither "--nodeps" nor "--force" were supplied, then it's doing things in the wrong order if the package has the correct Requires present. CC'ing jbj and nasrat for comment from the rpm side of things.
rpm does no ordering for removals.
In order to resolve the problem being reported here, rpm needs to honour the dependancies the packager has specified in the spec file. This would then seem to be a bug in rpm. If anyone has alternate suggestions for how to resolve this issue, please add them in a comment below. Reassigning to rpm component.
rpm 4.4.1-11 has erase ordering although work still needs to be done. Closing as a dupe of current outstanding erasure ordering bug. *** This bug has been marked as a duplicate of 158577 ***