Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 1A39D7DEA7 for ; Tue, 9 Jul 2019 01:28:28 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id x691SNCP005385 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 8 Jul 2019 18:28:24 -0700 (PDT) Received: from [128.224.162.148] (128.224.162.148) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 8 Jul 2019 18:28:23 -0700 To: "Burton, Ross" , Richard Purdie References: <0dee845494880f0c201e79d6ee0f50390f183465.1562570957.git.Qi.Chen@windriver.com> From: ChenQi Message-ID: <82957ede-1c95-eab9-aa59-4e62818386aa@windriver.com> Date: Tue, 9 Jul 2019 09:40:56 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [128.224.162.148] Cc: OE-core Subject: Re: [PATCH 1/1] buildtools-tarball: add nativesdk-libxml2-utils 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, 09 Jul 2019 01:28:29 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit On 07/09/2019 02:45 AM, Burton, Ross wrote: > Agreed, making it a non-fatal dependency just means that some eSDKs > break, not all. There needs to be a better fix. But it's already in buildtools, and eSDK installation process involves extracting buildtools and sourcing its script. Under which circumstances will we break some eSDKs? Anyway, I'm trying to do something about build-sysroots recipe and will send out a new patch. Regards, Chen Qi > Ross > > On Mon, 8 Jul 2019 at 17:53, Richard Purdie > wrote: >> On Mon, 2019-07-08 at 15:37 +0800, Chen Qi 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 >>> >>> So we add nativesdk-libxml2-utils to buildtools-tarball >>> to ensure the existence of xmlcatalog. Also add it >>> to HOSTTOOLS_NONFATAL so it could be seen by bitbake. >>> >>> Signed-off-by: Chen Qi >>> --- >>> meta/conf/bitbake.conf | 3 +++ >>> meta/recipes-core/meta/buildtools-tarball.bb | 1 + >>> 2 files changed, 4 insertions(+) >>> >>> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf >>> index 5e93f5c..2f64eae 100644 >>> --- a/meta/conf/bitbake.conf >>> +++ b/meta/conf/bitbake.conf >>> @@ -517,6 +517,9 @@ HOSTTOOLS_NONFATAL += "scp" >>> # Link to git-lfs if present >>> HOSTTOOLS_NONFATAL += "git-lfs" >>> >>> +# build-sysroot needs xmlcatalog in order for eSDK installation >>> +HOSTTOOLS_NONFATAL += "xmlcatalog" >> I don't mind the buildtools-tarball change but HOSTTOOLS is starting to >> grow to contain far too much random stuff which could impact >> reproduciblity. >> >> Is there some other way we could fix this? It still feels like a >> dependency problem which we chould fix by adding a missing dependency >> although I appreciate its far from being that simple. >> >> I wonder if there is a way we could teach build-sysroots to be cleverer >> about dependencies? >> >> Cheers, >> >> Richard >> >> -- >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core