Skip to contentSkip to conversation

New netbase changes

PATCH Superseded Jack Mitchell 4 participants 9 messages Feb 8, 2013 – Feb 11, 2013

lore
Share & tools
lore
#0 lore raw

Now that netbase has been split up into netbase and init-ifupdown, what is the best way of removing init-ifupdown. I notice that it is in packagroup-core-boot, which I would rather not keep a local copy of.

The only solution that comes to mind (bar local packagegroup-core-boot copy) is that we have a NETWORK_MANAGER variable and that it becomes another virtual-runtime type thing? I can't think of a situation where you would want more than one network manager on a machine at any one time...

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--
#1 lore raw

PATCH 1/1 packagegroup-core-boot: add VIRTUAL-RUNTIME_network_manager

From: Jack Mitchell <[email protected]>

Now netbase has been split into netbase and init-ifupdown, the user should be able to make a choice on which network manager to install, and not be forced to install init-ifupdown alongside if they wish to use a vanilla copy of packagegroup-core-boot

---
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +2 -1
index b9183a8..a714879 100644
@@ -29,6 +29,7 @@ VIRTUAL-RUNTIME_login_manager ?= "tinylogin"
 VIRTUAL-RUNTIME_init_manager ?= "${DISTRO_FEATURES_INITMAN}"
 VIRTUAL-RUNTIME_initscripts ?= "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'initscripts', '',d)}"
 VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_network_manager ?= "init-ifupdown"
 
 RDEPENDS_${PN} = "\
     base-files \
@@ -38,7 +39,7 @@ RDEPENDS_${PN} = "\
     ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
     modutils-initscripts \
     netbase \
-    init-ifupdown \
+    ${VIRTUAL-RUNTIME_network_manager} \
     ${VIRTUAL-RUNTIME_login_manager} \
     ${VIRTUAL-RUNTIME_init_manager} \
     ${VIRTUAL-RUNTIME_initscripts} \
Signature · 1 line
1.8.1.2
#2 lore raw

Re: [PATCH] packagegroup-core-boot: add VIRTUAL-RUNTIME_network_manager

Quoted 6 lines · On 8 February 2013 14:55, <[email protected]> wrote:

From: Jack Mitchell <[email protected]>

Now netbase has been split into netbase and init-ifupdown, the user should be able to make a choice on which network manager to install, and not be forced to install init-ifupdown alongside if they wish to use a vanilla copy of packagegroup-core-boot

Seems like a reasonable solution to me.

At the moment the sato packagegroup pulls in connman indirectly via connman-gnome, it might be reasonable to set VIRTUAL_RUNTIME_network_manager there too.

Ross

#3 lore raw

PATCH v2 1/1 packagegroup-core-boot: add VIRTUAL-RUNTIME_network_manager

From: Jack Mitchell <[email protected]>

Now netbase has been split into netbase and init-ifupdown, the user should be able to make a choice on which network manager to install, and not be forced to install init-ifupdown alongside if they wish to use a vanilla copy of packagegroup-core-boot

v2:
- Update packagage-core-x11-sato to use the new variable

---
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb     | 3 ++-
 meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +2 -1
index b9183a8..a714879 100644
@@ -29,6 +29,7 @@ VIRTUAL-RUNTIME_login_manager ?= "tinylogin"
 VIRTUAL-RUNTIME_init_manager ?= "${DISTRO_FEATURES_INITMAN}"
 VIRTUAL-RUNTIME_initscripts ?= "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'initscripts', '',d)}"
 VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_network_manager ?= "init-ifupdown"
 
 RDEPENDS_${PN} = "\
     base-files \
@@ -38,7 +39,7 @@ RDEPENDS_${PN} = "\
     ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
     modutils-initscripts \
     netbase \
-    init-ifupdown \
+    ${VIRTUAL-RUNTIME_network_manager} \
     ${VIRTUAL-RUNTIME_login_manager} \
     ${VIRTUAL-RUNTIME_init_manager} \
     ${VIRTUAL-RUNTIME_initscripts} \
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +2 -1
index a4413be..7c000ab 100644
@@ -26,6 +26,8 @@ RDEPENDS_${PN} = "\
 NETWORK_MANAGER ?= "connman-gnome"
 NETWORK_MANAGER_libc-uclibc = ""
 
