]> git.wh0rd.org - fontconfig.git/commit
fc-cache: add a --root option root
authorMike Frysinger <vapier@gentoo.org>
Tue, 8 Nov 2011 01:00:51 +0000 (20:00 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 8 Nov 2011 19:45:43 +0000 (14:45 -0500)
commitd0471dd2faca37f7ee5997ad9db8278db0e99206
tree6d829efe57aba70dfd238b807d209b7e44a1428f
parentbb8057ea77ec89e789afbc6e87b7a16d479d3105
fc-cache: add a --root option

The point of the root support is to let fc-cache be usable on fs trees
other than just /.  This is useful to people cross-compiling, and for
non-root building (chroot won't work) for distro maintainers.  So now
we can tell fontconfig to search a specific root path to locate all of
its configs/fonts/caches/etc... without having to modify the configs.

We have to add a few new helper options for setting/getting the config
root, and then extend some of the existing API funcs to take a config
struct as an option.  This way the low level pieces know which paths
to actually search.

First we export the internal FcStat helper.  The fc-cache code uses
stat() directly, but we already have a FcStat helper to workaround
misc issues, so just use that one instead.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
fc-cache/fc-cache.c
fc-cache/fc-cache.sgml
fc-cat/fc-cat.c
fontconfig/fontconfig.h
src/fcatomic.c
src/fccache.c
src/fccfg.c
src/fcdir.c
src/fcfreetype.c
src/fcint.h
src/fcxml.c