Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] fontconfig: font directories modified after indexing
@ 2022-05-31 17:08 chili-b
  2022-08-30  2:14 ` github-actions
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: chili-b @ 2022-05-31 17:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]

New issue by chili-b on void-packages repository

https://github.com/void-linux/void-packages/issues/37367

Description:
<!-- Don't request update of package. We have a script for that. https://repo-default.voidlinux.org/void-updates/void-updates.txt. However, a quality pull request may help. -->
### System

* xuname:  
  * ``Void 5.16.20_1 x86_64 GenuineIntel uptodate FFFFFFFF``
* package:  
  * ``fontconfig-2.13.1_3``

### Expected behavior
When font directories are indexed, they should only be read. They should not be modified, as one of the purposes of indexing font directories is to detect font updates and if directories are modified upon being indexed, erroneous font updates will be reported.

### Actual behavior
Every time fontconfig indexes existing font directories, if a font directory is writable by the user under which the indexing is performed, its modified time is updated.

This breaks the font update detection feature of fontconfig since if indexing font directories results in some of them being modified, fontconfig will report font updates after each index instead of reporting only actual changes to the available fonts.

Additionally, this cause the font cache at ``~/.cache/fontconfig/`` to become populated with redundant data as updates are detected and cached when no actual changes have taken place.

### Steps to reproduce the behavior
1. Install ``fontconfig``
2. Create a font directory which is user-writable such as ``~/.local/share/fonts``
3. Inspect the modified timestamp on the directory (``stat ~/.local/share/fonts``)
4. Do something which indexes font directories such as running ``fc-list``
5. Inspect the modified timestamp on the directory again (``stat ~/.local/share/fonts``) and see that it has been changed.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-15  2:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 17:08 [ISSUE] fontconfig: font directories modified after indexing chili-b
2022-08-30  2:14 ` github-actions
2022-08-30 11:28 ` Duncaen
2022-08-30 11:28 ` Duncaen
2022-08-30 11:48 ` chili-b
2022-11-30  2:03 ` github-actions
2022-12-15  2:01 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).