[OE-core] [PATCH 3/6] update_font_cache: update script for multilib

Kang Kai Kai.Kang at windriver.com
Tue Sep 4 09:41:05 UTC 2018


On 2018年09月04日 17:12, richard.purdie at linuxfoundation.org wrote:
> On Sun, 2018-08-26 at 06:06 -0700, Kai Kang 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 at windriver.com>
>> ---
>>   meta/recipes-graphics/fontconfig/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
>> b/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb
>> index d4cbce80b45..db36c867741 100644
>> --- a/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb
>> +++ b/meta/recipes-graphics/fontconfig/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
> We may as well hardlink this, same for the following patch too.

OK. Got it.

--Kai

>
> Cheers,
>
> Richard
>

-- 
Regards,
Neil | Kai Kang




More information about the Openembedded-core mailing list