summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-14 14:38:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-16 11:28:17 +0000
commit06e6505abfdf4c6bac516652c7f798eec0ebd469 (patch)
treefa4076c6478698f649e583d8b37a5e907f631918 /meta
parentd290013d9137d80157a4db4a361b3e9bb81ff56f (diff)
downloadpoky-06e6505abfdf4c6bac516652c7f798eec0ebd469.tar.gz
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. (From OE-Core rev: f23c7e319a192ada14bb9a82822ef2967309aaea) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager/deb/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager/deb/__init__.py b/meta/lib/oe/package_manager/deb/__init__.py
index 7fdfdaa4fa..2ee68fefb1 100644
--- a/meta/lib/oe/package_manager/deb/__init__.py
+++ b/meta/lib/oe/package_manager/deb/__init__.py
@@ -313,6 +313,10 @@ class DpkgPM(OpkgDpkgPM):
313 if not pkgs: 313 if not pkgs:
314 return 314 return
315 315
316 os.environ['D'] = self.target_rootfs
317 os.environ['OFFLINE_ROOT'] = self.target_rootfs
318 os.environ['IPKG_OFFLINE_ROOT'] = self.target_rootfs
319 os.environ['OPKG_OFFLINE_ROOT'] = self.target_rootfs
316 os.environ['INTERCEPT_DIR'] = self.intercepts_dir 320 os.environ['INTERCEPT_DIR'] = self.intercepts_dir
317 321
318 if with_dependencies: 322 if with_dependencies: