Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Kang Kai <Kai.Kang@windriver.com>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 3/5] update_font_cache: update script for multilib
Date: Thu, 6 Sep 2018 23:27:27 +0800	[thread overview]
Message-ID: <ab609cc5-dd34-bbc1-294f-be6985a30a2a@windriver.com> (raw)
In-Reply-To: <4800fed2-8a51-7bb0-b6c6-fa1402289831@windriver.com>

[-- Attachment #1: Type: text/plain, Size: 3939 bytes --]

On 2018年09月04日 18:02, Kang Kai wrote:
> On 2018年09月04日 17:44, Martin Jansa wrote:
>> Hi Kai,
>>
>> do you have similar fix for update_gio_module_cache intercept? It 
>> seems to fail similarly with multilib enabled.
>
> The fix is from script update_gio_module_cache, so I thought it works 
> and didn't meet the failure. I'll check it.
Hi Martin,

It has been done by 
http://git.openembedded.org/openembedded-core/commit/?id=1f53140528d79c38d4f3a82cd0a03bd0ddc87275
Add lib23-gconf to image which inherits gio-module-cache, then build 
image successfully.

Regards,
Kai


>
> Thanks,
> Kai
>
>>
>> Regards,
>>
>> On Sat, Aug 25, 2018 at 7:14 PM Kai Kang <kai.kang@windriver.com 
>> <mailto:kai.kang@windriver.com>> wrote:
>>
>>     Packages which inherit fontcache.bbclass call postinstall script
>>     update_font_cache. And in update_font_cache, it calls
>>     ${bindir}/fc-cache
>>     by qemuwrapper. When multilib is enabled, both packages foo and
>>     lib32-foo
>>     will call ${bindir}/fc-cache and one of them will fail to run
>>     obviously.
>>
>>     Duplicate install file fc-cache to ${libexecdir} with ${MLPREFIX} and
>>     call proper fc-cache in update_font_cache.
>>
>>     Signed-off-by: Kai Kang <kai.kang@windriver.com
>>     <mailto:kai.kang@windriver.com>>
>>     ---
>>      meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb
>>     <http://fontconfig_2.12.6.bb> | 8 +++++++-
>>      scripts/postinst-intercepts/update_font_cache         | 2 +-
>>      2 files changed, 8 insertions(+), 2 deletions(-)
>>
>>     diff --git
>>     a/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb
>>     <http://fontconfig_2.12.6.bb>
>>     b/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb
>>     <http://fontconfig_2.12.6.bb>
>>     index d4cbce80b45..db36c867741 100644
>>     --- a/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb
>>     <http://fontconfig_2.12.6.bb>
>>     +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb
>>     <http://fontconfig_2.12.6.bb>
>>     @@ -35,9 +35,15 @@ do_configure_prepend() {
>>          rm -f ${S}/src/fcobjshash.h ${S}/src/fcobjshash.gperf
>>      }
>>
>>     +do_install_append_class-target() {
>>     +    # duplicate fc-cache for postinstall script
>>     +    mkdir -p ${D}${libexecdir}
>>     +    cp ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache
>>     +}
>>     +
>>      PACKAGES =+ "fontconfig-utils"
>>      FILES_${PN} =+ "${datadir}/xml/*"
>>     -FILES_fontconfig-utils = "${bindir}/*"
>>     +FILES_fontconfig-utils = "${bindir}/* ${libexecdir}/*"
>>
>>      # Work around past breakage in debian.bbclass
>>      RPROVIDES_fontconfig-utils = "libfontconfig-utils"
>>     diff --git a/scripts/postinst-intercepts/update_font_cache
>>     b/scripts/postinst-intercepts/update_font_cache
>>     index 20e9048adfc..e0ec471964c 100644
>>     --- a/scripts/postinst-intercepts/update_font_cache
>>     +++ b/scripts/postinst-intercepts/update_font_cache
>>     @@ -2,5 +2,5 @@
>>
>>      set -e
>>
>>     -PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E
>>     ${fontconfigcacheenv} $D${bindir}/fc-cache --sysroot=$D
>>     --system-only ${fontconfigcacheparams}
>>     +PSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E
>>     ${fontconfigcacheenv} $D${libexecdir}/${binprefix}fc-cache
>>     --sysroot=$D --system-only ${fontconfigcacheparams}
>>      chown -R root:root $D${fontconfigcachedir}
>>     -- 
>>     2.11.0
>>
>>     -- 
>>     _______________________________________________
>>     Openembedded-core mailing list
>>     Openembedded-core@lists.openembedded.org
>>     <mailto:Openembedded-core@lists.openembedded.org>
>>     http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>
>
> -- 
> Regards,
> Neil | Kai Kang


-- 
Regards,
Neil | Kai Kang


[-- Attachment #2: Type: text/html, Size: 7186 bytes --]

  reply	other threads:[~2018-09-06 15:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-25 17:13 [PATCH V3 0/5] allarch: disable allarch when multilib is used Kai Kang
2018-08-25 17:13 ` [PATCH 1/5] " Kai Kang
2018-08-25 17:13 ` [PATCH 2/5] sstate.bbclass: update SSTATE_DUPWHITELIST Kai Kang
2018-08-25 17:13 ` [PATCH 3/5] update_font_cache: update script for multilib Kai Kang
2018-08-25 17:38   ` Alexander Kanavin
2018-08-26  2:54     ` Kang Kai
2018-09-04  9:44   ` Martin Jansa
2018-09-04 10:02     ` Kang Kai
2018-09-06 15:27       ` Kang Kai [this message]
2018-09-09 20:39         ` Martin Jansa
2018-09-09 22:58           ` Martin Jansa
2018-09-10  3:44             ` Kang Kai
2018-08-25 17:13 ` [PATCH 4/5] statetests.py: drop test_sstate_allarch_samesigs_multilib Kai Kang
2018-08-25 17:13 ` [PATCH 5/5] multilib: fix install file conflicts Kai Kang
2018-08-25 17:35 ` ✗ patchtest: failure for allarch: disable allarch when multilib is used (rev3) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab609cc5-dd34-bbc1-294f-be6985a30a2a@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox