From 8dd0a45c858290288e1a1fef046b5cfcf7ff6257 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 22 Nov 2021 16:11:45 +0000 Subject: 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: e1f40670c438e33cae87678425de72ca03566888) Signed-off-by: Richard Purdie --- meta/classes/nativesdk.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/classes/nativesdk.bbclass') diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index 14e210562f..f8e9607513 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass @@ -113,3 +113,5 @@ do_packagedata[stamp-extra-info] = "" USE_NLS = "${SDKUSE_NLS}" OLDEST_KERNEL = "${SDK_OLDEST_KERNEL}" + +PATH:prepend = "${COREBASE}/scripts/nativesdk-intercept:" -- cgit v1.2.3-54-g00ecf