From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 8085665C88 for ; Wed, 4 Mar 2015 09:02:20 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id t2492Kc4005890 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 4 Mar 2015 01:02:20 -0800 (PST) Received: from [128.224.163.134] (128.224.163.134) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.224.2; Wed, 4 Mar 2015 01:02:20 -0800 Message-ID: <54F6C983.3030906@windriver.com> Date: Wed, 4 Mar 2015 16:59:47 +0800 From: Liu Jian User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: References: <1425453335-26755-1-git-send-email-jian.liu@windriver.com> In-Reply-To: <1425453335-26755-1-git-send-email-jian.liu@windriver.com> Subject: Re: [PATCH] bootchart2: /sbin/bootchartd referencing wrong libdir X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2015 09:02:21 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Please ignore this patch. Someone sent it previously // Jian 于 2015年03月04日 15:15, Jian Liu 写道: > - 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 > --- > 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" > -- Jian Liu Email: jian.liu@windriver.com Office Phone: 86-10-84778539