[oe-commits] [openembedded-core] 21/40: perf: fix build for v5.5+

git at git.openembedded.org git at git.openembedded.org
Thu Jan 16 22:34:08 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 103316d50d4947b3c3500eb5cbc4845702a62d22
Author: Bruce Ashfield <bruce.ashfield at gmail.com>
AuthorDate: Sun Jan 12 23:41:23 2020 -0500

    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 <bruce.ashfield at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-kernel/perf/perf.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 5f0ba7c..840f300 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list