diff options
| author | Jiaying Song <jiaying.song.cn@windriver.com> | 2025-10-28 18:18:07 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-30 11:06:28 +0000 |
| commit | 2f5d21049f6e91f9587b6f280ad360a56fecc100 (patch) | |
| tree | 124ecbf0cf17eadd709247073b3cc87684d6a888 | |
| parent | 351f7f3b4cfe4af8f5640e35e3ff0c266eff3a2c (diff) | |
| download | poky-2f5d21049f6e91f9587b6f280ad360a56fecc100.tar.gz | |
kernel-devsrc: fix incorrect python shebang replacement
Update the sed replacement rule to strictly match '/usr/bin/python'
(with no trailing characters)
The previous sed rule was too broad and could incorrectly change Python
shebangs such as in
/lib/modules/6.16.11-yocto-standard/build/scripts/macro_checker.py from
'#!/usr/bin/python3' to '#!/usr/bin/env python33'.
(From OE-Core rev: c548259dbf55f2194088e62ad018560286834e49)
Signed-off-by: Jiaying Song <jiaying.song.cn@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/recipes-kernel/linux/kernel-devsrc.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 04dd683dde..411c99ba30 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
| @@ -400,7 +400,7 @@ do_install() { | |||
| 400 | for ss in $(find $kerneldir/build/scripts -type f -name '*'); do | 400 | for ss in $(find $kerneldir/build/scripts -type f -name '*'); do |
| 401 | sed -i 's,/usr/bin/python2,/usr/bin/env python3,' "$ss" | 401 | sed -i 's,/usr/bin/python2,/usr/bin/env python3,' "$ss" |
| 402 | sed -i 's,/usr/bin/env python2,/usr/bin/env python3,' "$ss" | 402 | sed -i 's,/usr/bin/env python2,/usr/bin/env python3,' "$ss" |
| 403 | sed -i 's,/usr/bin/python,/usr/bin/env python3,' "$ss" | 403 | sed -i 's,/usr/bin/python$,/usr/bin/env python3,' "$ss" |
| 404 | done | 404 | done |
| 405 | 405 | ||
| 406 | chown -R root:root ${D} | 406 | chown -R root:root ${D} |
