Bug 182093 - Font packages have missing and incorrect PreReq dependencies
Font packages have missing and incorrect PreReq dependencies
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: XFree86 (Show other bugs)
3.0
All Linux
medium Severity low
: ---
: ---
Assigned To: Mike A. Harris
David Lawrence
: Desktop
Depends On:
Blocks: RHEL3U8CanFix
  Show dependency treegraph
 
Reported: 2006-02-20 09:20 EST by Dag Wieers
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2006-0410
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-07-20 11:25:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dag Wieers 2006-02-20 09:20:47 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060130 Red Hat/1.0.7-1.4.3 Firefox/1.0.7

Description of problem:
[root@lxtrpxy01 root]# rpm -e chkfontpath compat-db cpp curl desktop-file-utils switchdesk tcl ttmkfdir XFree86-100dpi-fonts XFree86 XFree86-75dpi-fonts XFree86-base-fonts XFree86-font-utils XFree86-Mesa-LibGLU Xfree86-tools XFree86-xfs xinitrc xterm
error: package XFree86-Mesa-LibGLU is not installed
error: package Xfree86-tools is not installed
error: Failed dependencies:
        XFree86 is needed by (installed) XFree86-tools-4.3.0-97.EL
[root@lxtrpxy01 root]# rpm -e chkfontpath compat-db cpp curl desktop-file-utils switchdesk tcl ttmkfdir XFree86-100dpi-fonts XFree86 XFree86-75dpi-fonts XFree86-base-fonts XFree86-font-utils XFree86-Mesa-LibGLU XFree86-tools XFree86-xfs xinitrc xterm
error: package XFree86-Mesa-LibGLU is not installed
/var/tmp/rpm-tmp.90935: line 3: /usr/X11R6/bin/mkfontdir: No such file or directory
error: %postun(XFree86-75dpi-fonts-4.3.0-97.EL) scriptlet failed, exit status 127
/var/tmp/rpm-tmp.31442: line 3: /usr/X11R6/bin/mkfontdir: No such file or directory
error: %postun(XFree86-100dpi-fonts-4.3.0-97.EL) scriptlet failed, exit status 127


Version-Release number of selected component (if applicable):
XFree86-4.3.0-97.EL

How reproducible:
Always

Steps to Reproduce:
1. Remove first mkfontdir and afterwards the XFRee86-75dpi-fonts
2.
3.
  

Actual Results:  Error

Expected Results:  Dependency check

Additional info:
Comment 1 Dag Wieers 2006-02-20 09:22:03 EST
Apparently I paste too much. Please ignore the first command :-)
Comment 2 Mike A. Harris 2006-02-21 05:06:09 EST
> Font packages do not require /usr/bin/mkfontdir

Nor should they, as that is included in modular X.Org X11 in FC5 only.
It is located in /usr/X11R6/bin/mkfontdir in XFree86 and monolithic
xorg-x11 packaging.
Comment 3 Mike A. Harris 2006-03-07 15:47:05 EST
It appears the XFree86 4.3.0 packaging does not have proper rpm dependencies
listed for all of the %post/%postun scripts.  Also, it's currently using
PreReq in many places which should be updated to use Requires(pre),
Requires(post), etc.

In theory, PreReq is supposed to handle this, but it is possible it is not
working that way.  We should update the packaging to properly list deps
anyway.

If that doesn't fix it, it is possible there is a bug in rpm, as ISTR
something like that being reported before.
Comment 4 Mike A. Harris 2006-03-07 17:18:23 EST
Er..  somehow accidentally got reassigned to rpm...  Reassigning back
to XFree86 component.
Comment 5 Mike A. Harris 2006-03-07 17:40:24 EST
The XFree86.spec fix for this, will be replacing all of the "PreReq" entries
with
"Requires(post): ..."
"Requires(postun): ..."

Just in case someone else makes the change other than me, do not use the
shorthand syntax of "Requires(post,postun)" however because there are bugs
in rpm that will cause that to fail.

In addition to the font script dependency fixes for this, a complete scan
of all dependencies in the rpm should be performed and any legacy PreReq
entries should be updated to the Requires(foo) syntax.  Also, all rpm scripts
should be scanned for dependencies which may be missing from Requires(foo)
in the given subpackages, and new deps added as needed to prevent other
problems from occuring of this nature.

Additionally, the RHEL-4, FC-4 xorg-x11 packaging should be reviewed to
ensure that the same problems are fixed in those releases if present.  If
problems are discovered in those releases, new bugs should be filed to track
the issue in each OS release as appropriate.
Comment 10 Mike A. Harris 2006-04-24 23:13:55 EDT
Fixes for RHEL-3 checked into CVS for package build 102.EL and later.

Will update bug with test packages once package is built.
Comment 11 Mike A. Harris 2006-04-25 09:38:46 EDT
XFree86-4.3.0-102.EL is now available for download via ftp
at the following URL:  ftp://people.redhat.com/mharris/testing/3.0E

After upgrading all of the packages, please test them to see if the problem
reported has now been resolved and not any changes (good/bad).

Comment 12 Mike A. Harris 2006-05-04 06:49:33 EDT
XFree86-4.3.0-104.EL is now available for download via ftp at the following URL:
 ftp://people.redhat.com/mharris/testing/3.0E
Comment 16 Red Hat Bugzilla 2006-07-20 11:25:36 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0410.html

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