From unknown Sun Jun 22 17:16:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40114] [PATCH] services: Add fontconfig-file-system-service. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Mar 2020 10:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40114@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15845284281190 (code B ref -1); Wed, 18 Mar 2020 10:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Mar 2020 10:47:08 +0000 Received: from localhost ([127.0.0.1]:39845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEWE3-0000J4-VZ for submit@debbugs.gnu.org; Wed, 18 Mar 2020 06:47:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:45483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEWE2-0000In-6z for submit@debbugs.gnu.org; Wed, 18 Mar 2020 06:47:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEWE0-0001h4-Q1 for guix-patches@gnu.org; Wed, 18 Mar 2020 06:47:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEWDz-0000AZ-Gp for guix-patches@gnu.org; Wed, 18 Mar 2020 06:47:00 -0400 Received: from flashner.co.il ([178.62.234.194]:48686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jEWDz-0008WD-A3 for guix-patches@gnu.org; Wed, 18 Mar 2020 06:46:59 -0400 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id E015140212; Wed, 18 Mar 2020 10:46:57 +0000 (UTC) From: Efraim Flashner Date: Wed, 18 Mar 2020 12:46:26 +0200 Message-Id: <20200318104626.20381-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 178.62.234.194 X-Spam-Score: 0.3 (/) 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: -0.7 (/) * gnu/services/desktop.scm (%fontconfig-file-system, fontconfig-file-system-service): New variables. (%desktop-services): Add fontconfig-file-system-service. --- I've been using a tmpfs mounted read-only at /var/cache/fontconfig for months now without any problems. This adds it to %desktop-services. --- gnu/services/desktop.scm | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 1294d748ac..848ed25e3c 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -5,7 +5,7 @@ ;;; Copyright =C2=A9 2016 Sou Bunnbu ;;; Copyright =C2=A9 2017 Maxim Cournoyer ;;; Copyright =C2=A9 2017 ng0 -;;; Copyright =C2=A9 2018 Efraim Flashner +;;; Copyright =C2=A9 2018, 2020 Efraim Flashner ;;; Copyright =C2=A9 2018 Ricardo Wurmus ;;; Copyright =C2=A9 2017, 2019 Christopher Baines ;;; Copyright =C2=A9 2019 Tim Gesthuizen @@ -36,7 +36,7 @@ #:use-module (gnu services networking) #:use-module (gnu services sound) #:use-module ((gnu system file-systems) - #:select (%elogind-file-systems)) + #:select (%elogind-file-systems file-system)) #:use-module (gnu system) #:use-module (gnu system shadow) #:use-module (gnu system pam) @@ -106,6 +106,8 @@ elogind-service elogind-service-type =20 + fontconfig-file-system-service + accountsservice-service-type accountsservice-service =20 @@ -797,6 +799,25 @@ when they log out." =20 =0C ;;; +;;; Fontconfig and other desktop file-systems. +;;; + +(define %fontconfig-file-system + (file-system + (device "none") + (mount-point "/var/cache/fontconfig") + (type "tmpfs") + (flags '(read-only)) + (check? #f))) + +;; The global fontconfig directory is unused in Guix and has been +;; known to cause problems so we mount it read-only. +(define fontconfig-file-system-service + (simple-service 'fontconfig-file-system + file-system-service-type + (list %fontconfig-file-system))) +=0C +;;; ;;; AccountsService service. ;;; =20 @@ -1185,6 +1206,10 @@ or setting its password with passwd."))) ;; perform administrative tasks (similar to "sudo"). polkit-wheel-service =20 + ;; The global fontconfig directory is unused in Guix and has be= en + ;; known to cause problems so we mount it read-only. + fontconfig-file-system-service + ;; NetworkManager and its applet. (service network-manager-service-type) (service wpa-supplicant-service-type) ;needed by NetworkMana= ger --=20 2.25.1 From unknown Sun Jun 22 17:16:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40114] [PATCH] services: Add fontconfig-file-system-service. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Mar 2020 21:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40114 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 40114@debbugs.gnu.org Received: via spool by 40114-submit@debbugs.gnu.org id=B40114.158482764030168 (code B ref 40114); Sat, 21 Mar 2020 21:54:02 +0000 Received: (at 40114) by debbugs.gnu.org; 21 Mar 2020 21:54:00 +0000 Received: from localhost ([127.0.0.1]:48327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFm48-0007qW-21 for submit@debbugs.gnu.org; Sat, 21 Mar 2020 17:54:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFm46-0007q8-Sh for 40114@debbugs.gnu.org; Sat, 21 Mar 2020 17:53:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jFm41-0004Vc-3f; Sat, 21 Mar 2020 17:53:53 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56256 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jFm40-0003Ij-FW; Sat, 21 Mar 2020 17:53:52 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200318104626.20381-1-efraim@flashner.co.il> Date: Sat, 21 Mar 2020 22:53:50 +0100 In-Reply-To: <20200318104626.20381-1-efraim@flashner.co.il> (Efraim Flashner's message of "Wed, 18 Mar 2020 12:46:26 +0200") Message-ID: <87zhc9wf0x.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) 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.7 (-) Hello! Efraim Flashner skribis: > * gnu/services/desktop.scm (%fontconfig-file-system, > fontconfig-file-system-service): New variables. > (%desktop-services): Add fontconfig-file-system-service. [...] > +(define %fontconfig-file-system > + (file-system > + (device "none") > + (mount-point "/var/cache/fontconfig") > + (type "tmpfs") > + (flags '(read-only)) > + (check? #f))) > + > +;; The global fontconfig directory is unused in Guix and has been > +;; known to cause problems so we mount it read-only. What about something like: ;; The global fontconfig cache directory can sometimes contain stale ;; entries, possibly referencing fonts that have been GC=E2=80=99d, so mo= unt ;; it read-only. I think that=E2=80=99s a correct summary? Perhaps we could link to past discussions if we have one. Otherwise LGTM, thank you! Ludo=E2=80=99. From unknown Sun Jun 22 17:16:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Efraim Flashner Subject: bug#40114: closed (Re: [bug#40114] [PATCH] services: Add fontconfig-file-system-service.) Message-ID: References: <20200322070929.GB1685@E5400> <20200318104626.20381-1-efraim@flashner.co.il> X-Gnu-PR-Message: they-closed 40114 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 40114@debbugs.gnu.org Date: Sun, 22 Mar 2020 07:11:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1584861062-30272-1" This is a multi-part message in MIME format... ------------=_1584861062-30272-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #40114: [PATCH] services: Add fontconfig-file-system-service. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 40114@debbugs.gnu.org. --=20 40114: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40114 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1584861062-30272-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 40114-done) by debbugs.gnu.org; 22 Mar 2020 07:10:08 +0000 Received: from localhost ([127.0.0.1]:48542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFukK-0007qd-7t for submit@debbugs.gnu.org; Sun, 22 Mar 2020 03:10:08 -0400 Received: from flashner.co.il ([178.62.234.194]:58488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFukH-0007q3-Pu for 40114-done@debbugs.gnu.org; Sun, 22 Mar 2020 03:10:06 -0400 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 00B964020F; Sun, 22 Mar 2020 07:09:59 +0000 (UTC) Date: Sun, 22 Mar 2020 09:09:29 +0200 From: Efraim Flashner To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#40114] [PATCH] services: Add fontconfig-file-system-service. Message-ID: <20200322070929.GB1685@E5400> References: <20200318104626.20381-1-efraim@flashner.co.il> <87zhc9wf0x.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rJwd6BRFiFCcLxzm" Content-Disposition: inline In-Reply-To: <87zhc9wf0x.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 40114-done Cc: 40114-done@debbugs.gnu.org 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 (-) --rJwd6BRFiFCcLxzm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 21, 2020 at 10:53:50PM +0100, Ludovic Court=C3=A8s wrote: > Hello! >=20 > Efraim Flashner skribis: >=20 > > * gnu/services/desktop.scm (%fontconfig-file-system, > > fontconfig-file-system-service): New variables. > > (%desktop-services): Add fontconfig-file-system-service. >=20 > [...] >=20 > > +(define %fontconfig-file-system > > + (file-system > > + (device "none") > > + (mount-point "/var/cache/fontconfig") > > + (type "tmpfs") > > + (flags '(read-only)) > > + (check? #f))) > > + > > +;; The global fontconfig directory is unused in Guix and has been > > +;; known to cause problems so we mount it read-only. >=20 > What about something like: >=20 > ;; The global fontconfig cache directory can sometimes contain stale > ;; entries, possibly referencing fonts that have been GC=E2=80=99d, so = mount > ;; it read-only. >=20 > I think that=E2=80=99s a correct summary? Perhaps we could link to past > discussions if we have one. I didn't find a canonical bug report but it was mentioned in several in the past. I added references to two of them. >=20 > Otherwise LGTM, thank you! >=20 > Ludo=E2=80=99. Thanks. Patch pushed. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --rJwd6BRFiFCcLxzm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl53DygACgkQQarn3Mo9 g1EfrA//SLck7B1/8VflPczbXyHMX9VogTsnRQUYtX77EqsdTmvYTVjwj675qgGH iFFFMzcX3SviGEUHOuzvZKpGJVOh7VaCaFXfGNOpK45/O8HH5/aQntiU76FW5oiO zpcX4f6Kg0NOGQAx7hIARLVJLD8GeIQuGUjW48wUUX/SEZeNr1YkZOi6C06Fa7Cf 6in3EJismF+5ZEn6GsVwWp1f+ANvuXB8Ie5c1+KtSNu1MzEwYkIxzj0rXCsogmAB Z7nSTy6fkSSdbTFPlZ4ebiJQRe2Ay+7fuG7qcFRJQJgisL5fJ+HJtHDuRcJi/98M 0pVenQ9LLB6SALZCM7nbljKPdB2CknwZMqvFnop0QXg14S+mxetsC65UB72ZRoH1 vT+AzspErVadLD2tziKVRkDtV/74SCoIMosB8froAZTKTdg89vgecTw7wU4EuA9v RHdpD2tCTInKKx35MEJsx85FO3c431YFiWY426YtQX/s52Zak3VWkbxDAhq2VALT CUCdiPcmiKDN9HPV6QciRihqiMtsYeYLlCDPJiPCkTmiM5GeESneqlEz+0bmiuMK MC9RJundCzHt18b8Zh8aDZD6/XCPSInuguugh+UTO6qi7kejOKT/ke9qVdj1XuQ7 T9aKZhc3Xy/nUBVvlW2HMERv7j1xmSWTHCvBzx/9sniITjAZgpY= =bx2l -----END PGP SIGNATURE----- --rJwd6BRFiFCcLxzm-- ------------=_1584861062-30272-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Mar 2020 10:47:08 +0000 Received: from localhost ([127.0.0.1]:39845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEWE3-0000J4-VZ for submit@debbugs.gnu.org; Wed, 18 Mar 2020 06:47:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:45483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jEWE2-0000In-6z for submit@debbugs.gnu.org; Wed, 18 Mar 2020 06:47:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEWE0-0001h4-Q1 for guix-patches@gnu.org; Wed, 18 Mar 2020 06:47:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEWDz-0000AZ-Gp for guix-patches@gnu.org; Wed, 18 Mar 2020 06:47:00 -0400 Received: from flashner.co.il ([178.62.234.194]:48686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jEWDz-0008WD-A3 for guix-patches@gnu.org; Wed, 18 Mar 2020 06:46:59 -0400 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id E015140212; Wed, 18 Mar 2020 10:46:57 +0000 (UTC) From: Efraim Flashner To: guix-patches@gnu.org Subject: [PATCH] services: Add fontconfig-file-system-service. Date: Wed, 18 Mar 2020 12:46:26 +0200 Message-Id: <20200318104626.20381-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 178.62.234.194 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit Cc: Efraim Flashner 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: -0.7 (/) * gnu/services/desktop.scm (%fontconfig-file-system, fontconfig-file-system-service): New variables. (%desktop-services): Add fontconfig-file-system-service. --- I've been using a tmpfs mounted read-only at /var/cache/fontconfig for months now without any problems. This adds it to %desktop-services. --- gnu/services/desktop.scm | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 1294d748ac..848ed25e3c 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -5,7 +5,7 @@ ;;; Copyright =C2=A9 2016 Sou Bunnbu ;;; Copyright =C2=A9 2017 Maxim Cournoyer ;;; Copyright =C2=A9 2017 ng0 -;;; Copyright =C2=A9 2018 Efraim Flashner +;;; Copyright =C2=A9 2018, 2020 Efraim Flashner ;;; Copyright =C2=A9 2018 Ricardo Wurmus ;;; Copyright =C2=A9 2017, 2019 Christopher Baines ;;; Copyright =C2=A9 2019 Tim Gesthuizen @@ -36,7 +36,7 @@ #:use-module (gnu services networking) #:use-module (gnu services sound) #:use-module ((gnu system file-systems) - #:select (%elogind-file-systems)) + #:select (%elogind-file-systems file-system)) #:use-module (gnu system) #:use-module (gnu system shadow) #:use-module (gnu system pam) @@ -106,6 +106,8 @@ elogind-service elogind-service-type =20 + fontconfig-file-system-service + accountsservice-service-type accountsservice-service =20 @@ -797,6 +799,25 @@ when they log out." =20 =0C ;;; +;;; Fontconfig and other desktop file-systems. +;;; + +(define %fontconfig-file-system + (file-system + (device "none") + (mount-point "/var/cache/fontconfig") + (type "tmpfs") + (flags '(read-only)) + (check? #f))) + +;; The global fontconfig directory is unused in Guix and has been +;; known to cause problems so we mount it read-only. +(define fontconfig-file-system-service + (simple-service 'fontconfig-file-system + file-system-service-type + (list %fontconfig-file-system))) +=0C +;;; ;;; AccountsService service. ;;; =20 @@ -1185,6 +1206,10 @@ or setting its password with passwd."))) ;; perform administrative tasks (similar to "sudo"). polkit-wheel-service =20 + ;; The global fontconfig directory is unused in Guix and has be= en + ;; known to cause problems so we mount it read-only. + fontconfig-file-system-service + ;; NetworkManager and its applet. (service network-manager-service-type) (service wpa-supplicant-service-type) ;needed by NetworkMana= ger --=20 2.25.1 ------------=_1584861062-30272-1--