diff options
author | Harish Sadineni <Harish.Sadineni@windriver.com> | 2025-01-23 07:47:55 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-01 13:20:45 +0000 |
commit | 27d7a7540fccaf95bb5e309a7bdcde4ba80a6cc9 (patch) | |
tree | 1d8244e7859088fa24c46bdb738fcea1502cbc49 | |
parent | 37fea972a6fafe360bfbb2d1ac472fa9e060c733 (diff) | |
download | poky-27d7a7540fccaf95bb5e309a7bdcde4ba80a6cc9.tar.gz |
oeqa/sdk/context: fix for gtk3 test failure during do_testsdk
The do_testsdk for lib32-core-image-sato aborts with below error:
configure: error: Package requirements (gtk+-3.0) were not met:
No package 'gtk+-3.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
This causes due to an absolute path name in 'sdk_env', which is now stripped to have only the environment name.
(From OE-Core rev: 386e4132a9ced75599d92610cf5c0e8fe907c3b6)
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/sdk/context.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/lib/oeqa/sdk/context.py b/meta/lib/oeqa/sdk/context.py index 01c38c24e6..77e6a98f39 100644 --- a/meta/lib/oeqa/sdk/context.py +++ b/meta/lib/oeqa/sdk/context.py | |||
@@ -41,11 +41,13 @@ class OESDKTestContext(OETestContext): | |||
41 | 41 | ||
42 | def hasTargetPackage(self, pkg, multilib=False, regex=False): | 42 | def hasTargetPackage(self, pkg, multilib=False, regex=False): |
43 | if multilib: | 43 | if multilib: |
44 | # match multilib according to sdk_env | 44 | stripped_sdk_env = os.path.basename(self.sdk_env) |
45 | mls = self.td.get('MULTILIB_VARIANTS', '').split() | 45 | if stripped_sdk_env.startswith('environment-setup-'): |
46 | for ml in mls: | 46 | # match multilib according to sdk_env |
47 | if ('ml'+ml) in self.sdk_env: | 47 | mls = self.td.get('MULTILIB_VARIANTS', '').split() |
48 | pkg = ml + '-' + pkg | 48 | for ml in mls: |
49 | if ('ml'+ml) in stripped_sdk_env: | ||
50 | pkg = ml + '-' + pkg | ||
49 | return self._hasPackage(self.target_pkg_manifest, pkg, regex=regex) | 51 | return self._hasPackage(self.target_pkg_manifest, pkg, regex=regex) |
50 | 52 | ||
51 | class OESDKTestContextExecutor(OETestContextExecutor): | 53 | class OESDKTestContextExecutor(OETestContextExecutor): |