+VIRTUAL-RUNTIME_network_manager = "${NETWORK_MANAGER}"
+
 SUMMARY_${PN}-base = "Sato desktop - base packages"
 RDEPENDS_${PN}-base = "\
     matchbox-desktop \
@@ -40,7 +42,6 @@ RDEPENDS_${PN}-base = "\
     gtk-sato-engine \
     shutdown-desktop \
     libsdl \
-    ${NETWORK_MANAGER} \
     "
 
 # pcmanfm doesn't work on mips
Signature · 1 line
1.8.1.2
#4 lore raw

Re: [PATCHv2] packagegroup-core-boot: add VIRTUAL-RUNTIME_network_manager

Quoted 42 lines · On Fri, Feb 08, 2013 at 03:20:33PM +0000, [email protected] wrote:

From: Jack Mitchell <[email protected]>

Now netbase has been split into netbase and init-ifupdown, the user should be able to make a choice on which network manager to install, and not be forced to install init-ifupdown alongside if they wish to use a vanilla copy of packagegroup-core-boot

v2:
- Update packagage-core-x11-sato to use the new variable

---
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb     | 3 ++-
 meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +2 -1
index b9183a8..a714879 100644
@@ -29,6 +29,7 @@ VIRTUAL-RUNTIME_login_manager ?= "tinylogin"
 VIRTUAL-RUNTIME_init_manager ?= "${DISTRO_FEATURES_INITMAN}"
 VIRTUAL-RUNTIME_initscripts ?= "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'initscripts', '',d)}"
 VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_network_manager ?= "init-ifupdown"
 
 RDEPENDS_${PN} = "\
     base-files \
@@ -38,7 +39,7 @@ RDEPENDS_${PN} = "\
     ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
     modutils-initscripts \
     netbase \
-    init-ifupdown \
+    ${VIRTUAL-RUNTIME_network_manager} \
     ${VIRTUAL-RUNTIME_login_manager} \
     ${VIRTUAL-RUNTIME_init_manager} \
     ${VIRTUAL-RUNTIME_initscripts} \
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +0 -0
index a4413be..7c000ab 100644

meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb RDEPENDS_${PN} = "\ · line 29

Quoted 4 lines
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +1 -0
@@ -26,6 +26,8 @@ RDEPENDS_${PN} = "\
 NETWORK_MANAGER ?= "connman-gnome"
 NETWORK_MANAGER_libc-uclibc = ""
 
+VIRTUAL-RUNTIME_network_manager = "${NETWORK_MANAGER}"

Please use ?= here too

Quoted 20 lines
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +1 -1
+
 SUMMARY_${PN}-base = "Sato desktop - base packages"
 RDEPENDS_${PN}-base = "\
     matchbox-desktop \
@@ -40,7 +42,6 @@ RDEPENDS_${PN}-base = "\
     gtk-sato-engine \
     shutdown-desktop \
     libsdl \
-    ${NETWORK_MANAGER} \
     "
 
 # pcmanfm doesn't work on mips
Signature · 7 lines
1.8.1.2


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#6 lore raw

Re: [PATCHv2] packagegroup-core-boot: add VIRTUAL-RUNTIME_network_manager

In reply to [email protected]
Quoted 18 lines · On 8 February 2013 15:20, <[email protected]> wrote:

Now netbase has been split into netbase and init-ifupdown, the user should be able to make a choice on which network manager to install, and not be forced to install init-ifupdown alongside if they wish to use a vanilla copy of packagegroup-core-boot

v2:
- Update packagage-core-x11-sato to use the new variable

meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +2 -0
@@ -26,6 +26,8 @@ RDEPENDS_${PN} = "\
 NETWORK_MANAGER ?= "connman-gnome"
 NETWORK_MANAGER_libc-uclibc = ""
 
+VIRTUAL-RUNTIME_network_manager = "${NETWORK_MANAGER}"
+
 SUMMARY_${PN}-base = "Sato desktop - base packages"
 RDEPENDS_${PN}-base = "\
     matchbox-desktop \

meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb RDEPENDS_${PN}-base = "\ · line 45

