From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Gerwitz Subject: Re: Running IceCat in a container Date: Wed, 17 Jan 2018 14:05:28 -0500 Message-ID: <87lggwpapz.fsf@gnu.org> References: <87vag2wopo.fsf@gnu.org> <877esh3gwd.fsf@gnu.org> <87tvvlrzlc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebt2o-0004Ex-1W for help-guix@gnu.org; Wed, 17 Jan 2018 14:06:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebt2m-0008Ot-Th for help-guix@gnu.org; Wed, 17 Jan 2018 14:06:42 -0500 In-Reply-To: <87tvvlrzlc.fsf@gnu.org> (Mike Gerwitz's message of "Tue, 16 Jan 2018 21:25:19 -0500") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Jan 16, 2018 at 21:25:19 -0500, Mike Gerwitz wrote: > On Tue, Jan 16, 2018 at 17:30:42 +0100, Ludovic Court=C3=A8s wrote: >> Perhaps you could define a package that simply runs =E2=80=9Cfc-cache=E2= =80=9D with the >> fonts it has as inputs, and then pass that to =E2=80=98guix environment= =E2=80=99. > > Oh, interesting; I wouldn't have thought of that. Actually, I could use a little bit of help. After hours of fontconf research and related stuff (more than I ever cared to know), I think I'll be able to get away with running fc-cache as you suggested using a package. My ultimate goal I think is to still use the user's fonts, but I still don't know a way to do that, since the /gnu symlinks are unavailable within the container.[0] It _does_ work if the links are identical between the host and cointainer---e.g. copying the font files into ~/.local/share/fonts, but that's obviously undesirable. Unless you happen to know a good way to selectively expose those to a container. With that said, I'm having trouble creating a package: it wants a `source' field, but this is a metapackage of sorts, and I didn't intend on having any source files; I can generate them using the builder and trivial-build-system. How can I work around this? Thanks. [0]: What seems to be the case---which is probably obvious to anyone who knows about this stuff---is that X11 on the host (since we're sharing the socket) needs access to the font in addition to the software running in the container. I don't think this is the case for traditional X11 fonts (not using fontconf), but I'm not dealing with those. =2D-=20 Mike Gerwitz Free Software Hacker+Activist | GNU Maintainer & Volunteer GPG: D6E9 B930 028A 6C38 F43B 2388 FEF6 3574 5E6F 6D05 https://mikegerwitz.com --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJaX554AAoJEIyRe39dxRuiox4P/RtTqEFLjEirNoR9rtpyXTkE fDC3aZRU5HZsfBpTRm4KQRaGxp3IA+4SG/jcBtsWOtxbWNACxVVbpaopQO+/3kU0 uhaCYREqgMHqlMZbecVFf2QfEX5MQe1VEXgPBo3pfLenDtLTDkFIWchBahbJbFNR 0YmUVOuN44ysT6j+SYMINhxxvmyaP9RqFInLIeFypK3IwehyGRm7ddsfm5xXpl2x GG0FWdnUAR4iiGu6PsMbX2wSoppr3jxbJkx5soul5MgBr6Qi9f75kAMpLfizoTjr tUjteY9kDCsZbYrhHt994Eo3K/pzqCkI8d1L65dYYqJQW7asjWrAjyWF/JYg5Eec hfGDdZjKKWECBOBTTcGbJ6eqd06xVe1KRPMlRYwC+WxPkxuptUmy082X5zVFEzVg dVYQAGTo0oLriDrCfaGshoWIisiCodTDO3CEDttyzsWrXJZiJf41/AssWV6eSS54 HFZOxed1Twqb4eYnI5DWIedDLdNOaS4U3Y9DzJmWwk6mr8uwCQg/ca8qzcJqyz73 3K0wFg5cQyRUfGfVuFi8aDoEfW2WcthCKa2NLJfOtXbqyZCmKdYK7eX7rnLr1o3O HDyGpbS2DLYLGSiGdH8hdCsyeQpyqVk8AgYS48UsEactqW7iQ0krb+buGXBIb+UC A4lUly4ursQunW92VBcU =4lcT -----END PGP SIGNATURE----- --=-=-=--