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 1664501

Summary: liberation-fonts-common contains fonts.dir
Product: Red Hat Enterprise Linux 8 Reporter: Richard Tollerton <rich.tollerton>
Component: liberation-fontsAssignee: vishal vijayraghavan <vvijayra>
Status: CLOSED ERRATA QA Contact: QE Internationalization Bugs <qe-i18n-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: eng-i18n-bugs, kkrothap, rich.tollerton, tagoh
Target Milestone: rcKeywords: i18n
Target Release: 8.0Flags: petersen: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: liberation-fonts-2.00.3-6.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 17:02:28 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:

Description Richard Tollerton 2019-01-09 03:16:47 UTC
Description of problem:

liberation-fonts-common contains the fonts.dir/fonts.scale files for liberation-sans-fonts, liberation-serif-fonts, and liberation-mono-fonts. But all three packages depend on liberation-fonts-common. Moreover, liberation-mono-fonts is not part of the default RHEL8 Workstation install. The upshot is that in a default RHEL8 install, /usr/share/fonts/liberation/fonts.dir lists font paths which don't exist.

Presumably, fonts.dir/fonts.scale should be deleted, and instead be regenerated on install in the usual way.                                                                                              


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

liberation-fonts-common-2.00.3-3.el8.noarch


How reproducible:

- Reproduces in default RHEL8 install (as long as liberation-mono-fonts is uninstalled)

- Does not *directly* reproduce on F29 because liberation-mono-fonts appears to be part of the default install there

- Does not reproduce if liberation-mono-fonts is installed, or if /usr/share/fonts/liberation/fonts.dir is regenerated

- Can be made to reproduce again by ensuring liberation-mono-fonts is uninstalled and then reinstalling or upgrading liberation-fonts-common


Steps to Reproduce: Reproduction is by visual inspection of /usr/share/fonts/liberation/fonts.dir.


Actual results: LiberationMono-*.ttf is present in fonts.dir.


Expected results: They're not.


Additional info:

This was found while investigating a crash in a third-party application, the  proximate cause of which is the subject of a forthcoming bug report.

The workaround I have presently employed in the application involves omitting setting FontSet attributes for XCreateIC(). If that workaround falls through, then the severity of this issue will increase.

Comment 4 Jens Petersen 2019-03-05 03:47:49 UTC
In current RHEL8 Workstation at least, I think Liberation Mono and Sans are installed by default but not Serif.

Anyway we should improve the handling of the X fonts.* files.

Comment 7 Jens Petersen 2019-06-06 10:52:05 UTC
I suppose a simple workaround is to install liberation-serif-fonts.

Comment 8 Jens Petersen 2019-06-11 03:01:38 UTC
Since X applications don't typically use Liberation fonts - a simple solutions might be just to drop all the X core fonts files from the liberation-fonts.

Comment 10 vishal vijayraghavan 2019-12-12 04:27:59 UTC
Build in this liberation-fonts-2.00.3-6.el8

Comment 12 vishal vijayraghavan 2020-01-08 11:08:01 UTC
TPS jobs failing due to the .uuid file permission issue.

Comment 15 errata-xmlrpc 2020-04-28 17:02:28 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.

https://access.redhat.com/errata/RHBA-2020:1902