Bug 5856

Summary: smart fails with EMGD packages
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Nitin Kamble <nitin.a.kamble>
Component: devtools / tool chainAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, nitin.a.kamble, richard.purdie
Version: unspecified   
Target Milestone: ---   
Hardware: E-Menlow   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Nitin Kamble 2014-02-20 19:27:39 UTC
ERROR: Unable to install packages. Command '.../build/tmp/sysroots/x86_64-linux/usr/bin/smart --data-dir=/srv/home/nitin/build-test-bsps/build-common/tmp/work/minnow-poky-linux/core-image-sato/1.0-r0/rootfs/var/lib/smart install -y packagegroup-core-ssh-dropbear@all packagegroup-core-x11-sato-games@minnow va-intel@core2_32 packagegroup-core-x11-base@all smartpm@core2_32 packagegroup-core-tools-testapps@minnow packagegroup-core-boot@minnow psplash@core2_32 packagegroup-base-extended@minnow rpm@core2_32 packagegroup-core-x11-sato@minnow locale-base-en-us@core2_32 locale-base-en-gb@core2_32' returned 1:

There are no more details coming for the error.

How to reproduce:
Try building core-image-sato image for any one of these BSPs: minnow, fri2, sys940x, crownbay, emenlow
Comment 1 Nitin Kamble 2014-02-20 19:28:28 UTC
Assigned this bug to Paul, as he is the "smart" maintainer ;)
Comment 2 Nitin Kamble 2014-02-20 19:53:42 UTC
last know working  poky commit was:  Date: 2014-01-27-Monday-16-47-16  poky repo: master: commit  1b636173ca88e5ccca1992f9a12367a1189fa674 

1st know failure: Date: 2014-02-11-Tuesday-11-12-09 poky repo: master: commit 92cad721d764ec28c3570dfe4a80847c3df19453

my local.conf has this additional line:

EXTRA_IMAGE_FEATURES += "tools-testapps"
Comment 3 Nitin Kamble 2014-02-20 21:02:33 UTC
RP suggested me to try poky master with this commit, which is working well.

poky repo: master: commit 54562006c1327c5b99daa4cc05a3ba7e38412da1
Comment 4 Laurentiu Palcu 2014-02-21 09:55:27 UTC
Tested this with the latest commit in master:

bb0c26960d3b05070346cdfdfd05d6fd4ad0a7b1: wic: Make exec_native_command() fail if a command isn't found

both on a local autobuilder (minnow target) and locally, for fri2, after adding the line, you mentioned, in local.conf:

EXTRA_IMAGE_FEATURES += "tools-testapps"

All builds finished successfully. Closing this. Feel free to re-open after providing more info on how to reproduce. Make sure you have the latest poky.
Comment 5 Nitin Kamble 2014-02-27 17:26:24 UTC
I am still seeing this issue with the latest poky and meta-intel git HEADs. It is observed when multiple BSPs are built in the same build directory.

The issue is uncovered when building BSPs in this sequence in the same build directory, without deleting any build artifacts.

qemux86 genericx86 genericx86-64 sugarbay nuc jasperforest crownbay

I have these extra lines in local.conf for all BSP builds:

EXTRA_IMAGE_FEATURES += "tools-testapps"
LICENSE_FLAGS_WHITELIST += "license_emgd-driver-bin"
LICENSE_FLAGS_WHITELIST += "commercial"
Comment 6 Nitin Kamble 2014-02-27 17:28:28 UTC
The issue is not hit when the builds are performed in separate directories.
Comment 7 Nitin Kamble 2014-03-04 18:03:24 UTC
Laurentiu,
  Now I find that with the fix for the bug #5890 this issues is also going away. Possibly striking two bugs with one fix.

Nitin
Comment 8 Laurentiu Palcu 2014-03-05 12:42:47 UTC
Fix for #5890 should fix this too.