diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2009-08-16 14:54:23 -0600 |
---|---|---|
committer | Rémi Cardona <remi@gentoo.org> | 2009-09-01 16:36:16 +0200 |
commit | d5cb8b8e6ab8b832b87b7fabc9c90c36a2921420 (patch) | |
tree | d102925463e95f7b1ff4587edfa099a00924dae7 | |
parent | 16a78aa66239bd25bd63aa04a2ea5d0924f72bff (diff) |
misc-meltho: Skip running 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 7ca27ee..d46fd67 100644 --- a/Makefile.am +++ b/Makefile.am @@ -53,7 +53,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: @: |