From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#30435: libreoffice: Fonts don't show up after install Date: Thu, 02 Apr 2020 17:46:00 +0200 Message-ID: <875zehopqf.fsf__6324.99612854502$1585842432$gmane$org@gnu.org> References: <87a73ui78x.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54343) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK23b-0005nk-Hs for bug-guix@gnu.org; Thu, 02 Apr 2020 11:47:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jK23a-0004ut-Kt for bug-guix@gnu.org; Thu, 02 Apr 2020 11:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57155) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jK23a-0004ul-I9 for bug-guix@gnu.org; Thu, 02 Apr 2020 11:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jK23a-0005T5-En for bug-guix@gnu.org; Thu, 02 Apr 2020 11:47:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87a73ui78x.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 02 Apr 2020 11:09:34 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Pierre Neidhardt Cc: 30435@debbugs.gnu.org, guix-devel@gnu.org, hmk 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.