[Fontconfig-bugs] [Bug 96896] New: fontconfig caches/registers dpkg temporary files instead of ignoring them
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jul 12 09:36:54 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=96896
Bug ID: 96896
Summary: fontconfig caches/registers dpkg temporary files
instead of ignoring them
Product: fontconfig
Version: 2.11
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: fc-cache
Assignee: fontconfig-bugs at lists.freedesktop.org
Reporter: raphael at ouaza.com
QA Contact: freedesktop at behdad.org
Created attachment 125020
--> https://bugs.freedesktop.org/attachment.cgi?id=125020&action=edit
Skip over .dpkg-tmp files
During package upgrades, it happened multiple times that the labels of my GNOME
application have been replaced by many squares. When this happens, fc-list
returns entries such as this one:
/usr/share/fonts/opentype/cantarell/Cantarell-Regular.otf.dpkg-tmp
And that file is already gone at that time... this file is created by dpkg
during its unpack procedure but it is renamed back into its definitive name at
the end of the unpack procedure. It's not clear what is running the fc-cache
run at the wrong time (I suspect gnome-settings-daemon... does a call to
FcInitReinitialize updates the user's cache?). "fc-cache -s" is also run after
the unpack through a dpkg trigger and this update seems to not be enough to
have the desktop switch back to the correct font file.
I would suggest that fontconfig should skip over files finishing with .dpkg-tmp
(as in the attached patch, currently untested but it compiles fine) or that it
considers only files with extensions that are known font files.
This has been initially reported in Debian bug https://bugs.debian.org/828037
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20160712/af1135b1/attachment.html>
More information about the Fontconfig-bugs
mailing list