Bug 1601475 - firefox 60.1.0 gives fontconfig warnings on start up
Summary: firefox 60.1.0 gives fontconfig warnings on start up
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: firefox
Version: 6.10
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jan Horak
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-16 13:10 UTC by James Pearson
Modified: 2021-12-10 16:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-03 12:26:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Article) 3538261 0 None None None 2018-07-19 16:16:59 UTC

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.


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