[oe-commits] Roy Li : bootchart2: add runtime dependency

git at git.openembedded.org git at git.openembedded.org
Mon Jun 29 08:28:26 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: b9c73d78b808f66cc93d4cbcdb040be870049281
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b9c73d78b808f66cc93d4cbcdb040be870049281

Author: Roy Li <rongqing.li at windriver.com>
Date:   Mon Jun 29 13:39:34 2015 +0800

bootchart2: add runtime dependency

bootchartd needs the command lsb_release and pidof to run, pidof maybe
provided by sysvinit or procpus

Signed-off-by: Roy Li <rongqing.li at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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..586417e 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} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit-pidof', 'procps', d)}"
+RDEPENDS_${PN} += "lsb"
 DEPENDS_append_class-native = " python-pycairo-native"
 
 PACKAGES =+ "bootchartd-stop-initscript"



More information about the Openembedded-commits mailing list