From: Bruce Ashfield Date: Mon, 13 Jan 2020 04:41:23 +0000 (-0500) Subject: perf: fix build for v5.5+ X-Git-Tag: uninative-2.8~544 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=103316d50d4947b3c3500eb5cbc4845702a62d22;p=openembedded-core.git 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. Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 5f0ba7c180..840f3008b5 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -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