diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-02-25 13:09:22 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-28 07:49:18 +0000 |
| commit | c92709d4c0d83903695517798db71493bacc25df (patch) | |
| tree | 1e2a11c02902acc65885cb65b67114221a23a190 /meta | |
| parent | 707be18cac45cb252b30115dce09123504c08c54 (diff) | |
| download | poky-c92709d4c0d83903695517798db71493bacc25df.tar.gz | |
classes/insane: do not leak host uid/gid into package_qa sstate signatures
This prevented package_qa sstate from being reusable unless host uid/gid
values would match exactly (and they unfortunately do on the yocto autobuilder
worker machines which all share a 'pokybuild' user).
I noticed this when testing CDN sstate reuse, which otherwise works well.
(From OE-Core rev: 6ea8b4b10b0549c858427a8411bf2a4cd5c0eb7b)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-global/insane.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 866cef6526..fc4ca84b35 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
| @@ -1066,6 +1066,7 @@ def package_qa_check_host_user(path, name, d, elf): | |||
| 1066 | check_gid = int(d.getVar('HOST_USER_GID')) | 1066 | check_gid = int(d.getVar('HOST_USER_GID')) |
| 1067 | if stat.st_gid == check_gid: | 1067 | if stat.st_gid == check_gid: |
| 1068 | oe.qa.handle_error("host-user-contaminated", "%s: %s is owned by gid %d, which is the same as the user running bitbake. This may be due to host contamination" % (pn, package_qa_clean_path(path, d, name), check_gid), d) | 1068 | oe.qa.handle_error("host-user-contaminated", "%s: %s is owned by gid %d, which is the same as the user running bitbake. This may be due to host contamination" % (pn, package_qa_clean_path(path, d, name), check_gid), d) |
| 1069 | package_qa_check_host_user[vardepsexclude] = "HOST_USER_UID HOST_USER_GID" | ||
| 1069 | 1070 | ||
| 1070 | QARECIPETEST[unhandled-features-check] = "package_qa_check_unhandled_features_check" | 1071 | QARECIPETEST[unhandled-features-check] = "package_qa_check_unhandled_features_check" |
| 1071 | def package_qa_check_unhandled_features_check(pn, d): | 1072 | def package_qa_check_unhandled_features_check(pn, d): |