Quoted 5 lines
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +0 -1
@@ -40,7 +42,6 @@ RDEPENDS_${PN}-base = "\
     gtk-sato-engine \
     shutdown-desktop \
     libsdl \
-    ${NETWORK_MANAGER} \
     "

I meant to keep the NETWORK_MANAGER variable as that's the networking UI (connman-gnome is the panel menu), but also add the VR_nm variable.

Ross

#5 lore raw

Re: [PATCHv2] packagegroup-core-boot: add VIRTUAL-RUNTIME_network_manager

In reply to Martin Jansa
Quoted 65 lines · Martin Jansa
Quoted 42 lines · On Fri, Feb 08, 2013 at 03:20:33PM +0000, [email protected] wrote:

From: Jack Mitchell <[email protected]>

Now netbase has been split into netbase and init-ifupdown, the user should be able to make a choice on which network manager to install, and not be forced to install init-ifupdown alongside if they wish to use a vanilla copy of packagegroup-core-boot

v2:
- Update packagage-core-x11-sato to use the new variable

---
  meta/recipes-core/packagegroups/packagegroup-core-boot.bb     | 3 ++-
  meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb | 3 ++-
  2 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +2 -1
index b9183a8..a714879 100644
@@ -29,6 +29,7 @@ VIRTUAL-RUNTIME_login_manager ?= "tinylogin"
  VIRTUAL-RUNTIME_init_manager ?= "${DISTRO_FEATURES_INITMAN}"
  VIRTUAL-RUNTIME_initscripts ?= "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'initscripts', '',d)}"
  VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_network_manager ?= "init-ifupdown"
 
  RDEPENDS_${PN} = "\
      base-files \
@@ -38,7 +39,7 @@ RDEPENDS_${PN} = "\
      ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
      modutils-initscripts \
      netbase \
-    init-ifupdown \
+    ${VIRTUAL-RUNTIME_network_manager} \
      ${VIRTUAL-RUNTIME_login_manager} \
      ${VIRTUAL-RUNTIME_init_manager} \
      ${VIRTUAL-RUNTIME_initscripts} \
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +0 -0
index a4413be..7c000ab 100644

meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb RDEPENDS_${PN} = "\ · line 29

Quoted 4 lines
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +1 -0
@@ -26,6 +26,8 @@ RDEPENDS_${PN} = "\
  NETWORK_MANAGER ?= "connman-gnome"
  NETWORK_MANAGER_libc-uclibc = ""
 
+VIRTUAL-RUNTIME_network_manager = "${NETWORK_MANAGER}"

Please use ?= here too

Quoted 16 lines
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +1 -1
+
  SUMMARY_${PN}-base = "Sato desktop - base packages"
  RDEPENDS_${PN}-base = "\
      matchbox-desktop \
@@ -40,7 +42,6 @@ RDEPENDS_${PN}-base = "\
      gtk-sato-engine \
      shutdown-desktop \
      libsdl \
-    ${NETWORK_MANAGER} \
      "
 
  # pcmanfm doesn't work on mips
Signature · 1 line
1.8.1.2
Quoted 4 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

I have just given this another run through and it seems that VIRTUAL-RUNTIME only takes effect when set in the distro .conf, is this expected? If so, then it won't make any difference when set in the image recipe... correct?

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--
#7 lore raw

Re: [PATCHv2] packagegroup-core-boot: add VIRTUAL-RUNTIME_network_manager

In reply to [email protected]
Quoted 9 lines · On Fri, Feb 8, 2013 at 1:20 PM, <[email protected]> wrote:

From: Jack Mitchell <[email protected]>

Now netbase has been split into netbase and init-ifupdown, the user should be able to make a choice on which network manager to install, and not be forced to install init-ifupdown alongside if they wish to use a vanilla copy of packagegroup-core-boot

v2:
- Update packagage-core-x11-sato to use the new variable

v2 comment ought to be done bellow --- line.

Quoted 56 lines
---
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb     | 3 ++-
 meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +2 -1
