All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] recipes-support: gperftools: RDEPENDS for pprof
@ 2019-11-28 15:28 Cengiz Can
  2020-07-25 12:40 ` [oe] " nefethael
  0 siblings, 1 reply; 2+ messages in thread
From: Cengiz Can @ 2019-11-28 15:28 UTC (permalink / raw)
  To: openembedded-devel

gperftools comes with pprof tool that usually needs to be run at target
machine to aggregate CPUPROFILE data.

However since we were not shipping objdump (binutils), Getopt::long
and POSIX perl5 modules, it was failing.

I've extended RDEPENDS_${PN} with those so that whenever someone
installs gperftools, those dependencies are fulfilled as well.

Signed-off-by: Cengiz Can <cengiz@kernel.wtf>
---
 meta-oe/recipes-support/gperftools/gperftools_2.7.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.7.bb b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
index 731c83516..ee34acec2 100644
--- a/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
+++ b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
@@ -35,5 +35,10 @@ PACKAGECONFIG[static] = "--enable-static,--disable-static,"

 PACKAGE_BEFORE_PN += "libtcmalloc-minimal"
 FILES_libtcmalloc-minimal = "${libdir}/libtcmalloc_minimal*${SOLIBS} ${libdir}/libtcmalloc_minimal_debug*${SOLIBS}"
+
+# pprof tool requires Getopt::long and POSIX perl5 modules.
+# Also runs `objdump` on each cpuprofile data file
+RDEPENDS_${PN} += "binutils perl-module-getopt-long perl-module-posix"
+
 RDEPENDS_${PN} += "libtcmalloc-minimal (= ${EXTENDPKGV})"

--
2.24.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-25 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-28 15:28 [PATCH v2] recipes-support: gperftools: RDEPENDS for pprof Cengiz Can
2020-07-25 12:40 ` [oe] " nefethael

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.