Bug 12725

Summary: devtool sdk-install unable to add component for libxml2
Product: [Yocto Project Subprojects] eSDK Reporter: nagarajagopal <nagarajagopalx.velu>
Component: eSDKAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED WORKSFORME QA Contact: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Severity: normal    
Priority: Medium CC: bluelightning, ee.peng.yeoh, stephano, tim.orling
Version: 2.5   
Target Milestone: 2.7   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description nagarajagopal 2018-05-01 20:45:15 UTC
Below find eSDK installer used, 
http://autobuilder.yoctoproject.org/pub/releases/yocto-2.5.rc1/toolchain/x86_64/poky-glibc-x86_64-core-image-sato-core2-64-toolchain-ext-2.5.sh

When running "devtool sdk-install", getting below error,

devtool sdk-install libxml2
NOTE: Starting bitbake server...
Loading cache: 100% |####################################################################################################################################| Time: 0:00:00
Loaded 1282 entries from dependency cache.
NOTE: Installing libxml2...
Loading cache: 100% |####################################################################################################################################| Time: 0:00:00
Loaded 1282 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###############################################################################################################################| Time: 0:00:01
Checking sstate mirror object availability: 100% |#######################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Tasks Summary: Attempted 110 tasks of which 110 didn't need to be rerun and all succeeded.
ERROR: Failed to install libxml2 - unavailable
Comment 1 Tim Orling 2018-05-03 07:41:44 UTC
*** Bug 12726 has been marked as a duplicate of this bug. ***
Comment 2 Paul Eggleton 2018-05-06 20:43:10 UTC
Has SSTATE_MIRRORS been configured and libxml2 built there in order to make it  available to install?
Comment 3 nagarajagopal 2018-05-07 03:16:08 UTC
SSTATE_MIRRORS is configures as below in conf/local.conf ,

SSTATE_MIRRORS += " file://universal/(.*) file://universal-4.9/\1 file://universal-4.9/(.*) file://universal-4.8/\1"

SSTATE_MIRRORS += '\
file://.* http://sstate.yoctoproject.org/dev//PATH;downloadfilename=PATH'
Comment 4 Paul Eggleton 2018-05-07 14:10:18 UTC
Does that SSTATE_MIRRORS setting (particularly the second one) appear in conf/local.conf within the installed eSDK?
Comment 5 nagarajagopal 2018-05-07 18:00:15 UTC
 SSTATE_MIRRORS setting is appeared in conf/local.conf within the installed eSDK.
Comment 6 yeoh ee peng 2018-05-08 02:03:55 UTC
ERROR: Failed to install libxml2 - unavailable

My understanding was that the above was not a defect, when the libxml2 was not available in pre-built form from SDK provider, this is the error message.

In this case, we can request the devtool to build the item from source:
devtool sdk-install -s libxml2
Comment 7 nagarajagopal 2018-05-08 03:26:09 UTC
libxml2 is installed using "devtool sdk-install -s libxml2" command, test caes is running succesfully.
Comment 8 Paul Eggleton 2018-05-08 14:42:03 UTC
Ee Peng - right, but if libxml2 *has* been built and SSTATE_MIRRORS has been set up correctly, then I would expect it to work without -s.
Comment 9 Tim Orling 2018-05-10 07:55:05 UTC
This is an eSDK issue, not CROPS, so I have changed the product.
Comment 10 Paul Eggleton 2019-06-20 10:11:33 UTC
I think we'll call this worksforme for now; we can reopen if it's still an issue.