[yocto] [meta-ivi] [PATCH] node-startup-controller: Fixing conf file while packaging

Behrens, Holger Holger.Behrens at windriver.com
Tue Jun 4 23:34:53 PDT 2013


Hi,

> Hi Florin,
> 
> You are right. The error I get is:
> 
> Configuring netbase.
> Configuring procps.
> Configuring packagegroup-core-boot-genivi.
> Configuring u-boot-sabre-sd.
> Configuring u-boot-sabre-lite.
> Configuring run-postinsts.
> Configuring u-boot-sabre-aiquad.
> Collected errors:
>  * check_data_file_clashes: Package node-state-manager wants to install file
> /home/sujith/MEL7/foton-upstream/atp-build/tmp/work/mx6q-poky-linux-
> gnueabi/foton-image/4.0.0-r0/rootfs/etc/dbus-
> 1/system.d/org.genivi.NodeStateManager.conf
>         But that file is already provided by package  * node-startup-controller
>  * opkg_install_cmd: Cannot install package packagegroup-core-p2.
> ERROR: Function failed: do_rootfs (see /home/sujith/MEL7/foton-
> upstream/atp-build/tmp/work/mx6q-poky-linux-gnueabi/foton-
> image/4.0.0-r0/temp/log.do_rootfs.14894 for further information)
> 
> This is one solution that came to my mind.

in cases we have both the NSC (P1) and the NSM (P2) in an image, the NSM_dummy which is part of the NSC should not be installed.

Regards,
Holger

> Thanks,
> Sujith H
> 
> 
> 
> On Tue, Jun 4, 2013 at 6:45 PM, Florin Sarbu <florin.sarbu at windriver.com>
> wrote:
> 
> 
> 	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 at gmail.com> wrote:
> 
> 
> 			From: Sujith H <Sujith_Haridasan at 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 at 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
> 
> 
> 
> 
> 
> 
> --
> സുജിത് ഹരിദാസന്
> Bangalore
> <Project>Contributor to KDE project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info



More information about the yocto mailing list