generic-poky/meta/lib/oe
Niko Mauno 80fdfa4b36 package_manager.py: Explicit complementary fail
When running bitbake -c populate_sdk <image_name>, it is expected that
packages matching SDKIMAGE_INSTALL_COMPLEMENTARY name mask (unless
declared in PACKAGE_EXCLUDE_COMPLEMENTARY) are installed to resulting
SDK. Underlying mechanism issues a package manager install call for set
of complementary packages. However the mechanism doesn't seem to inform
the user all too obviously in case the package manager command behind
install_complementary() method fails -- and since it is combined with
attempt_only=True option, user might end up wondering why several *-dev,
*-dbg packages are missing from resulting SDK.

Improve associated install() method behaviour in affected OpkgPM and
DpkgPM classes so that a problematic state of affairs becomes directly
obvious for bitbake user, resulting in shell output like:

  WARNING: someimage-1.0-r0 do_populate_sdk: Unable to install packages.
  Command '...' returned 1:
  Collected errors:
   * Solver encountered 1 problem(s):
   * Problem 1/1:
   *   - package somepkg-dev-1.0-r0.x86 requires somepkg = 1.0-r0, but
         none of the providers can be installed
   *
   * Solution 1:
   *   - allow deinstallation of someotherpkg-1.1-r1.x86

   *   - do not ask to install a package providing somepkg-dev

   * Solution 2:
   *   - do not ask to install a package providing somepkg-dev

(From OE-Core rev: 2502bd591c37bf532d02dc6b37fc1e8b5224fb0a)

(From OE-Core rev: 88bbc4b84ce97f82d08c841edf25e6fc29d408b0)

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0d4459e7086fced5e9e0b4ad10378c9eddec56a8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-04-05 16:26:19 +01:00
..
__init__.py lib/oe: turn oe into a namespace package 2014-03-17 14:01:41 +00:00
buildhistory_analysis.py buildhistory-diff: add option to compare actual signature differences 2017-04-11 18:10:17 +01:00
cachedpath.py cachedpath.py: global name 'error' is not defined 2013-05-15 19:27:11 +03:00
classextend.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
classutils.py classutils.py: deterministic sorting 2017-04-11 18:10:17 +01:00
copy_buildsystem.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
data.py meta: add search, replace strings to export2json 2017-04-20 07:55:26 +01:00
distro_check.py classes: Drop now unneeded update_data calls 2017-02-15 09:29:55 -08:00
gpg_sign.py gpg_sign.py: fix signing of rpm files using gpg 2017-03-14 14:42:17 +00:00
license.py license: simple verification of LICENSE_<pkg> values 2016-08-25 22:54:49 +01:00
lsb.py lib/oe/lsb: better handle missing fields 2016-11-23 11:10:14 +00:00
maketype.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
manifest.py run-postinsts: simplify the logic of whether to install it to images 2017-03-14 14:42:17 +00:00
package.py package.bbclass: Restore functionality to detect RPM dependencies 2017-08-31 17:57:12 +01:00
package_manager.py package_manager.py: Explicit complementary fail 2018-04-05 16:26:19 +01:00
packagedata.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
packagegroup.py meta: remove True option to getVarFlag calls 2016-12-16 10:23:23 +00:00
patch.py meta: replace uses of bb.data.expand(VARNAME, d) with d.expand(VARNAME) 2017-03-22 11:35:19 +00:00
path.py oe/path.py: fix for "Argument list too long" 2017-03-17 16:53:05 +00:00
prservice.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
qa.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
recipeutils.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
rootfs.py rootfs.py: Respect OPKGLIBDIR variable 2017-03-24 23:43:32 +00:00
sdk.py sdk: streamline locale removal 2018-04-02 17:06:24 +01:00
sstatesig.py archiver.bbclass: do not cause kernel rebuilds 2018-01-07 17:07:57 +00:00
terminal.py lib/oe/terminal.py: use an absolute path to execute oe-gnome-terminal-phonehome 2017-12-11 22:02:58 +00:00
types.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
utils.py lib/oe/utils: Add build_depends_string function 2017-01-20 11:53:49 +00:00