Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] bootchart2: /sbin/bootchartd referencing wrong libdir
@ 2015-03-04  7:15 Jian Liu
  2015-03-04  8:59 ` Liu Jian
  0 siblings, 1 reply; 2+ messages in thread
From: Jian Liu @ 2015-03-04  7:15 UTC (permalink / raw)
  To: openembedded-core

- During do_compile(), LIBDIR is set with default vaule which
  is /lib. bootchartd will use LIBDIR to comprise the path of
  bootchart-collector when compiling.
  But during do_install(), LIBDIR is set to /lib64. The path
  that bootchart-collector is installed in is under LIBDIR

  So bootchartd can not find bootchart-collector.

  Set LIBDIR to /lib64 during both task to fix this inconsistence

- bootchartd depends the command lsb_release and pidof during
  running, so add sysvinit-pidof and lsb in the RDEPENDS

Signed-off-by: Jian Liu <jian.liu@windriver.com>
---
 meta/recipes-devtools/bootchart2/bootchart2_git.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/bootchart2/bootchart2_git.bb b/meta/recipes-devtools/bootchart2/bootchart2_git.bb
index 04fb901..2c6d0ff 100644
--- a/meta/recipes-devtools/bootchart2/bootchart2_git.bb
+++ b/meta/recipes-devtools/bootchart2/bootchart2_git.bb
@@ -120,6 +120,10 @@ do_compile_append_class-native () {
     chmod +x ${S}/pybootchartgui
 }
 
+do_compile_prepend () {
+    export LIBDIR="${base_libdir}"
+}
+
 do_install () {
     install -d ${D}${sysconfdir} # needed for -native
     export PY_LIBDIR="${libdir}/${PYTHON_DIR}"
@@ -136,6 +140,7 @@ do_install () {
 
 PACKAGES =+ "pybootchartgui"
 FILES_pybootchartgui += "${libdir}/python*/site-packages/pybootchartgui ${bindir}/pybootchartgui"
+RDEPENDS_${PN} = "sysvinit-pidof lsb"
 RDEPENDS_pybootchartgui = "python-pycairo python-compression python-image python-textutils python-shell python-compression python-codecs"
 DEPENDS_append_class-native = " python-pycairo-native"
 
-- 
1.8.5.2.233.g932f7e4



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

end of thread, other threads:[~2015-03-04  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04  7:15 [PATCH] bootchart2: /sbin/bootchartd referencing wrong libdir Jian Liu
2015-03-04  8:59 ` Liu Jian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox