From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cDfVKGua82PADAAAbAwnHQ (envelope-from ) for ; Mon, 20 Feb 2023 17:06:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WBmxKGua82MFcQAAauVa8A (envelope-from ) for ; Mon, 20 Feb 2023 17:06:03 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4F7C67FEF for ; Mon, 20 Feb 2023 17:06:03 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="lI7+LC/e"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676909163; a=rsa-sha256; cv=none; b=qlP5pVd5wCvbm8F3W1FPJZ/niBeLmo8zPOpUMEvY8bG8wI8pX6Q6P3+TJ0wngBhmgXzXT6 i7mS7KoTktS5foEpgDFRbwO3kp904Gwz0AsLz1QAydWBgfwVJw9CtBgkJqf/YDppXLNLdd /YNzbSghlF0xwTbA0GkkwzB3TPbMtX6IvCZvW3IVmdiZjfAwZZ0jTStQ8SloPoCzZlma5W uLTbUQHuN4JerqE1a1TM3QvMIgKcBLDzQhjj/JQeyKKLWBkTrmqxRvbEh3pA5N1t+aWEk3 a7n+LapBNcYNidddZpTMnjPf7exlgJCyEU7rUBQhU5iODN/uZ6EG3sQbf1V60Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="lI7+LC/e"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676909163; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=USE8WdQ38vgpped50BcE0iH51qtxP0h4xneybEcXr7w=; b=Rv9+9CKrTPfsTo2fofPIgNlpJ6rGV+0CYQ5KeNf6md67cuBqqXuocg9Qzf5b7kPDzv8kyv Q6qtZkQ03cA3jjNrrtdlRJmRgiMpIdwrLXujNXu9iRuKmWZQhwYmOd5l9Hab8xj/zZfEMU wc0FJOkLvL8rWahXMjZLbR3FLCcVqQX2KixXrCS47iQv4dncPmFv2y/E3j2MNtRDaSpwBQ H45bQTWJ1WNs9yIUaQOa86zX+7mi5OgpezNb+xx55HOiUt8kZtnCJIENQGvV2ahItpoJCy hyEsg1PL2PMXYjyIBlN6VIkx/XuG0a1ZabRf5rJRcNlLtTWA5TLGqxbKnprUkw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pU8fd-0004kM-QN; Mon, 20 Feb 2023 11:05:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU8fX-0004jh-BT for guix-devel@gnu.org; Mon, 20 Feb 2023 11:05:40 -0500 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pU8fV-00074N-3F; Mon, 20 Feb 2023 11:05:35 -0500 Received: by mail-qt1-x836.google.com with SMTP id w42so1126130qtc.2; Mon, 20 Feb 2023 08:05:30 -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=7Akh97NpM2vUjUZ26dTVrxQDwv7OHeDXawGKTXyPJ6/aqVq5/2APLGmCsN4DxrI9jd 8pn0D3OO6DdTW4Tx4OkjbERCJQ+JlrAanikoFXuyO4qOz6biU+OYOGrlY5dE/wD0/vC4 NO2RLWoZ6la+qxeJDX4d48w6RkqvxVcarvk/u/dJ6IkzM77N4SuPHdOf2M4hdV1NU0UF VcGsW5+4hGPqIU6+XxOUTupdukjqLJumFpkhcUtEAIJHKfEcRczBCVP/2ft0dPtJXUmC Bs4Z+ElX9xUWU5eraKhYY2y+Y0i6m1xwNcqBJLWlS9yxp3FOu3Ntj5VX+U7acgSIRMrc CNaQ== X-Gm-Message-State: AO0yUKWEH1QnogCAnNIUTxRCaRgOOtx5UwLdcgHm3FRUvY3+BxFFO/qf Cs1c6qQdxAveBv3owm0JrDo= 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?= Cc: Pierre Neidhardt , 30435@debbugs.gnu.org, guix-devel@gnu.org, hmk 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 Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x836.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 4F7C67FEF X-Spam-Score: -9.86 X-Migadu-Spam-Score: -9.86 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: B9DjxlS1K8cv 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