mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
perf: fix build for v5.5+
In kernel 5.5+ there are python3 scripts that explicitly use /usr/bin/python3 as the interpreter. That will find the host python and produce undefined results. We add that interpreter path to our substitutions to ensure that our sysroot variant is used. (From OE-Core rev: 103316d50d4947b3c3500eb5cbc4845702a62d22) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5adf27290e
commit
e5c4f31275
@@ -241,6 +241,7 @@ do_configure_prepend () {
|
||||
sed -i 's,/usr/bin/python,/usr/bin/env python3,' "${s}"
|
||||
sed -i 's,/usr/bin/python2,/usr/bin/env python3,' "${s}"
|
||||
sed -i 's,/usr/bin/env python2,/usr/bin/env python3,' "${s}"
|
||||
sed -i 's,/usr/bin/python3,/usr/bin/env python3,' "${s}"
|
||||
done
|
||||
|
||||
# unistd.h can be out of sync between libc-headers and the captured version in the perf source
|
||||
|
||||
Reference in New Issue
Block a user