generic-poky/meta
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
..
classes populate_sdk_base: depend on nativesdk-glibc-locale 2018-04-02 17:06:24 +01:00
conf default-distrovars: don't rename locales for nativesdk 2018-04-02 17:06:24 +01:00
files ext-sdk-prepare.py: use quiet mode when preparing sysroot 2017-04-19 10:38:37 +01:00
lib package_manager.py: Explicit complementary fail 2018-04-05 16:26:19 +01:00
recipes-bsp grub: Fix device mapper dependency 2018-03-04 11:11:58 +00:00
recipes-connectivity openssh: Atomically generate host keys 2018-03-08 10:31:20 -08:00
recipes-core cross-localedef-native: add way to specify which locale archive to write 2018-04-02 17:06:24 +01:00
recipes-devtools unfs3: Fix libtirpc usage for unfs3-native version 2018-03-15 15:47:53 -07:00
recipes-extended libtirpc: Extend to native and nativesdk recipes 2018-03-15 15:47:53 -07:00
recipes-gnome gtk+3: Update the patches to work with old versions of patch 2017-08-31 17:57:11 +01:00
recipes-graphics weston: add patch to set pitch correctly for subsampled textures 2017-12-11 22:02:59 +00:00
recipes-kernel linux-yocto-rt/4.1: update to include spectre fixes 2018-03-08 10:31:20 -08:00
recipes-lsb4 libpng12: Use rm instead of unlink 2017-03-10 14:50:11 +00:00
recipes-multimedia libvorbis: CVE-2018-5146 2018-04-02 17:06:25 +01:00
recipes-rt meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
recipes-sato webkitgtk: update to 2.18.5 (includes Spectre mitigations; see commit description) 2018-01-14 22:10:21 +00:00
recipes-support p11-kit: take source code from official git 2018-03-04 11:11:58 +00:00
site siteinfo.bbclass: Add mipsisa{32, 64}r6{el, } support 2016-10-07 16:43:57 +01:00
COPYING.GPLv2 Fix license notices for OE-Core 2014-01-02 12:58:54 +00:00
COPYING.MIT
recipes.txt qt4: remove recipes and classes 2016-01-07 13:40:14 +00:00