From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#26877: building fonts: fontcache must be updated regulary Date: Thu, 11 May 2017 13:46:49 -0400 Message-ID: <8760h7guba.fsf@netris.org> References: <20170511083658.fuc54qhzo7ismnha@abyayala> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8sC5-00025w-GU for bug-guix@gnu.org; Thu, 11 May 2017 13:48:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8sC2-0007UD-BX for bug-guix@gnu.org; Thu, 11 May 2017 13:48:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8sC2-0007U8-7g for bug-guix@gnu.org; Thu, 11 May 2017 13:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d8sC1-0000M2-VE for bug-guix@gnu.org; Thu, 11 May 2017 13:48:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170511083658.fuc54qhzo7ismnha@abyayala> (ng0@pragmatique.xyz's message of "Thu, 11 May 2017 08:36:58 +0000") 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.org@gnu.org Sender: "bug-Guix" To: ng0 Cc: 26877@debbugs.gnu.org ng0 writes: > The problem: Right now after just installing fonts, they do > not become available. This can lead to some applications > appearing "broken", etc. Other operating systems solve this > by having a post-install hook which roughly does just this. > > A possible solution: > Our fictional, not yet existing, font-build-system should > run "fc-cache --force --really-force", This cannot work, because the build system code is run within the build container, where it won't have access to anything in your home directory. Furthermore, for most users, the packages are built on another machine, namely one of our build farm slaves. Even the build system did somehow have access to your home directory, building the package is not the right time to run "fc-cache". On a multiuser system, if two users request the same derivation, it is only built for the first user, and the second user simply uses the one that the first user built. The relevant time to run "fc-cache" is when the font is _installed_ in your user profile. The usual Guix way to handle things like this is to arrange for the font cache to be part of the profile, and to create a profile hook that creates the cache from all of the built packages included within. Mark