From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 78BA8E014A5 for ; Tue, 4 Jun 2013 06:15:13 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.3) with ESMTP id r54DF9nv000783 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 4 Jun 2013 06:15:09 -0700 (PDT) Received: from [128.224.171.138] (128.224.171.138) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.2.342.3; Tue, 4 Jun 2013 06:15:08 -0700 Message-ID: <51ADE85D.5000908@windriver.com> Date: Tue, 4 Jun 2013 16:15:09 +0300 From: Florin Sarbu User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130529 Thunderbird/17.0.6 MIME-Version: 1.0 To: sujith h References: <1370340205-21395-1-git-send-email-sujith.h@gmail.com> In-Reply-To: Cc: yocto@yoctoproject.org, Sujith H Subject: Re: [meta-ivi] [PATCH] node-startup-controller: Fixing conf file while packaging X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2013 13:15:13 -0000 Content-Type: multipart/alternative; boundary="------------080100050108080408060307" --------------080100050108080408060307 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Hi, please provide a log with the actual error. The attached patch does not contain a solution to your problem in my opinion. Thank you, Florin On 06/04/2013 01:13 PM, sujith h wrote: > Hi, > > When package_ipk is used, then opkg fails to install node-state-manager > during the do_rootfs phase of foton-image. But this behavior is not seen > when rpm is used. opkg fails to install when > org.genivi.NodeStateManager.conf > is there in etc/dbus-1/dbus-1/system.d/ directory provided by > node-startup-controller. > When rpm packaging is used then node-state-manager's > org.genivi.NodeStateManager.conf > is forcefully installed. > > Thanks, > > Sujith H > > On Tue, Jun 4, 2013 at 3:33 PM, Sujith H > wrote: > > From: Sujith H > > > Issue found while building foton-image when PACKAGE_CLASSES > set to "package_ipk". This patch will fix the issue. > This patch has to be applied to branch 4.0. > > Signed-off-by: Sujith H > > --- > .../node-startup-controller/node-startup-controller_1.0.2.bb > | 3 +++ > .../node-startup-controller/node-startup-controller_git.bb > | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git > a/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb > > b/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb > > index 470bb97..fd3e1c9 100644 > --- > a/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb > > +++ > b/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb > > @@ -55,3 +55,6 @@ FILES_${PN}-nsm-dummy = "\ > FILES_${PN}-nsm-dummy-dbg = "\ > ${libdir}/${PN}-1/.debug/nsm-dummy \ > " > +do_install_append() { > + rm -f > ${D}${sysconfdir}/dbus-1/system.d/org.genivi.NodeStateManager.conf > +} > diff --git > a/recipes-extended/node-startup-controller/node-startup-controller_git.bb > > b/recipes-extended/node-startup-controller/node-startup-controller_git.bb > > index 0d3b90c..2fec5da 100644 > --- > a/recipes-extended/node-startup-controller/node-startup-controller_git.bb > > +++ > b/recipes-extended/node-startup-controller/node-startup-controller_git.bb > > @@ -51,3 +51,6 @@ FILES_${PN}-nsm-dummy = "\ > FILES_${PN}-nsm-dummy-dbg = "\ > ${libdir}/${PN}-1/.debug/nsm-dummy \ > " > +do_install_append() { > + rm -f > ${D}${sysconfdir}/dbus-1/system.d/org.genivi.NodeStateManager.conf > +} > -- > 1.8.1.4 > > > > > -- > സുജിത് ഹരിദാസന് > Bangalore > Contributor to KDE project > http://fci.wikia.com/wiki/Anti-DRM-Campaign > http://sujithh.info --------------080100050108080408060307 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: 8bit
Hi,
please provide a log with the actual error. The attached patch does not contain a solution to your problem in my opinion.

Thank you,
Florin

On 06/04/2013 01:13 PM, sujith h wrote:
Hi,

When package_ipk is used, then opkg fails to install node-state-manager
during the do_rootfs phase of foton-image. But this behavior is not seen
when rpm is used. opkg fails to install when org.genivi.NodeStateManager.conf
is there in etc/dbus-1/dbus-1/system.d/ directory provided by node-startup-controller.
When rpm packaging is used then node-state-manager's org.genivi.NodeStateManager.conf
is forcefully installed.

Thanks,

Sujith H

On Tue, Jun 4, 2013 at 3:33 PM, Sujith H <sujith.h@gmail.com> wrote:
From: Sujith H <Sujith_Haridasan@mentor.com>

Issue found while building foton-image when PACKAGE_CLASSES
set to "package_ipk". This patch will fix the issue.
This patch has to be applied to branch 4.0.

Signed-off-by: Sujith H <Sujith_Haridasan@mentor.com>
---
 .../node-startup-controller/node-startup-controller_1.0.2.bb           | 3 +++
 .../node-startup-controller/node-startup-controller_git.bb             | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb b/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb
index 470bb97..fd3e1c9 100644
--- a/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb
+++ b/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb
@@ -55,3 +55,6 @@ FILES_${PN}-nsm-dummy = "\
 FILES_${PN}-nsm-dummy-dbg = "\
     ${libdir}/${PN}-1/.debug/nsm-dummy \
     "
+do_install_append() {
+    rm -f ${D}${sysconfdir}/dbus-1/system.d/org.genivi.NodeStateManager.conf
+}
diff --git a/recipes-extended/node-startup-controller/node-startup-controller_git.bb b/recipes-extended/node-startup-controller/node-startup-controller_git.bb
index 0d3b90c..2fec5da 100644
--- a/recipes-extended/node-startup-controller/node-startup-controller_git.bb
+++ b/recipes-extended/node-startup-controller/node-startup-controller_git.bb
@@ -51,3 +51,6 @@ FILES_${PN}-nsm-dummy = "\
 FILES_${PN}-nsm-dummy-dbg = "\
        ${libdir}/${PN}-1/.debug/nsm-dummy \
        "
+do_install_append() {
+    rm -f ${D}${sysconfdir}/dbus-1/system.d/org.genivi.NodeStateManager.conf
+}
--
1.8.1.4




--
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

--------------080100050108080408060307--