Bug 6976

Summary: populate_sdk fails when PACKAGE_CLASSES ?= "package_deb"
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Sven Eisenberg <sven.eisenberg>
Component: devtools / tool chainAssignee: Aníbal Limón <anibal.limon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, poky.adt.watcher, poky.watcher
Version: 1.7   
Target Milestone: 1.7.1   
Hardware: BeagleBone   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Sven Eisenberg 2014-11-18 09:15:45 UTC
Building SDK fails, when PACKAGE_CLASSES ?= "package_deb" is set.

bitbake core-image-minimal -c populate_sdk
Loading cache: 100% |################################################################################| ETA:  00:00:00

Loaded 1285 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.24.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.7"
TUNE_FEATURES     = "arm armv5 thumb dsp"
TARGET_FPU        = "soft"
meta
meta-yocto
meta-yocto-bsp    = "dizzy:9aff3a4ec058a1a1149d026ebedcc6251089fffb"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Unable to install packages. Command '/yocto/dizzy2/build/tmp/sysroots/x86_6
4-linux/usr/bin/apt-get  install --force-yes --allow-unauthenticated nativesdk-packagegroup-sdk-host packagegroup-cro
ss-canadian-qemuarm' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
W: Unable to read /yocto/dizzy2/build/tmp/work/qemuarm-poky-linux-gnueabi/core-ima
ge-minimal/1.0-r0/apt-sdk/preferences.d/ - DirectoryExists (2: No such file or directory)
E: Unable to locate package nativesdk-packagegroup-sdk-host
E: Unable to locate package packagegroup-cross-canadian-qemuarm

ERROR: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: /yocto/dizzy2/build/tmp/work/qemuarm-poky-lin
ux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_populate_sdk.15216
ERROR: Task 9 (/yocto/dizzy2/meta/recipes-core/images/core-image-minimal.bb, do_po
pulate_sdk) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2298 tasks of which 1276 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /yocto/dizzy2/meta/recipes-core/images/core-image-minimal.bb, do_populate_sdk
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Comment 1 Aníbal Limón 2014-11-20 16:41:52 UTC
The patch as already integrated into master,

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1d1979182844e748cf87a99e28e442fe76677043

Backport to 1.7 is needed.
Comment 3 Sven Eisenberg 2014-11-27 08:39:29 UTC
I can confirm the patch solves the issue.