delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/03/08/07:53:54

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B54D23858D38
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1709902432;
bh=kwoQd0MJ/xqALg93W5Jfzu/eX0e/DVBGtczwIHHM8zs=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=gd7rPaaf03F+32xiryfwHV7Ozy4vxARHqo1U6Wy7MrjZFCbCx8W2kFCFHiLVSdFGl
zd9L9UPSVeahuBAkeoN8FoejNejDMJ1VhzceXbrsoMXkQRgT9CEjkTmlDx9Vqir4od
PfiAZAp6hgI1mod4M68nVtSacBq0PNt1E3eHstqQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C1CB385DC0E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1C1CB385DC0E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709902399; cv=none;
b=p2ccKW2SFpXahVOaK0uj2mN83YD+xXmWxBx+CmhUak0ovw1y2PShyXDRxjd6QXRxLn5wA70dSEbtbaygVUKF9QAehK+C42jT06j0kjESjONfeWyNtVtayTTOCKAiUDc/FKczNsM/55hXwGX2xCcJcoWtoIUG34PPtr0k20VuYjM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1709902399; c=relaxed/simple;
bh=b70tqolpbP/LWUmUo+paq73eXXF1N3sUF6FWsVVZ7eE=;
h=DKIM-Signature:Date:Message-Id:To:Subject:From:Mime-Version;
b=nRximsTE7e5TeNsQZWy2uf5EUK80+vh3J9k9Mlk2OsMa28Yh3LWkZ1a4VCP/WC/AIJlgiGpswvCnLH2nNCrp+T3+yiPHyR3QfJXSBrPZcEWoaqKgUulY6Cx+63dVhFZgmRijVUrolpRI+ltBxNnw3O5Db/grkcmVJVPa6clWmoo=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Fri, 08 Mar 2024 21:53:10 +0900 (JST)
Message-Id: <20240308.215310.2236687043088232299.trueroad@trueroad.jp>
To: cygwin AT cygwin DOT com
Subject: libfontconfig-common-2.15.0-2 system font cache directory settings
seem to be wrong
In-Reply-To: <20240305221000.93449612424c65060193f63f@nifty.ne.jp>
References: <20240305 DOT 204838 DOT 932004035509696090 DOT trueroad AT trueroad DOT jp>
<20240305221000 DOT 93449612424c65060193f63f AT nifty DOT ne DOT jp>
X-Mailer: Mew version 6.9 on Emacs 29.2
Mime-Version: 1.0
X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, SPF_HELO_NONE,
SPF_SOFTFAIL, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Masamichi Hosoda via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Masamichi Hosoda <trueroad AT trueroad DOT jp>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi

If I understand correctly,
the system font cache directory setting in /etc/fonts/fonts.conf
provided by libfontconfig-common-2.15.0-2 is wrong.

In /etc/fonts/fonts.conf provided by libfontconfig-common-2.13.1-2

```
       <cachedir>/var/cache/fontconfig</cachedir>
```

So `fc-cache -s` creates system font cache files in `/var/cache/fontconfig`.
It is correct because `/var/cache` is a common system cache directory.

In /etc/fonts/fonts.conf provided by libfontconfig-common-2.15.0-2

```
       <cachedir>LOCAL_APPDATA_FONTCONFIG_CACHE</cachedir>
```

So `fc-cache -s` creates system font cache files
in `./LOCAL_APPDATA_FONTCONFIG_CACHE`.
`LOCAL_APPDATA_FONTCONFIG_CACHE` directory is created
in the *current* directory when fc-cache.
It is wrong because it means that
processes with different current directories have
different system font cache directories,
and the caches are no longer shared.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019