[oe-commits] [openembedded-core] 43/103: fontconfig: Don't add font directories from host

git at git.openembedded.org git at git.openembedded.org
Sun Feb 28 11:35:43 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 8cc47e6bfb7f623711d9cd9e71a7f72ab2838f57
Author: Martin Jansa <martin.jansa at gmail.com>
AuthorDate: Tue Feb 23 16:32:07 2016 +0100

    fontconfig: Don't add font directories from host
    
    * when enabled, configure check for "fonts" directory existence in following directories:
      /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11
      on _host_ system and if it exists it adds <dir> element to
      /etc/fonts/fonts.conf
    * update_font_cache postinst will then fail if host system has e.g.
      /usr/lib/X11/fonts while the rootfs doesn't have it
    * if you're installing fonts to other directories, you'll need to adapt
      this EXTRA_OECONF to find them that's why it's in separate variable
    
    [YOCTO #9155] - update_font_cache postinst failing with read-only filesystem
    
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-graphics/fontconfig/fontconfig_2.11.94.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.11.94.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.11.94.bb
index 9bbff20..b3bc7eb 100644
--- a/meta/recipes-graphics/fontconfig/fontconfig_2.11.94.bb
+++ b/meta/recipes-graphics/fontconfig/fontconfig_2.11.94.bb
@@ -40,6 +40,10 @@ inherit autotools pkgconfig
 
 FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig"
 
-EXTRA_OECONF = " --disable-docs --with-default-fonts=${datadir}/fonts --with-cache-dir=${FONTCONFIG_CACHE_DIR}"
+# comma separated list of additional directories
+# /usr/share/fonts is already included by default (you can change it with --with-default-fonts)
+FONTCONFIG_FONT_DIRS ?= "no"
+
+EXTRA_OECONF = " --disable-docs --with-default-fonts=${datadir}/fonts --with-cache-dir=${FONTCONFIG_CACHE_DIR} --with-add-fonts=${FONTCONFIG_FONT_DIRS}"
 
 BBCLASSEXTEND = "native"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list