Bug 10958

Summary: LIBXML2 error package requirements libxml-2.0 >= 2.6.26 on eSDK
Product: [Yocto Project Subprojects] eSDK Reporter: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Component: eSDKAssignee: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: francisco.j.pedraza.gonzalez, sonia.delgado
Version: 2.3   
Target Milestone: 2.3 M3   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10794    
Attachments:
Description Flags
log.do_testsdkext.12810-libxml dependency none

Description Francisco Pedraza 2017-01-23 21:48:54 UTC
Created attachment 3600 [details]
log.do_testsdkext.12810-libxml dependency

test_extend_autotools_recipe_creation failing at: "~/oeqa/sdkext/devtool.py"

After making a change at "~/oeqa/sdk/buildcvs.py" and "~/oeqa/sdk/buildiptables.py" 
 

Adding lines on each one in "setUpClass":

machine = oeSDKTest.tc.d.getVar("MACHINE")
if not oeSDKTest.hasHostPackage("packagegroup-cross-canadian=" + machine):
            skipModule("SDK doesn't contain a cross-canadian toolchain")

In order to fix "Update sanity tests to cope with minimal eSDK installer [1]"

[1] - https://bugzilla.yoctoproject.org/show_bug.cgi?id=10794

test_extend_autotools_recipe_creation failing at: "~/oeqa/sdkext/devtool.py"

Getting a regression, for LIBXML2 error package requirements:

"configure: error: Package requirements (libxml-2.0 >= 2.6.26) were not met:
| No package \'libxml-2.0\' found
| 
| Consider adjusting the PKG_CONFIG_PATH environment variable if you
| installed software in a non-standard prefix.
| 
| Alternatively, you may set the environment variables LIBXML2_CFLAGS
| and LIBXML2_LIBS to avoid the need to call pkg-config."
Attached you can find log.

Steps to reproduce:

1. Edit the files 
"~/oeqa/sdk/buildcvs.py" and "~/oeqa/sdk/buildiptables.py"
Adding the following validation lines at SetUpClass
machine = oeSDKTest.tc.d.getVar("MACHINE")
if not oeSDKTest.hasHostPackage("packagegroup-cross-canadian=" + machine):
            skipModule("SDK doesn't contain a cross-canadian toolchain")


2. $ . oe-init-build-env
3. $ echo 'SDK_EXT_TYPE = "minimal"' >> conf/local.conf
4. $ bitbake core-image-minimal core-image-sato -c populate_sdk_ext
5. $ echo 'INHERIT += "testsdk"' >> conf/local.conf
6. $ DISPLAY=:1 bitbake core-image-minimal core-image-sato -c testsdkext

This bug blocks https://bugzilla.yoctoproject.org/show_bug.cgi?id=10794
Comment 1 Francisco Pedraza 2017-01-25 17:10:50 UTC
Waiting for patch approval.
http://lists.openembedded.org/pipermail/openembedded-core/2017-January/131773.html
This patch will fix this situation.