]> code.ossystems Code Review - openembedded-core.git/commit
package_manager/deb: Fix image generation with package removal
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 14 Feb 2021 14:38:21 +0000 (14:38 +0000)
committerAnuj Mittal <anuj.mittal@intel.com>
Thu, 18 Feb 2021 04:01:27 +0000 (12:01 +0800)
commitffdd5e3d61995f78aa57a7f45d21ebc1513cb5a4
treeb7bddbdaf38875986de9cce77f2e730176ffe1ec
parent697c75071932a48ec8d34b778fca68e18bec433a
package_manager/deb: Fix image generation with package removal

When building SDKs with the deb backend you could see errors like:

Setting up nativesdk-python3-ndg-httpsclient (0.5.1-r0) ...
mkdir: cannot create directory ‘/usr/lib/opkg’: Permission denied
dpkg: error processing package nativesdk-python3-ndg-httpsclient (--configure):

which is due to environment misconfiguration when removing packages.

Fix this by setting the same environment variables as used for installation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f23c7e319a192ada14bb9a82822ef2967309aaea)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/package_manager/deb/__init__.py