Re: Next steps for a reproducible Fontconfig?
"Keith Packard" <[email protected]> Wed, 30 Jan 2019 15:07:07 -0800
| Newsgroups | gmane.comp.fonts.fontconfig |
|---|---|
| Message-ID | <[email protected]> |
Akira TAGOH <[email protected]> writes: > Hm, to deal with more complicated cases, I guess we may need to have > one global salt to affect everything and a path-specific salt for > remapped path. Or, more likely, no salt at all for the outermost layer as it doesn't really add anything here. > for flatpak case, they want to have a global salt to > change a salt in sandbox (for /usr/share/fonts in sandbox etc) and set > salt from host in 'remap-dir' to build cache filenames on host (for > /run/host/fonts and so on). We may want a command line tool that extracts data from the config for use by flatpak in building the dynamic configuration, including things like salt values per directory. Yeah, that might be made to work with flatpak essentially manually overriding the salt configuration so that it uses the flatpak-relative names. > This would avoid collision between one and origins. and assuming that > flatpaks can load config from host too, we could have: > > 10-salt.conf (from host): > <salt id="default"/> I'd leave this out and not have salt in the host. > 50-flatpak.conf (sandbox specific): > <remap-dir as-path="/usr/share/fonts">/run/host/fonts</remap-dir> > <salt id="randomdata"/> > <dir>/usr/share/fonts</dir> The salt here would need to have CDATA for the target directories, and I think flatpack wants to split the dynamic from static config bits. Dynamic (built at runtime): <remap-dir as-path="/usr/share/fonts" salt="">/run/host/fonts</remap-dir> Static (built in the flatpak): <dir salt="salt">/usr/share/fonts</dir> > > First salt element affects to 'remap-dir' and second one overrides it > for paths and change a salt in sandbox. I think we can put that into the remap-dir element as both of those are built at runtime? > To make things easier, we may also want to export all of dir elements > from fonts.conf to the separate file. flatpak can replace it with > 50-flatpak.conf in this case. or the file operation isn't desirable, > let's implement dir-reset element or something like that. I think a dir-reset makes a lot of sense so that the flatpak can control the set of font paths used. Building a command-line tool that flatpak can use to discover the relevant fontconfig information seems like a useful improvement; as I recall, flatpak is currently assuming /usr/share/fonts and ~/.fonts are used on the host. -- -keith _______________________________________________ Fontconfig mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/fontconfig
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlxSLhsACgkQ2yIaaQAA ABHhpA/+Jv4n97DyIEuQATGZ0HU0MpWOiHuxV6nyuzV3UZT4M9MRzdR/Un/dzHhO QIVl26HluY8bdOBnrrR+RVBmgxTOWnzHM++FtNFyEaizTQgc0JVOkOZU4JDRe99K j4SDBCSP1imCK9vjL30iGcS7hL68nrItiB+nKAYJyZ+4HXOpNHS0sOLufRYw9cs5 rsBM2+jF325Ml3yy4pPEgP0WGaCqPaYbiz6R1G9PUXauOa3KI4XuUJ3wgPj3406u iVPqOR3euuwmj7XV5EwQeJIJ3p0CMhl1YAiPivw5U4HkVerSJiTmeKgGNCWdS7oM KtbHu6/mJyKrRTND/9EGQB3Fl/iAAf5AXm1siUAfPndWTvFXkQ+6DukxHjClRQol kolgVPqALr9kmRcx+CEhRf+Gctiyye3U5euW0xD9fXxwTPFacTawsDajhrWSXKtF Cl4EZuO1gD6SYfvt0vcMJP6q4kBFh4wkPzJ05dIqOaOC7WMbzgBTXAs3Z94uOqbi 2l28KUdw1cAfy3sE4yypE4ZqxtSk7Oc7+PnCmtfHCuqcH67dFGezPf3/uGhgJVQq DHir10pcJmt6e7agFKUJmOVfQLHfUkaIXE1v6Yk39nb0WV2tn238QwCYbTRyq+Yy Qrs+BgszISb1Vf6VBMcctvR3+wb957rl8IZZGXBacceuoP7Nm0g= =lGxN -----END PGP SIGNATURE-----