diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-22 16:11:45 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-24 16:41:42 +0000 |
| commit | e22da98e790f623690151854b91645dd1ac0b011 (patch) | |
| tree | 127aa54638962d41d9e487a64c17948e63ef4380 /meta/classes | |
| parent | 580df9b4c4a091496fb0c43c7195a61b93772e8e (diff) | |
| download | poky-e22da98e790f623690151854b91645dd1ac0b011.tar.gz | |
nativesdk: Handle chown/chgrp calls in nativesdk do_install tasks
We disable the useradd code for nativesdk targets since we don't support
postinstalls or multiple users in those cases. This means any usage
of chown/chgrp inside do_install tasks won't work and would have to be
conditional. Rather than require all recipes to do that, add intercepts
of the calls and map those to root/root user/groups. We can't just ignore
them as some calls are used to remove host contamination from the host
user ID so they need to be made, just as root.
(From OE-Core rev: a05c116c517e0700837c335d0691c3fcc4462dda)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e1f40670c438e33cae87678425de72ca03566888)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/nativesdk.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index 7f2692c51a..dc5a9756b6 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass | |||
| @@ -113,3 +113,5 @@ do_packagedata[stamp-extra-info] = "" | |||
| 113 | USE_NLS = "${SDKUSE_NLS}" | 113 | USE_NLS = "${SDKUSE_NLS}" |
| 114 | 114 | ||
| 115 | OLDEST_KERNEL = "${SDK_OLDEST_KERNEL}" | 115 | OLDEST_KERNEL = "${SDK_OLDEST_KERNEL}" |
| 116 | |||
| 117 | PATH_prepend = "${COREBASE}/scripts/nativesdk-intercept:" | ||
