diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2023-11-03 15:46:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-05 08:44:06 +0000 |
commit | 8ea375589d68dfbf4eaf4974200c6a5a8b3a4b49 (patch) | |
tree | 87c33ca7ad15f067d8e7394cf5d12bac59e8aacf /meta/recipes-devtools/valgrind | |
parent | 838b8e78dcaac783743c3a69f4f59a16759eb8a0 (diff) | |
download | poky-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.bb | 14 |
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. |
93 | SELECTED_OPTIMIZATION = "${DEBUG_FLAGS}" | 93 | SELECTED_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. | ||
97 | PACKAGES =+ "${PN}-cachegrind ${PN}-massif ${PN}-callgrind" | ||
98 | |||
99 | FILES:${PN}-cachegrind = "${bindir}/cg_*" | ||
100 | FILES:${PN}-massif = "${bindir}/ms_*" | ||
101 | FILES:${PN}-callgrind = "${bindir}/callgrind_*" | ||
102 | |||
103 | RDEPENDS:${PN}-cachegrind = "${PN} python3-core" | ||
104 | RDEPENDS:${PN}-massif = "${PN} perl" | ||
105 | RDEPENDS:${PN}-callgrind = "${PN} perl" | ||
106 | |||
95 | do_configure:prepend () { | 107 | do_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 | ||
117 | INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${libexecdir}/valgrind/vgpreload_memcheck-${VALGRINDARCH}-linux.so" | 129 | INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${libexecdir}/valgrind/vgpreload_memcheck-${VALGRINDARCH}-linux.so" |
118 | 130 | ||
119 | RDEPENDS:${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. |
123 | RRECOMMENDS:${PN} += "${TCLIBC}-dbg" | 133 | RRECOMMENDS:${PN} += "${TCLIBC}-dbg" |