]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/package_manager: avoid installing provided packages via apt
authorJan Luebbe <jlu@pengutronix.de>
Wed, 1 Apr 2020 14:58:04 +0000 (16:58 +0200)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 6 Apr 2020 07:17:05 +0000 (15:17 +0800)
commit978eeeb7c975441e5b05253a63b9d954af2b903b
treefe1729020907144e29c3c8c8c272631cfc8d14ff
parent1bedfdf58d3ebd06126aa45c7bdc84e66c750725
lib/oe/package_manager: avoid installing provided packages via apt

If there already is a package providing (and conflicting against)
packages what should be installed, apt will try remove the conflicting
package (target-sdk-provides-dummy) and any that depend on it (like apt
and dpkg). This usually fails because of the protection of essential
packages. In that case, no -dev/-dbg packages are installed to the SDK.

Avoid this problem by checking which packages are already provided and
removing them from the list to be installed. Also sort the list to make
it easier to read when debugging.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3ffb339dd55f8ca7c952fd3390608510f772e19f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/package_manager.py