summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2023-11-03 15:46:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-05 08:44:06 +0000
commit8ea375589d68dfbf4eaf4974200c6a5a8b3a4b49 (patch)
tree87c33ca7ad15f067d8e7394cf5d12bac59e8aacf /meta/recipes-devtools/valgrind
parent838b8e78dcaac783743c3a69f4f59a16759eb8a0 (diff)
downloadpoky-8ea375589d68dfbf4eaf4974200c6a5a8b3a4b49.tar.gz
valgrind: split helper scripts to separate packages, update dependencies
The cachegrind scripts have been rewritten in python3, so the RDEPENDS on perl is no longer sufficient. This is unfortunately not caught by QA checks since the scripts use #! /usr/bin/env python3 as shebang line. Since the valgrind binary by itself can be quite useful on target, allow including that in the rootfs without also having to pull in the whole perl and python interpreters and stdlibs. (From OE-Core rev: 9797adebd1296f0cf08b1f6f6322fbc804aee14a) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind_3.21.0.bb14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.21.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.21.0.bb
index 717d82830e..68ab319a1b 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.21.0.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.21.0.bb
@@ -92,6 +92,18 @@ CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'"
92# which fixes build path issue in DWARF. 92# which fixes build path issue in DWARF.
93SELECTED_OPTIMIZATION = "${DEBUG_FLAGS}" 93SELECTED_OPTIMIZATION = "${DEBUG_FLAGS}"
94 94
95# Split out various helper scripts to separate packages to avoid the
96# main package depending on perl and python.
97PACKAGES =+ "${PN}-cachegrind ${PN}-massif ${PN}-callgrind"
98
99FILES:${PN}-cachegrind = "${bindir}/cg_*"
100FILES:${PN}-massif = "${bindir}/ms_*"
101FILES:${PN}-callgrind = "${bindir}/callgrind_*"
102
103RDEPENDS:${PN}-cachegrind = "${PN} python3-core"
104RDEPENDS:${PN}-massif = "${PN} perl"
105RDEPENDS:${PN}-callgrind = "${PN} perl"
106
95do_configure:prepend () { 107do_configure:prepend () {
96 rm -rf ${S}/config.h 108 rm -rf ${S}/config.h
97 sed -i -e 's:$(abs_top_builddir):$(pkglibdir)/ptest:g' ${S}/none/tests/Makefile.am 109 sed -i -e 's:$(abs_top_builddir):$(pkglibdir)/ptest:g' ${S}/none/tests/Makefile.am
@@ -116,8 +128,6 @@ VALGRINDARCH:powerpc64le = "ppc64le"
116 128
117INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${libexecdir}/valgrind/vgpreload_memcheck-${VALGRINDARCH}-linux.so" 129INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${libexecdir}/valgrind/vgpreload_memcheck-${VALGRINDARCH}-linux.so"
118 130
119RDEPENDS:${PN} += "perl"
120
121# valgrind needs debug information for ld.so at runtime in order to 131# valgrind needs debug information for ld.so at runtime in order to
122# redirect functions like strlen. 132# redirect functions like strlen.
123RRECOMMENDS:${PN} += "${TCLIBC}-dbg" 133RRECOMMENDS:${PN} += "${TCLIBC}-dbg"