]> code.ossystems Code Review - openembedded-core.git/commitdiff
perf: Use python3targetconfig to ensure we use target libraries
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Jun 2021 13:31:32 +0000 (14:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 17 Jun 2021 12:41:53 +0000 (13:41 +0100)
We've seen some reproducibility issues on the autobuilder in perf where the
size of the python module varies slightly between systems. After some head
scratching and removing the --quiet option to the python module build,
you can see it using -Lrecipe-sysroot-native in the linking commandline
for the module. This means it is linking against the native library
on systems where that works, skipping it and using the target one
otherwise, probably with warnings in logs we've not seen.

The fix is to inherit the python3targetconfig class which ensures
that the target sysroot is used, then the byte differences between
the builds go away and things are sane(r) again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/perf/perf.bb

index 2dfd798ef7d3861723166463a54bc0efac26d5cb..99808d636b3c49af31da8e1e073c20045d1a85fe 100644 (file)
@@ -48,7 +48,7 @@ PROVIDES = "virtual/perf"
 inherit linux-kernel-base kernel-arch manpages
 
 # needed for building the tools/perf Python bindings
-inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'python3native', '', d)}
+inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'python3targetconfig', '', d)}
 inherit python3-dir
 export PYTHON_SITEPACKAGES_DIR