Bug 3720

Summary: package_deb:meta-toolchain-sdk fail on do_populate_sdk
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Hongxu Jia <hongxu.jia>
Component: coreAssignee: Hongxu Jia <hongxu.jia>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: hongxu.jia, jessica.zhang, kai.kang, liang.li2, liezhi.yang, meta.mr.watcher, meta.watcher, Qi.Chen, sgw, yi.zhao, zhenfeng.zhao
Version: 1.4   
Target Milestone: 1.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Hongxu Jia 2013-01-15 03:02:48 UTC
*Env
vim conf/local.conf
BB_NUMBER_THREADS = "8"
PARALLEL_MAKE = "-j 8"
PACKAGE_CLASSES ?= "package_deb"

*problem
1. Create a new build env, and execute "bitbake meta-toolchain-sdk" failed.
   See the following log for detail.
2. But run "bitbake core-image-sato && bitbake meta-toolchain-sdk",
   No such issue, everything is ok.

>>log<<
...
Unpacking avahi (from ..././avahi_0.6.31-r6.1_i386.deb) ...
dpkg: warning: overriding problem because --force enabled:
 package architecture (i386) does not match system (amd64)
...
Selecting previously unselected package libfontconfig1.
Unpacking libfontconfig1 (from .../libfontconfig1_2.10.2-r0_i386.deb) ...
(Noting disappearance of avahi, which has been completely replaced.)
dpkg: warning: overriding problem because --force enabled:
...
| Selecting previously unselected package xtrans-dev.
| Unpacking xtrans-dev (from ..././xtrans-dev_1.2.7-r0_i386.deb) ...
| Reading package lists...
| Building dependency tree...
| Reading state information...
| You might want to run `apt-get -f install' to correct these:
| The following packages have unmet dependencies:
|   avahi-dev: Depends: avahi (= 0.6.31-r6.1) but it is not going to be installed
|              Recommends: dbus-dev but it is not going to be installed
|   packagegroup-core-standalone-gmae-sdk-target: 
|     Depends: gnome-desktop but it is not going to be installed
|     Depends: dbus-dev but it is not going to be installed
|     Depends: gupnp-tools but it is not going to be installed
|     Depends: libglade-2.0-dev but it is not going to be installed
|     Depends: gconf-dev but it is not going to be installed
|     Depends: libdbus-glib-1-dev but it is not going to be installed
|     Depends: gtk+-dev but it is not going to be installed
| E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
| DEBUG: Python function do_populate_sdk finished
| ERROR: Function failed: populate_sdk_image
...

*analysis
1. The avahi has been installed and then replaced, to install the following
   packages which depends on avahi is failed.
2. The packagegroup-core-standalone-gmae-sdk-target needs some package but
   not added in its RDEPENDS which the packages is created by core-image-sato.

*resolution
1. Run `apt-get -f install' to correct after `apt-get install package' has
   been executed.
2. Modify packagegroup-core-standalone-gmae-sdk-target.bb to add package 
   `opkg' to RDEPENDS
Comment 1 Hongxu Jia 2013-03-04 00:56:19 UTC
Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=22b1f63223f2d817cf5ff0672e6925826afdf858


Please verify on a newly created build environment.
Comment 2 Yi Zhao 2013-03-21 02:52:43 UTC
Verified with master branch: 808967b84cef66e0b59b9a720fa0808f6a546d3a