From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 20 11:05:39 2023 Received: (at 30435) by debbugs.gnu.org; 20 Feb 2023 16:05:39 +0000 Received: from localhost ([127.0.0.1]:53315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU8fb-0003qn-Bq for submit@debbugs.gnu.org; Mon, 20 Feb 2023 11:05:39 -0500 Received: from mail-qt1-f178.google.com ([209.85.160.178]:37479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU8fX-0003qT-2a for 30435@debbugs.gnu.org; Mon, 20 Feb 2023 11:05:38 -0500 Received: by mail-qt1-f178.google.com with SMTP id bt6so1146599qtb.4 for <30435@debbugs.gnu.org>; Mon, 20 Feb 2023 08:05:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=USE8WdQ38vgpped50BcE0iH51qtxP0h4xneybEcXr7w=; b=lI7+LC/ecFzg8ygbe1+SOFTUnJ0TkOd0pRSGiQr7kdYWKwzmHuSNLAoCN9k1nwG1C+ BY9oL6jGPoeV86Aea8v+dPJRMd0k/NDF2q8trNUsQtfYsTzqNZEaM7vp5qUSUD2pXObf IsG7w8sPmYYSKkUgbGDGg5pOQtwHVL2+0oldXhyUs8qiAyWjy5OVuqsdcaZ30v330BvC M7DkukHJKC4oataAVwnMVgr1IKSDQCgAuNnIAJ8tN+YzExhgklyx5s+Q/VkqQWwG32HH VBOHLTtxuPS0toPsJ9LDGduqihhEmK2+YEczm8ORvdgIweEn1GepmB5Wg3BAdS+XroUg nuGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=USE8WdQ38vgpped50BcE0iH51qtxP0h4xneybEcXr7w=; b=ZlPK/W8pu4ZKpN6SglJi2NADyPXT19mvMyZO9HYqltXc5JN/1b3bV/wI/WeTYvcdHt rGZ104E8yplo0xVAaCTLhce9snMMn4VEup1syB2Qp0ehS6cKYtIi7nk1d6I8VQIP8gzP cH8evmn+mCuuZrD4EbY+92F/h2OwFbHE3EQQr6J0dJR0cYYGq2FnveDE0/KgjyamBAh4 DPC0Qe1dl88NT/v5WD8H+1ZnTVFIHgf+4RyZKXrRzS/N3Iyf9qSgcOIjEe+bXn+flfXY MQe3WZeSnf/2Q0QKSew1J3qJ5h6RMY4z9x9bZlNBpUTyBrR7L3luXrATYw2u9PSzIQxx CIZg== X-Gm-Message-State: AO0yUKWQO6DCWiClRKNrMgxOAggQR1dLCPfSO0VdLCz5PqPzY7ATQRM4 Zhlim6BTwZqVfMFSW4QSOmwcXEj5JL2ZHh2r X-Google-Smtp-Source: AK7set+fIyrzF66PB8mmZ0SqtNV/QSUJmuUqWsmnsAVo+yFWMNEGB1VXv+u5Bgfy2/Z5jv0qCTAZwg== X-Received: by 2002:a05:622a:4c7:b0:3b8:6b25:88bf with SMTP id q7-20020a05622a04c700b003b86b2588bfmr2441006qtx.51.1676909129450; Mon, 20 Feb 2023 08:05:29 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1001]) by smtp.gmail.com with ESMTPSA id z11-20020ac8430b000000b003b9a50c8fa1sm9197627qtm.87.2023.02.20.08.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 08:05:28 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#30435: libreoffice: Fonts don't show up after install References: <87a73ui78x.fsf@ambrevar.xyz> <875zehopqf.fsf@gnu.org> Date: Mon, 20 Feb 2023 11:05:27 -0500 In-Reply-To: <875zehopqf.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Thu, 02 Apr 2020 17:46:00 +0200") Message-ID: <87pma4l3ug.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30435 Cc: 30435@debbugs.gnu.org, guix-devel@gnu.org, Pierre Neidhardt , 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: -1.0 (-) Hi Ludovic, Ludovic Court=C3=A8s writes: > 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 ac= cess to > anything but their dependencies and their output(s). > > There=E2=80=99s currently no infrastructure to run arbitrary code upon pa= ckage > 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. That's possible since adding support to XDG_DATA_DIRS in fontconfig itself (see c738a054cac00441a4f697f0b40705d0b3f4a7a7, "gnu: fontconfig: Add a search path for XDG_DATA_DIRS."). > 2. Merge several caches, so it can also account for fonts installed in > /run/current-system/profile. There was also something contributed that should have improved/fix cache invalidity in 6f12880a76a6c91058718d15845f8b9d9b529a5a ("gnu: fontconfig: Use (locally) deterministic caching"). I haven't seen this problem in a long while, so I'm inclined to think it's been resolved. --=20 Thanks, Maxim