]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
perf: fix reproducibility in 5.19+
authorBruce Ashfield <bruce.ashfield@gmail.com>
Mon, 4 Jul 2022 15:13:55 +0000 (11:13 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Jul 2022 21:51:46 +0000 (22:51 +0100)
kernels with upstream commit 630af16eee495f583db5202c3613d1b191f10694
[perf tools: Use Python devtools for version autodetection rather than
runtime], or -stable backports of that commmit, evade our substitutions
for reproducibility.

We add a second sed expression to ensure that our definition of python
is used, as we have the proper environement setup and don't need the
full path of python, which eventually will be captured by the perf
binaries.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/perf/perf.bb

index adefc44eaa32fb6b3f7f678f113948dea6a6dc95..603d3f9eeedc5e1bc792213affe61260ff5de116 100644 (file)
@@ -228,6 +228,12 @@ do_configure:prepend () {
         sed -i -e 's,$(call get-executable-or-default\,PYTHON\,$(PYTHON_AUTO)),$(notdir $(call get-executable-or-default\,PYTHON\,$(PYTHON_AUTO))),g' \
             ${S}/tools/perf/Makefile.config
 
+       # likewise with this substitution. Kernels with commit 18f2967418d031a39
+       # [perf tools: Use Python devtools for version autodetection rather than runtime]
+       # need this substitution for reproducibility.
+       sed -i -e 's,$(call get-executable-or-default\,PYTHON\,$(subst -config\,\,$(PYTHON_AUTO))),$(notdir $(call get-executable-or-default\,PYTHON\,$(subst -config\,\,$(PYTHON_AUTO)))),g' \
+           ${S}/tools/perf/Makefile.config
+
         # The following line:
         #     srcdir_SQ = $(patsubst %tools/perf,tools/perf,$(subst ','\'',$(srcdir))),
         # Captures the full src path of perf, which of course makes it not