[Libreoffice-commits] core.git: postprocess/Module_postprocess.mk vcl/unx

Stephan Bergmann sbergman at redhat.com
Mon Sep 25 07:28:30 UTC 2017


 postprocess/Module_postprocess.mk          |    6 ++++--
 vcl/unx/generic/fontmanager/fontconfig.cxx |    2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)

New commits:
commit d383d0e9852ac52c36b138c33ce3b3ede8df9215
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun Sep 24 19:59:43 2017 +0200

    Install fc_local.conf only where used
    
    ...and at least issue a SAL_INFO when it's missing (there may theoretically be
    multiple directories, and it need not be present in every one, so nothing
    stronger than SAL_INFO can be used)
    
    Change-Id: I9b7257a551626e5ad081cfb75422a8bd71b86aa4
    Reviewed-on: https://gerrit.libreoffice.org/42714
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/postprocess/Module_postprocess.mk b/postprocess/Module_postprocess.mk
index d92a348e4142..6ab59fcc59c1 100644
--- a/postprocess/Module_postprocess.mk
+++ b/postprocess/Module_postprocess.mk
@@ -28,11 +28,13 @@ $(eval $(call gb_Module_add_targets,postprocess,\
 ))
 endif
 
-# For non-WNT, add instdir/share/fonts/truetype/fc_local.conf when it shall
+# For configurations that use fontconfig (cf. inclusion of
+# vcl/unx/generic/fontmanager/fontconfig.cxx in Library_vcl), add
+# instdir/share/fonts/truetype/fc_local.conf when it shall
 # contain content from at least one of external/more_fonts/fc_local.snippet
 # (conditional on MORE_FONTS in BUILD_TYPE) and
 # extras/source/truetype/symbol/fc_local.snippet (unconditional):
-ifneq ($(OS),WNT)
+ifneq ($(USING_X11)$(ENABLE_HEADLESS)$(filter ANDROID,$(OS)),)
 $(eval $(call gb_Module_add_targets,postprocess, \
     CustomTarget_fontconfig \
     Package_fontconfig \
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx
index 37f45aeac71c..459678819575 100644
--- a/vcl/unx/generic/fontmanager/fontconfig.cxx
+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx
@@ -681,6 +681,8 @@ void PrintFontManager::addFontconfigDir( const OString& rDirName )
                         reinterpret_cast<FcChar8 const *>(aConfFileName.getStr()), FcTrue);
         if( !bCfgOk )
             fprintf( stderr, "FcConfigParseAndLoad( \"%s\") => %d\n", aConfFileName.getStr(), bCfgOk );
+    } else {
+        SAL_INFO("vcl", "cannot open " << aConfFileName);
     }
 }
 


More information about the Libreoffice-commits mailing list