Bug 1484094

Summary: fontconfig-2.10.95-11.el7 pulls random fonts as a dependency
Product: Red Hat Enterprise Linux 7 Reporter: Viktor Ashirov <vashirov>
Component: fontconfigAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: jkoten, pchavan, petersen, qe-i18n-bugs, qguo, rrueck, smaitra, sshedmak, stuartjames, tagoh, tony, tpelka
Target Milestone: rcKeywords: i18n
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fontconfig-2.13.0-4.3.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:19:48 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:
Bug Depends On:    
Bug Blocks: 1549949    

Description Viktor Ashirov 2017-08-22 16:46:26 UTC
Description of problem
bz1403957 introduced new dependency for fontconfig.
fontconfig-2.10.95-11.el7 now requires font(:lang=en)

$ repoquery --whatprovides 'font(:lang=en)' | wc -l
75

That's a huge list, and fonts get picked different each time.
For example, I have stix-fonts or paratype-pt-sans-caption-fonts installed on different machines.

With stix-fonts and java apps there is a known issue: bz1484079
Customers hit it after upgrade to RHEL7.4.

Version-Release number of selected component (if applicable):
fontconfig-2.10.95-11.el7

How reproducible:
Deterministically

Steps to Reproduce:
1. Install a fresh RHEL7.4 system
2. yum install fontconfig

Actual results:
Additional font package is pulled as a dependency, each time different.

Expected results:
I think fontconfig should depend on some particular known font, that provides font(:lang=en) and doesn't cause issues like the one in bz1484079.

Additional info:

Comment 2 Akira TAGOH 2017-08-23 02:35:48 UTC
Well, fontconfig itself simply requires ANY single font package to get it working. it doesn't care what that is. in fact, that dep was added to address Bug#1403957 which was caused by fontconfig right.

The sort of this issue is a mininum requirement for certain apps but it isn't for fontconfig. this should be fixed in apps as deps or comps for that installation as desktop does.

Comment 3 Viktor Ashirov 2017-08-24 11:53:33 UTC
So what would be the next steps to address that?

Comment 4 Akira TAGOH 2017-08-24 12:13:06 UTC
add a dep of a certain font package to java or to comps for server. dunno if comps helps for upgrade though.

Comment 5 Jens Petersen 2017-10-16 07:00:40 UTC
Maybe it is better to remove the meta font dependency from fontconfig now?

subscription-manager-gui requires Canterell font now at least.

Comment 6 Jens Petersen 2017-10-16 07:01:10 UTC
*** Bug 1496299 has been marked as a duplicate of this bug. ***

Comment 7 Stuart James 2018-01-30 11:46:39 UTC
Internal bug reports duplicate, useful to have public visibility.

Comment 11 Akira TAGOH 2018-06-08 10:47:24 UTC
Fixed in fontconfig-2.13.0-4.1.el7

Comment 14 Viktor Ashirov 2018-08-22 08:57:29 UTC
Build tested: fontconfig-2.13.0-4.3.el7.x86_64

Previously:
# repoquery --requires fontconfig | grep font | sort -u
font(:lang=en)
fontpackages-filesystem

In the build fontconfig-2.13.0-4.3.el7.x86_64:

# repoquery --requires fontconfig | grep font | sort -u 
dejavu-sans-fonts
fontpackages-filesystem

Indeed, dejavu-sans-fonts is pulled as a dependency:

# yum install fontconfig 
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                      Arch        Version               Repository
                                                                           Size
================================================================================
Installing:
 fontconfig                   x86_64      2.13.0-4.3.el7        rhel      254 k
Installing for dependencies:
 dejavu-fonts-common          noarch      2.33-6.el7            rhel       64 k
 dejavu-sans-fonts            noarch      2.33-6.el7            rhel      1.4 M
 fontpackages-filesystem      noarch      1.44-8.el7            rhel      9.9 k

Transaction Summary
================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 1.7 M
Installed size: 5.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): dejavu-fonts-common-2.33-6.el7.noarch.rpm           |  64 kB   00:00     
(2/4): fontconfig-2.13.0-4.3.el7.x86_64.rpm                | 254 kB   00:00     
(3/4): dejavu-sans-fonts-2.33-6.el7.noarch.rpm             | 1.4 MB   00:00     
(4/4): fontpackages-filesystem-1.44-8.el7.noarch.rpm       | 9.9 kB   00:00     
--------------------------------------------------------------------------------
Total                                              7.7 MB/s | 1.7 MB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                    1/4 
  Installing : dejavu-fonts-common-2.33-6.el7.noarch                        2/4 
  Installing : dejavu-sans-fonts-2.33-6.el7.noarch                          3/4 
  Installing : fontconfig-2.13.0-4.3.el7.x86_64                             4/4 
  Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                          1/4 
  Verifying  : fontconfig-2.13.0-4.3.el7.x86_64                             2/4 
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                    3/4 
  Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                        4/4 

Installed:
  fontconfig.x86_64 0:2.13.0-4.3.el7                                            

Dependency Installed:
  dejavu-fonts-common.noarch 0:2.33-6.el7                                       
  dejavu-sans-fonts.noarch 0:2.33-6.el7                                         
  fontpackages-filesystem.noarch 0:1.44-8.el7                                   

Complete!


Marking as VERIFIED.

Comment 21 errata-xmlrpc 2018-10-30 10:19:48 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/RHSA-2018:3140