Skip to contentSkip to conversation

recipes-support: gperftools: RDEPENDS for pperf

PATCH New Cengiz Can 1 participant 1 message Nov 28, 2019

lore
Share & tools
lore

Cengiz Can

author
#0 lore raw

PATCH 1/1 recipes-support: gperftools: RDEPENDS for pperf

gperftools comes with pperf 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.

---
 meta-oe/recipes-support/gperftools/gperftools_2.7.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-support/gperftools/gperftools_2.7.bb +5 -0
index 731c83516..e38b3ccde 100644
@@ -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}"
+
+# pperf tool requires Getopt::Long and POSIX Perl 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