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.
The patch as already integrated into master, https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1d1979182844e748cf87a99e28e442fe76677043 Backport to 1.7 is needed.
Fixed at: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dizzy&id=5c69d24f5631b1595e051586e85ce5dfd1858460
I can confirm the patch solves the issue.