diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2009-08-16 15:03:06 -0600 |
---|---|---|
committer | Rémi Cardona <remi@gentoo.org> | 2009-09-01 16:56:21 +0200 |
commit | 2d8d8f167011c62973be0ab9538c3a7057c65fa4 (patch) | |
tree | f7cf2380de0d631267e163e1a021b7c18d449436 | |
parent | fb5ea1122156a710a84b71e885e14cdebaf6ac90 (diff) |
xfree86-type1: Skip fc-cache with DESTDIR.
Fontconfig-2.7.0 runs chmod on the cachedir, causing access violations
when installing into a sandboxed environment.
Signed-off-by: Ryan Hill <dirtyepic@gentoo.org>
Signed-off-by: Rémi Cardona <remi@gentoo.org>
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 2e65a04..4e4adb7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,7 +32,16 @@ install-data-hook: $(MKFONTSCALE) $(DESTDIR)$(fontdir) @rm -f $(DESTDIR)$(fontdir)/font.dir $(MKFONTDIR) $(DESTDIR)$(fontdir) - $(FCCACHE) $(DESTDIR)$(fontdir) + @(if `test -z '$(DESTDIR)'`; then \ + echo $(FCCACHE) $(fontdir); \ + $(FCCACHE) $(fontdir); \ + else \ + echo "***"; \ + echo "*** Warning: fonts.cache not built"; \ + echo "***"; \ + echo "*** Generate this file manually on host system using fc-cache"; \ + echo "***"; \ + fi) distuninstallcheck: @: |