Re: Next steps for a reproducible Fontconfig?

"Keith Packard" <[email protected]> Thu, 31 Jan 2019 00:35:54 -0800
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
Alexander Larsson <[email protected]> writes:

> As I said in an earlier email, it needs to be in the individual dir
> elements, because a global salt is not right.

Do you want it in the <dir> elements directly? That would be more
straightforward in many ways and could avoid troubles with separate salt
declarations that take effect more broadly than one directory.

So, one file (generated at flatpak creation time) with

        <dir salt="random bits">/usr/share/fonts</dir>
        <dir>/run/host/fonts</dir>

and another (generated at runtime) with

        <remap-dir as-path="/usr/share/fonts">/run/host/fonts</remap-dir>

Presumably you will mask all host configured font paths somehow? Maybe
you need to be able to inherit the 'salt' value from the host (if set)?
If so, we could have:

        <remap-dir as-path="/usr/share/fonts" salt="host salt for /usr/share/fonts">/run/host/fonts</remap-dir>

-- 
-keith

_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAlxSs2oACgkQ2yIaaQAA
ABFpfw//S50APC0JtaLCjRjwBfB1G+jV/7Z/8dmGwyLhvhWIJp9G4NbCKWzV8Nkw
Xm1ptBfcjZnDBSMD+KR9HiriVE7aioW8Oiv/69lgRFGcahuq/I8nYM89py/xscQR
I62VTPHn771ejovZHrAEqup2cxLytmE2SE58HIwsv2KBdeq6YXSNfCht5PzM97cS
i8fVe1UvF/17cYumlieHUirQo1pEAWpnyPX3InzblJChTf2UsRHLdxFIhzXrel6Y
6jgijAw19PAkgzHnl/sHOfgs1gx0fAn97/wSr1R2ILT8ReS+3jvECQjcpp37sYMK
auDGXyyg8FBFzvgHIQ4I2YWN1Ua/QR07rTvs3XTRVH4Qk86UIUSlZv4m6pnjjsLv
eFToodSXFRcl/Ir7T7geDGO83I3HngwlNi85kdrKM+lBKMM7XvrXdnIrpIKy28uC
EgFq0JWUGiU8reOBzLKZobkCxiUT329SRXoLLh/AAObc82wsluqn5aadwasbOdtt
A5+DsvDmM5cWo04I4LaUFyu06PrQvSJnoFplw47X7aXR0e5KQ95O/laZ0zEBZDIM
joyAxY5i7caT8YCbWxNd/+tK4DdDsMi+b/780CHzIWxanBgkua7kyxARWDHNqugp
V98IgZJgCZPy7gBXqeQamO2+TJsGWdE6EOGqL5yndjj7eD9VGCo=
=NBdL
-----END PGP SIGNATURE-----