summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/package_manager/deb/sdk.py
diff options
context:
space:
mode:
authorEilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com>2023-09-14 14:39:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-17 19:37:19 +0100
commit9ccde59c5303abb04e9bb8e2c987ff4b8f44bb43 (patch)
treeb3b1a76e3958e731f891b669960c9d279e481e67 /meta/lib/oe/package_manager/deb/sdk.py
parentde863bc1fa44b5ed7ad2b00abfcdd45db1f51fe2 (diff)
downloadpoky-9ccde59c5303abb04e9bb8e2c987ff4b8f44bb43.tar.gz
lib/oe/package_managegment: Add nativesdk-intercept PATH
[YOCTO #15023] This patch adds (and removes after function execution) the nativesdk-intercept/chown|chgrp PATH before target_pm.run_intercepts calls during populate_sdk builds. This has been tested with cleanall builds and testsdk and fails on deb due to an issue where $D${localstatedir}/cache/man/ does not exist for some reason. I've a work around for that in the next patch in this series. (From OE-Core rev: e7afdfe9da150209ab2676d09eae040de2155c6d) Signed-off-by: Eilís 'pidge' Ní Fhlannagáin <pidge@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package_manager/deb/sdk.py')
-rw-r--r--meta/lib/oe/package_manager/deb/sdk.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager/deb/sdk.py b/meta/lib/oe/package_manager/deb/sdk.py
index 653e42ab3c..6f3005053e 100644
--- a/meta/lib/oe/package_manager/deb/sdk.py
+++ b/meta/lib/oe/package_manager/deb/sdk.py
@@ -69,7 +69,12 @@ class PkgSdk(Sdk):
69 69
70 self.target_pm.run_pre_post_installs() 70 self.target_pm.run_pre_post_installs()
71 71
72 env_bkp = os.environ.copy()
73 os.environ['PATH'] = self.d.expand("${COREBASE}/scripts/nativesdk-intercept") + \
74 os.pathsep + os.environ["PATH"]
75
72 self.target_pm.run_intercepts(populate_sdk='target') 76 self.target_pm.run_intercepts(populate_sdk='target')
77 os.environ.update(env_bkp)
73 78
74 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_TARGET_COMMAND")) 79 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_TARGET_COMMAND"))
75 80