index b9183a8..a714879 100644
@@ -29,6 +29,7 @@ VIRTUAL-RUNTIME_login_manager ?= "tinylogin"
 VIRTUAL-RUNTIME_init_manager ?= "${DISTRO_FEATURES_INITMAN}"
 VIRTUAL-RUNTIME_initscripts ?= "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'initscripts', '',d)}"
 VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_network_manager ?= "init-ifupdown"
 
 RDEPENDS_${PN} = "\
     base-files \
@@ -38,7 +39,7 @@ RDEPENDS_${PN} = "\
     ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
     modutils-initscripts \
     netbase \
-    init-ifupdown \
+    ${VIRTUAL-RUNTIME_network_manager} \
     ${VIRTUAL-RUNTIME_login_manager} \
     ${VIRTUAL-RUNTIME_init_manager} \
     ${VIRTUAL-RUNTIME_initscripts} \
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +2 -2
index a4413be..7c000ab 100644
@@ -26,6 +26,8 @@ RDEPENDS_${PN} = "\
 NETWORK_MANAGER ?= "connman-gnome"
 NETWORK_MANAGER_libc-uclibc = ""
 
+VIRTUAL-RUNTIME_network_manager = "${NETWORK_MANAGER}"
+
 SUMMARY_${PN}-base = "Sato desktop - base packages"
 RDEPENDS_${PN}-base = "\
     matchbox-desktop \
@@ -40,7 +42,6 @@ RDEPENDS_${PN}-base = "\
     gtk-sato-engine \
     shutdown-desktop \
     libsdl \
-    ${NETWORK_MANAGER} \
     "
 
 # pcmanfm doesn't work on mips
--

1.8.1.2

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#8 lore raw

Re: [PATCHv2] packagegroup-core-boot: add VIRTUAL-RUNTIME_network_manager

In reply to [email protected]
Quoted 51 lines · On 08/02/13 15:20, [email protected] wrote:

From: Jack Mitchell <[email protected]>

Now netbase has been split into netbase and init-ifupdown, the user should be able to make a choice on which network manager to install, and not be forced to install init-ifupdown alongside if they wish to use a vanilla copy of packagegroup-core-boot

v2:
- Update packagage-core-x11-sato to use the new variable

---
  meta/recipes-core/packagegroups/packagegroup-core-boot.bb     | 3 ++-
  meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb | 3 ++-
  2 files changed, 4 insertions(+), 2 deletions(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +2 -1
index b9183a8..a714879 100644
@@ -29,6 +29,7 @@ VIRTUAL-RUNTIME_login_manager ?= "tinylogin"
  VIRTUAL-RUNTIME_init_manager ?= "${DISTRO_FEATURES_INITMAN}"
  VIRTUAL-RUNTIME_initscripts ?= "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'initscripts', '',d)}"
  VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+VIRTUAL-RUNTIME_network_manager ?= "init-ifupdown"
 
  RDEPENDS_${PN} = "\
      base-files \
@@ -38,7 +39,7 @@ RDEPENDS_${PN} = "\
      ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
      modutils-initscripts \
      netbase \
-    init-ifupdown \
+    ${VIRTUAL-RUNTIME_network_manager} \
      ${VIRTUAL-RUNTIME_login_manager} \
      ${VIRTUAL-RUNTIME_init_manager} \
      ${VIRTUAL-RUNTIME_initscripts} \
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +2 -0
index a4413be..7c000ab 100644
@@ -26,6 +26,8 @@ RDEPENDS_${PN} = "\
  NETWORK_MANAGER ?= "connman-gnome"
  NETWORK_MANAGER_libc-uclibc = ""
 
+VIRTUAL-RUNTIME_network_manager = "${NETWORK_MANAGER}"
+
  SUMMARY_${PN}-base = "Sato desktop - base packages"
  RDEPENDS_${PN}-base = "\
      matchbox-desktop \

meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb RDEPENDS_${PN}-base = "\ · line 47

Quoted 7 lines
meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +0 -1
@@ -40,7 +42,6 @@ RDEPENDS_${PN}-base = "\
      gtk-sato-engine \
      shutdown-desktop \
      libsdl \
-    ${NETWORK_MANAGER} \
      "
 
  # pcmanfm doesn't work on mips

Ok, this isn't going to work as I intended, VIRTUAL-RUNTIME can only be set in the distro configuration so we can't have it set on a per image basis. I'm not sure how the best way to solve this is now, suggestions welcomed...

Regards,

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--