Bug 1601475

Summary: firefox 60.1.0 gives fontconfig warnings on start up
Product: Red Hat Enterprise Linux 6 Reporter: James Pearson <james-p>
Component: firefoxAssignee: Jan Horak <jhorak>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10CC: devinh7777, devin.hathaway, jwright, massi.ergosum, mmielke, stransky, toneata
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-03 12:26:15 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 James Pearson 2018-07-16 13:10:17 UTC
Description of problem:

When starting firefox 60.1.0 on el6, it gives lots of warning like:

Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 84: Having multiple <family> in <alias> isn't supported and may not work as expected       
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 84: Having multiple <family> in <alias> isn't supported and may not work as expected       
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 93: Having multiple <family> in <alias> isn't supported and may not work as expected       
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 93: Having multiple <family> in <alias> isn't supported and may not work as expected       
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 102: Having multiple <family> in <alias> isn't supported and may not work as expected      
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 102: Having multiple <family> in <alias> isn't supported and may not work as expected      
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 33: Having multiple <family> in <alias> isn't supported and may not work as expected           
...

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

firefox-60.1.0-5.el6

How reproducible:

Always

Steps to Reproduce:
1. Install firefox-60.1.0-5.el6
2. Run firefox from a terminal window

Actual results:

Fontconfig warning messages as above

Expected results:

No Fontconfig warning messages

Additional info:

Issue can be fixed by adding the following line to the /usr/bin/firefox wrapper script before firefox is exec'd:

 export FONTCONFIG_FILE="$MOZ_LIB_DIR/firefox/bundled/etc/fonts/fonts.conf"

Comment 4 Mark Mielke 2018-12-27 10:38:44 UTC
I think this is the correct fix to /usr/bin/firefox:

--- firefox.original	2018-12-27 05:35:03.100336478 -0500
+++ firefox	2018-12-27 05:35:56.660076859 -0500
@@ -104,5 +104,5 @@
 ## Set FONTCONFIG_PATH for Xft/fontconfig
 ##
-FONTCONFIG_PATH="/etc/fonts:${MOZILLA_FIVE_HOME}/res/Xft"
+FONTCONFIG_PATH="$MOZ_LIB_DIR/firefox/bundled/etc/fonts:${MOZILLA_FIVE_HOME}/res/Xft"
 export FONTCONFIG_PATH

The /etc/fonts in RHEL 6.10 is owned by a different version of fontconfig, and seems to have incompatibilities with the version embedded in firefox. So, using /etc/fonts introduces a problem, and using $MOZ_LIB_DIR/firefox/bundled/etc/fonts should fix this problem?

Comment 5 Martin Stransky 2019-01-04 12:51:58 UTC
Mark, thanks for the patch, Jan is going to handle that.