Skip to contentSkip to conversation

node-startup-controller: Fixing conf file while packaging

PATCH In review Sujith H 3 participants 6 messages Jun 4, 2013 – Jun 5, 2013

lore
Share & tools
lore

Sujith H

author
#0 lore raw

PATCH 1/1 node-startup-controller: Fixing conf file while packaging

From: Sujith H <[email protected]>

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.

---
 .../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(+)
recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb +3 -0
index 470bb97..fd3e1c9 100644
@@ -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
+}
recipes-extended/node-startup-controller/node-startup-controller_git.bb +3 -0
index 0d3b90c..2fec5da 100644
@@ -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
+}
Signature · 1 line
1.8.1.4
author
#1 lore raw

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

Quoted 50 lines · Sujith H

From: Sujith H <[email protected]>

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.

---
.../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(+)
(quoted diff) +0 -0

node-startup-controller_1.0.2.bbb/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

recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb +2 -0
@@ -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

(quoted diff) +1 -0
+}
(quoted diff) +0 -0

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

recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb +2 -0
@@ -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

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

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

Quoted 83 lines · sujith h

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 <[email protected] <mailto:[email protected]>> wrote:

    From: Sujith H <[email protected]
    <mailto:[email protected]>>

    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 <[email protected]
    <mailto:[email protected]>>
    ---
     .../node-startup-controller/node-startup-controller_1.0.2.bb
    <http://node-startup-controller_1.0.2.bb>   | 3 +++
     .../node-startup-controller/node-startup-controller_git.bb
    <http://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
    <http://node-startup-controller_1.0.2.bb>
    b/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb
    <http://node-startup-controller_1.0.2.bb>
    index 470bb97..fd3e1c9 100644
    ---
    a/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb
    <http://node-startup-controller_1.0.2.bb>
    +++
    b/recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb
    <http://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
    <http://node-startup-controller_git.bb>
    b/recipes-extended/node-startup-controller/node-startup-controller_git.bb
    <http://node-startup-controller_git.bb>
    index 0d3b90c..2fec5da 100644
    ---
    a/recipes-extended/node-startup-controller/node-startup-controller_git.bb
    <http://node-startup-controller_git.bb>
    +++
    b/recipes-extended/node-startup-controller/node-startup-controller_git.bb
    <http://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
Signature · 5 lines
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
author
#3 lore raw

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.

Thanks,

Sujith H

Quoted 89 lines · Florin Sarbu

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

Quoted 44 lines · Sujith H

From: Sujith H <[email protected]>

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.

---
.../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(+)
(quoted diff) +0 -0

node-startup-controller_1.0.2.bbb/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

recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb +2 -0
@@ -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

(quoted diff) +1 -0
+}
(quoted diff) +0 -0

node-startup-controller_git.bbb/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

recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb +2 -0
@@ -51,3 +51,6 @@ FILES_${PN}-nsm-dummy = "\
 FILES_${PN}-nsm-dummy-dbg = "\
        ${libdir}/${PN}-1/.debug/nsm-dummy \
        "
+do_install_append() {
+    rm -f
Quoted 6 lines

${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

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

Hi,

Quoted 22 lines

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)

Quoted 1 line

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

Quoted 117 lines

Thanks,
Sujith H

On Tue, Jun 4, 2013 at 6:45 PM, Florin Sarbu <[email protected]> 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

<[email protected]> wrote:

From: Sujith H <[email protected]>

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
<[email protected]>

			---
			 .../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

author
#5 lore raw

Hi,

Quoted 26 lines · Holger

Hi,

Quoted 4 lines

Hi Florin,

You are right. The error I get is:

Quoted 9 lines

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

Quoted 4 lines

/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

Quoted 5 lines

* 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)

Quoted 5 lines
Quoted 1 line

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.

Well NSM_dummy doesn't provide org.genivi.NodeStateManager.conf . So my worry is doing so, would it resolve the issue? If you can help me find out why we need to remove NSM_dummy that would be nice of you.

Thanks,

Sujith H

Quoted 126 lines

Regards,
Holger

Quoted 24 lines

Thanks,
Sujith H

On Tue, Jun 4, 2013 at 6:45 PM, Florin Sarbu <[email protected]

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-
Quoted 2 lines

state-manager
during the do_rootfs phase of foton-image. But this

behavior

Quoted 18 lines

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
<[email protected]> wrote:

Quoted 5 lines

From: Sujith H <[email protected]>

Issue found while building foton-image when
PACKAGE_CLASSES
set to "package_ipk". This patch will fix the

issue.

Quoted 69 lines

This patch has to be applied to branch 4.0.

Signed-off-by: Sujith H
<[email protected]>

                      ---
                       .../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

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