* [PATCH] deb: export INTERCEPT_DIR for remove actions
@ 2020-10-29 18:20 Richard Leitner
0 siblings, 0 replies; only message in thread
From: Richard Leitner @ 2020-10-29 18:20 UTC (permalink / raw)
To: openembedded-core; +Cc: Richard Leitner
From: Richard Leitner <richard.leitner@skidata.com>
During the do_populate_sdk task apt-get purge is called by deb's remove
function. This fails with error messages similiar to the following one
if any of the included packages uses intercepts as the INTERCEPT_DIR
isn't exported:
.../*.postinst: line 4: /postinst_intercept: No such file or directory
Therefore fix it by exporting the INTERCEPT_DIR variable within the
remove function.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
---
meta/lib/oe/package_manager/deb/__init__.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/lib/oe/package_manager/deb/__init__.py b/meta/lib/oe/package_manager/deb/__init__.py
index 6c56991911..10ad707c23 100644
--- a/meta/lib/oe/package_manager/deb/__init__.py
+++ b/meta/lib/oe/package_manager/deb/__init__.py
@@ -312,6 +312,8 @@ class DpkgPM(OpkgDpkgPM):
if not pkgs:
return
+ os.environ['INTERCEPT_DIR'] = self.intercepts_dir
+
if with_dependencies:
os.environ['APT_CONFIG'] = self.apt_conf_file
cmd = "%s purge %s" % (self.apt_get_cmd, ' '.join(pkgs))
--
2.28.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-29 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-29 18:20 [PATCH] deb: export INTERCEPT_DIR for remove actions Richard Leitner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox