package_deb.bbclass:fix meta-toolchain-sdk fail on do_populate_sdk
authorHongxu Jia <hongxu.jia@windriver.com>
Sat, 2 Mar 2013 09:12:59 +0000 (17:12 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Mar 2013 12:59:51 +0000 (12:59 +0000)
commit233227b6442ff9d3bf42599224c9fe1c9cf9a7f6
tree756694352b699232586a51071451b23479437d1d
parent9569dd2c78b027e114086428515c07968fdb31de
package_deb.bbclass:fix meta-toolchain-sdk fail on do_populate_sdk

When build meta-toolchain-sdk in a newly created environment, there is
an error:
...
packagegroup-core-standalone-gmae-sdk-target set to manually installed.
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
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a
solution).
...
In this case, avahi was installed and then removed by dpkg (the reason is
unknown, only with log `Noting disappearance of avahi, which has been
completely replaced'), the uninstall was done by dpkg rather than apt,
and apt detected the package dependency was broken, so apt-get install failed.

Use `apt-get install -f' to correct the upper broken dependencies in place.
The removed avahi will be reinstalled.

[YOCTO #3720]

(From OE-Core rev: a66ed54490305380c549838f9a580528d5b49275)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_deb.bbclass