From dbca5ca974d6cec77357082a6f86a2e0259e451a Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Sun, 16 Aug 2009 14:48:15 -0600 Subject: bitstream-type1: Skip fc-cache with DESTDIR. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fontconfig-2.7.0 runs chmod on the cachedir, causing access violations when installing into a sandboxed environment. Signed-off-by: Ryan Hill Signed-off-by: RĂ©mi Cardona --- Makefile.am | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7ff500d..ca20def 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,7 +47,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: @: -- cgit v1.2.3