[OE-core] [PATCH][v2] bootchart2: add runtime dependency

rongqing.li at windriver.com rongqing.li at windriver.com
Wed Jul 1 01:54:14 UTC 2015


From: Roy Li <rongqing.li at windriver.com>

Bootchartd needs the command lsb_release and pidof to run, pidof maybe
provided by sysvinit or procpus;
To native bootchart2, only pybootchartgui is used, and which is not needed
both pidof and lsb_release

Signed-off-by: Roy Li <rongqing.li at windriver.com>
---
 meta/recipes-devtools/bootchart2/bootchart2_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/bootchart2/bootchart2_git.bb b/meta/recipes-devtools/bootchart2/bootchart2_git.bb
index 5fc7211..ea9f179 100644
--- a/meta/recipes-devtools/bootchart2/bootchart2_git.bb
+++ b/meta/recipes-devtools/bootchart2/bootchart2_git.bb
@@ -143,6 +143,8 @@ do_install () {
 PACKAGES =+ "pybootchartgui"
 FILES_pybootchartgui += "${libdir}/python*/site-packages/pybootchartgui ${bindir}/pybootchartgui"
 RDEPENDS_pybootchartgui = "python-pycairo python-compression python-image python-textutils python-shell python-compression python-codecs"
+RDEPENDS_${PN}_class-target += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit-pidof', 'procps', d)}"
+RDEPENDS_${PN}_class-target += "lsb"
 DEPENDS_append_class-native = " python-pycairo-native"
 
 PACKAGES =+ "bootchartd-stop-initscript"
-- 
1.9.1




More information about the Openembedded-core mailing list