Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by mail.openembedded.org (Postfix) with ESMTP id F010660167 for ; Tue, 21 Apr 2015 10:53:04 +0000 (UTC) Received: by wgyo15 with SMTP id o15so209230243wgy.2 for ; Tue, 21 Apr 2015 03:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/FnceBp864m4NHuSAcxJJEh58RqmaTfmWQ+nhEhWFuY=; b=nQ4KLfDelSTevezjtIgm7CDr6DjbpqrENU4EMdfkpGsRSz9CNJUocKYblA9VzkWT0U kbUODVzWxOCDFfRQ38icDPnRtJBwWPDZsxANoAbCIkAxZgJNqVJD9wNO8n+dlqlYvuGo TBtNlJ8HbHvGttkNRnrdeqgneR81Iai8nvovtc4wOA2TBkhlBAaM8/hDQ/EJuXKFBfm1 QrI7ijLqfUTnnKKBXLDQcuGe1OQTBIZdMSogh4jgwDqdA1Tk8OKffU2Qwyw9/wBWkRpQ /L36HM6LPJmETJMBePhLKgP7pShLgdu0fyXyvSj5SUkzi/sRdfvXNFh1X5e0POkxzLld zERw== X-Received: by 10.180.215.101 with SMTP id oh5mr4820740wic.6.1429613585244; Tue, 21 Apr 2015 03:53:05 -0700 (PDT) Received: from localhost (ip-86-49-34-37.net.upcbroadband.cz. [86.49.34.37]) by mx.google.com with ESMTPSA id dx11sm2072891wjb.23.2015.04.21.03.53.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Apr 2015 03:53:04 -0700 (PDT) From: Martin Jansa X-Google-Original-From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Tue, 21 Apr 2015 12:53:03 +0200 Message-Id: <1429613583-15734-3-git-send-email-Martin.Jansa@gmail.com> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1429613583-15734-1-git-send-email-Martin.Jansa@gmail.com> References: <1429613583-15734-1-git-send-email-Martin.Jansa@gmail.com> Subject: [dizzy][PATCH 3/3] fontcache: allow to pass different fontconfig cache dir X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2015 10:53:05 -0000 Signed-off-by: Martin Jansa --- meta/classes/fontcache.bbclass | 4 ++-- meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb | 4 +++- scripts/postinst-intercepts/update_font_cache | 4 +--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass index dfbdfa1..d122387 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass @@ -8,11 +8,11 @@ inherit qemu FONT_PACKAGES ??= "${PN}" FONT_EXTRA_RDEPENDS ?= "fontconfig-utils" - +FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig" fontcache_common() { if [ "x$D" != "x" ] ; then $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} mlprefix=${MLPREFIX} bindir=${bindir} \ - libdir=${libdir} base_libdir=${base_libdir} localstatedir=${localstatedir} + libdir=${libdir} base_libdir=${base_libdir} fontconfigcachedir=${FONTCONFIG_CACHE_DIR} else fc-cache fi diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb index 797b321..7c5b4b4 100644 --- a/meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.11.1.bb @@ -37,6 +37,8 @@ DEBIAN_NOAUTONAME_fontconfig-utils = "1" inherit autotools pkgconfig -EXTRA_OECONF = " --disable-docs --with-default-fonts=${datadir}/fonts" +FONTCONFIG_CACHE_DIR ?= "${localstatedir}/cache/fontconfig" + +EXTRA_OECONF = " --disable-docs --with-default-fonts=${datadir}/fonts --with-cache-dir=${FONTCONFIG_CACHE_DIR}" BBCLASSEXTEND = "native" diff --git a/scripts/postinst-intercepts/update_font_cache b/scripts/postinst-intercepts/update_font_cache index 3907f25..c8c6018 100644 --- a/scripts/postinst-intercepts/update_font_cache +++ b/scripts/postinst-intercepts/update_font_cache @@ -2,6 +2,4 @@ PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D/${libdir}:$D/${base_libdir}\ $D${bindir}/fc-cache --sysroot=$D -chown -R root:root $D${localstatedir}/cache/fontconfig - - +chown -R root:root $D${fontconfigcachedir} -- 2.3.5