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>
This commit is contained in:
Eilís 'pidge' Ní Fhlannagáin 2023-09-14 14:39:18 +00:00 committed by Richard Purdie
parent de863bc1fa
commit 9ccde59c53
3 changed files with 15 additions and 0 deletions

View File

@ -69,7 +69,12 @@ class PkgSdk(Sdk):
self.target_pm.run_pre_post_installs()
env_bkp = os.environ.copy()
os.environ['PATH'] = self.d.expand("${COREBASE}/scripts/nativesdk-intercept") + \
os.pathsep + os.environ["PATH"]
self.target_pm.run_intercepts(populate_sdk='target')
os.environ.update(env_bkp)
execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_TARGET_COMMAND"))

View File

@ -63,7 +63,12 @@ class PkgSdk(Sdk):
self.target_pm.install_complementary(self.d.getVar('SDKIMAGE_INSTALL_COMPLEMENTARY'))
env_bkp = os.environ.copy()
os.environ['PATH'] = self.d.expand("${COREBASE}/scripts/nativesdk-intercept") + \
os.pathsep + os.environ["PATH"]
self.target_pm.run_intercepts(populate_sdk='target')
os.environ.update(env_bkp)
execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_TARGET_COMMAND"))

View File

@ -67,7 +67,12 @@ class PkgSdk(Sdk):
self.target_pm.install_complementary(self.d.getVar('SDKIMAGE_INSTALL_COMPLEMENTARY'))
env_bkp = os.environ.copy()
os.environ['PATH'] = self.d.expand("${COREBASE}/scripts/nativesdk-intercept") + \
os.pathsep + os.environ["PATH"]
self.target_pm.run_intercepts(populate_sdk='target')
os.environ.update(env_bkp)
execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_TARGET_COMMAND"))