From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 02 11:46:12 2020 Received: (at 30435) by debbugs.gnu.org; 2 Apr 2020 15:46:12 +0000 Received: from localhost ([127.0.0.1]:40468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jK22l-0005Q9-QX for submit@debbugs.gnu.org; Thu, 02 Apr 2020 11:46:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jK22k-0005Pf-6O for 30435@debbugs.gnu.org; Thu, 02 Apr 2020 11:46:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jK22e-0004Pc-GF; Thu, 02 Apr 2020 11:46:04 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44786 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jK22c-00046i-MX; Thu, 02 Apr 2020 11:46:03 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Pierre Neidhardt Subject: Re: bug#30435: libreoffice: Fonts don't show up after install References: <87a73ui78x.fsf@ambrevar.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 Germinal an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 02 Apr 2020 17:46:00 +0200 In-Reply-To: <87a73ui78x.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 02 Apr 2020 11:09:34 +0200") Message-ID: <875zehopqf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 30435 Cc: 30435@debbugs.gnu.org, guix-devel@gnu.org, hmk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Hi, Pierre Neidhardt skribis: > Running > > fc-cache -fv > > fixes the issue. > > Should we run this command in a profile hook? Profile hooks are normal derivations; as such, they don=E2=80=99t have acce= ss to anything but their dependencies and their output(s). There=E2=80=99s currently no infrastructure to run arbitrary code upon pack= age installation (which I think is a feature more than a bug :-)). We could make an exception, but it=E2=80=99s kinda ugly. I wonder if, instead, we could have Fontconfig realize that the cache is stale somehow. Alternately, we could generate the cache in a profile hook and have Fontconfig use that cache instead of the one in ~/.cache. However, Fontconfig would need to be able to: 1. Be told which cache to use, not just the one from ~/.guix-profile, so that it works equally well with other profiles. 2. Merge several caches, so it can also account for fonts installed in /run/current-system/profile. We discussed all this several times in the past but I don=E2=80=99t think it went further. Ludo=E2=80=99.