From b92a82d42f700c92ea180eb9a21ab5a2d7dfdd70 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Sun, 12 Jan 2020 23:41:23 -0500 Subject: 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 Signed-off-by: Richard Purdie Change-Id: I3edfd9f105e350ca58bdfa09f905013f144798fd Signed-off-by: Joel Stanley --- poky/meta/recipes-kernel/perf/perf.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'poky') diff --git a/poky/meta/recipes-kernel/perf/perf.bb b/poky/meta/recipes-kernel/perf/perf.bb index 5f0ba7c18..840f3008b 100644 --- a/poky/meta/recipes-kernel/perf/perf.bb +++ b/poky/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 -- cgit v1.2.3