summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2016-03-23 11:09:03 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-25 10:29:18 +0000
commitb47225f0e803ee91629282e940e6ddc9633e5e54 (patch)
tree1e45af54167434f72269c577e6e3e9af297707f6 /meta
parentea8b914ae8a0d474586d0526b5b5e81206922ed9 (diff)
downloadpoky-b47225f0e803ee91629282e940e6ddc9633e5e54.tar.gz
perf: fix python scripts QA errors
Two QA warnings were being generated from perf, due to the location of python scripts changing in the kernel build: WARNING: perf-1.0-r9 do_package_qa: QA Issue: /usr/libexec/perf-core/scripts/python/call-graph-from-postgresql.py contained in package perf-python requires /usr/bin/python2, but no providers found in RDEPENDS_perf-python? [file-rdeps] WARNING: QA Issue: /usr/libexec/perf-core/tests/attr.py_perf contained in package perf requires /usr/bin/python, but no providers found in its RDEPENDS [file-rdeps] By adding libexec dir to both the tests and scripts packaging, we get the appropriate RDEPENDS on the packages that actually contain the python scripts (without making perf-core depend on python). We also tweak any python scripts to use '/usr/bin/env python', rather than a version specific python, since it won't be provided and generate a QA error. [YOCTO #8991] (From OE-Core rev: d7888b6d7fd1a1930013f3d4e31a2522038cdc62) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-kernel/perf/perf.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 8b86290201..e9c5c0c9f3 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -183,6 +183,11 @@ do_configure_prepend () {
183 sed -i 's,#include "tests/tests.h",#include "tests/tests.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/tests/dwarf-unwind.c 183 sed -i 's,#include "tests/tests.h",#include "tests/tests.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/tests/dwarf-unwind.c
184 sed -i 's,#include "perf_regs.h",#include "perf_regs.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/util/unwind-libunwind.c 184 sed -i 's,#include "perf_regs.h",#include "perf_regs.h"\n#include "util/debug.h",' ${S}/tools/perf/arch/arm/util/unwind-libunwind.c
185 fi 185 fi
186
187 # use /usr/bin/env instead of version specific python
188 for s in `find ${S}/tools/perf/scripts/python/ -name '*.py'`; do
189 sed -i 's,/usr/bin/python2,/usr/bin/env python,' "${s}"
190 done
186} 191}
187 192
188python do_package_prepend() { 193python do_package_prepend() {
@@ -205,8 +210,9 @@ RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}"
205 210
206FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent" 211FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent"
207FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive" 212FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive"
208FILES_${PN}-tests = "${libdir}/perf/perf-core/tests" 213FILES_${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests"
209FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python" 214FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python"
215FILES_${PN}-python += "${libexecdir}/perf-core/scripts/python/*"
210FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl" 216FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl"
211 217
212 218