mbox series

[0/2] Fix nativesdk-intercepts for chown/chgrp

Message ID cover.1694086051.git.pidge@baylibre.com
Headers show
Series Fix nativesdk-intercepts for chown/chgrp | expand

Message

Eilís 'pidge' Ní Fhlannagáin Sept. 7, 2023, 11:38 a.m. UTC
This set of patches started out with fixing #15023 where building the sdk with
api-documentation set would fail out. This patch series fixes both of the main
underlying issues.

First, populate_sdk did not the nativesdk chown/chgrp intercepts in $PATH. 

The second issue was within the chown/chgrp intercepts which were causing them
to fail badly. I'm not entirely sure these ever worked as prior to my fix the 
args for os.execv were:

./scripts/nativesdk-intercept/chown -R pidge:pidge README.md 
['root:root', '-R', 'pidge:pidge', 'README.md']

after (which is correct):

./scripts/nativesdk-intercept/chown -R pidge:pidge README.md 
['/usr/bin/chown', '-R', 'root:root', 'README.md']


Eilís 'pidge' Ní Fhlannagáin (2):
  populate_sdk_base.bbclass: PATH to nativesdk-intercept chown/chgrp
  nativesdk-intercept: Fix bad intercept chgrp/chown logic

 meta/classes-recipe/populate_sdk_base.bbclass | 1 +
 scripts/nativesdk-intercept/chgrp             | 5 ++++-
 scripts/nativesdk-intercept/chown             | 5 ++++-
 3 files changed, 9 insertions(+), 2 deletions(-)