From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: bug#30435: libreoffice: Fonts don't show up after install Date: Thu, 02 Apr 2020 17:46:00 +0200 Message-ID: <875zehopqf.fsf@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]:54275) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK22f-0005Uz-4y for guix-devel@gnu.org; Thu, 02 Apr 2020 11:46:06 -0400 In-Reply-To: <87a73ui78x.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 02 Apr 2020 11:09:34 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" 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.