Bug 1770450

Summary: Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
Product: [Fedora] Fedora Reporter: lhaastdaiz
Component: fontconfigAssignee: Akira TAGOH <tagoh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: ajax, anatoli, caillon+fedoraproject, fonts-bugs, gnome-sig, i18n-bugs, john.j5live, kirenpillay1, mclasen, pnemade, rhughes, rstrode, sandmann, tagoh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-07 16:36:34 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 lhaastdaiz 2019-11-09 11:18:47 UTC
When upgrading to fontconfig-2.13.1-9.fc30.x86_64, dnf emits this warning:

Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"

$ cat -n /usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf
     1	<?xml version="1.0"?>
     2	<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
     3	<fontconfig>
     4	  <description>Re-define fonts dirs sample</description>
     5	
     6	  <reset-dirs />
     7	  <dir prefix="xdg">fonts</dir>
     8	
     9	</fontconfig>

Comment 1 Parag Nemade 2020-04-07 16:36:34 UTC
This is no more issue in Fedora. When fontconfig added this element, some applications did not process it while using fontconfig.

Comment 2 Kiren Pillay 2020-04-07 20:32:55 UTC
So what is the workaround for this? Are the applications that use fontconfig meant to change something? 

I am getting this bug when I launch my Android Studio.

Comment 3 Akira TAGOH 2020-04-08 02:47:16 UTC
Please ask to rebuild it against the latest version of fontconfig. this isn't really our issue since this was caused by bundled library in application. otherwise use flatpak.

Comment 4 Akira TAGOH 2020-04-08 02:49:16 UTC
I mean, in you case.

Comment 5 Anatoli Babenia 2020-06-23 08:09:59 UTC
Google sent me here. How to check which version of fontconfig was used and with which version to rebuild? I suspect that F32 ships with the "broken" fontconfig.