[OE-core] [PATCH 1/1] xmlcatalog.bbclass: execute xmlcatalog only if it's available

ChenQi Qi.Chen at windriver.com
Mon Jul 8 07:14:50 UTC 2019


On 07/06/2019 12:38 AM, Burton, Ross wrote:
> We could just always install libxml2 into the SDK...

Good idea. I'll send out a new patch.

> On Fri, 5 Jul 2019 at 02:18, Chen Qi <Qi.Chen at windriver.com> wrote:
>> For build-sysroots.bb, the xmlcatalog would not be in its
>> staging directory. Causing the following error for eSDK.
>>
>> ERROR: build-sysroots-1.0-r0 do_build_native_sysroot: Command '/PATH/TO/IMAGE/testsdkext/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog' returned non-zero exit status 127.
>> ERROR: build-sysroots-1.0-r0 do_build_native_sysroot: Function failed: do_build_native_sysroot
>>
>> The problem could be reproduced by the following steps.
>> 1. Add in local.conf:
>>     IMAGE_INSTALL_append = " btrfs-tools"
>>     DISTRO_FEATURES_append = " api-documentation"
>>     INHERIT += "testsdk"
>> 2. bitbake core-image-minimal -c populate_sdk_ext
>> 3. bitbake core-image-minimal -c testsdkext
>>
>> Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
>> ---
>>   meta/classes/xmlcatalog.bbclass | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/meta/classes/xmlcatalog.bbclass b/meta/classes/xmlcatalog.bbclass
>> index 075aef8..e805e7b 100644
>> --- a/meta/classes/xmlcatalog.bbclass
>> +++ b/meta/classes/xmlcatalog.bbclass
>> @@ -5,6 +5,8 @@ XMLCATALOGS ?= ""
>>   SYSROOT_PREPROCESS_FUNCS_append = " xmlcatalog_sstate_postinst"
>>
>>   xmlcatalog_complete() {
>> +       # In case of eSDK, build-sysroot does not have xmlcatalog in its staging directory.
>> +       [ "`which xmlcatalog`" = "" ] && exit 0
>>          ROOTCATALOG="${STAGING_ETCDIR_NATIVE}/xml/catalog"
>>          if [ ! -f $ROOTCATALOG ]; then
>>                  mkdir --parents $(dirname $ROOTCATALOG)
>> --
>> 1.9.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core




More information about the Openembedded-core mailing list