Skip to contentSkip to conversation

meta-xfce/layer: explicitly set networkmanager to NETWORK_MANAGER

PATCH In review Hongxu Jia 3 participants 9 messages Nov 13, 2015

lore
Share & tools
lore

Hongxu Jia

author
#0 lore raw

PATCH 1/1 meta-xfce/layer: explicitly set networkmanager to NETWORK_MANAGER

The NETWORK_MANAGER is connman-gnome in oe-core by default, which conflicts with networkmanager. And networkmanager is required by xfce4-power-manager in meta-xfce. So we explicitly set networkmanager to NETWORK_MANAGER for meta-xfce.

---
 meta-xfce/conf/layer.conf | 3 +++
 1 file changed, 3 insertions(+)
meta-xfce/conf/layer.conf +3 -0
index 55bcef6..e38d85d 100644
@@ -17,3 +17,6 @@ LAYERDEPENDS_xfce-layer += "openembedded-layer"
 LAYERDEPENDS_xfce-layer += "gnome-layer"
 LAYERDEPENDS_xfce-layer += "openembedded-layer"
 LAYERDEPENDS_xfce-layer += "meta-python"
+
+# It is required by xfce4-power-manager
+NETWORK_MANAGER = "networkmanager"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 15 lines · Hongxu Jia

The NETWORK_MANAGER is connman-gnome in oe-core by default, which conflicts with networkmanager. And networkmanager is required by xfce4-power-manager in meta-xfce. So we explicitly set networkmanager to NETWORK_MANAGER for meta-xfce.

---
 meta-xfce/conf/layer.conf | 3 +++
 1 file changed, 3 insertions(+)
meta-xfce/conf/layer.conf +0 -0
index 55bcef6..e38d85d 100644

meta-xfce/conf/layer.conf LAYERDEPENDS_xfce-layer += "openembedded-layer"

Quoted 7 lines
meta-xfce/conf/layer.conf +3 -1
@@ -17,3 +17,6 @@ LAYERDEPENDS_xfce-layer += "openembedded-layer"
 LAYERDEPENDS_xfce-layer += "gnome-layer"
 LAYERDEPENDS_xfce-layer += "openembedded-layer"
 LAYERDEPENDS_xfce-layer += "meta-python"
+
+# It is required by xfce4-power-manager
+NETWORK_MANAGER = "networkmanager"
--

I was wondering why I never needed such kind of patch and checked: In my layers It is only used in packagegroup-core-x11-sato.

So I am fine with this patch but could you mention packagegroup-core-x11-sato in the commit message please.

Andreas

#2 lore raw

Why not use VIRTUAL-RUNTIME variable like in other places? And if it's needed by xfce4-power-manager, then why don't you add it to RDEPENDS there?

Quoted 37 lines · Andreas Müller
Quoted 15 lines · Hongxu Jia

The NETWORK_MANAGER is connman-gnome in oe-core by default, which conflicts with networkmanager. And networkmanager is required by xfce4-power-manager in meta-xfce. So we explicitly set networkmanager to NETWORK_MANAGER for meta-xfce.

---
 meta-xfce/conf/layer.conf | 3 +++
 1 file changed, 3 insertions(+)
meta-xfce/conf/layer.conf +0 -0
index 55bcef6..e38d85d 100644

meta-xfce/conf/layer.conf LAYERDEPENDS_xfce-layer += "openembedded-layer"

Quoted 7 lines
meta-xfce/conf/layer.conf +3 -1
@@ -17,3 +17,6 @@ LAYERDEPENDS_xfce-layer += "openembedded-layer"
 LAYERDEPENDS_xfce-layer += "gnome-layer"
 LAYERDEPENDS_xfce-layer += "openembedded-layer"
 LAYERDEPENDS_xfce-layer += "meta-python"
+
+# It is required by xfce4-power-manager
+NETWORK_MANAGER = "networkmanager"
--

I was wondering why I never needed such kind of patch and checked: In my layers It is only used in packagegroup-core-x11-sato.

So I am fine with this patch but could you mention packagegroup-core-x11-sato in the commit message please.

Andreas
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 3 lines · Martin Jansa

Why not use VIRTUAL-RUNTIME variable like in other places? And if it's needed by xfce4-power-manager, then why don't you add it to RDEPENDS there?

networkmanager is already in RDEPENDS of xfce4-power-manager. I think when building an image packagegroup-core-x11-sato there is a conflict.

I looked into this a bit more and think:
1. networkmanger support is optional so a packagroup would allow conman and xfce4-power-manager live together in harmony
2. I think the patch goes much to far: To have networkmanager in images based on packagegroup-core-x11-sato the correct way would be to write NETWORK_MANAGER = "networkmanager" in the image recipe.

Andreas

author
#4 lore raw
Quoted 7 lines · Andreas Müller
Quoted 3 lines · Martin Jansa

Why not use VIRTUAL-RUNTIME variable like in other places? And if it's needed by xfce4-power-manager, then why don't you add it to RDEPENDS there?

networkmanager is already in RDEPENDS of xfce4-power-manager. I think when building an image packagegroup-core-x11-sato there is a conflict.

Quoted 6 lines

I looked into this a bit more and think:
1. networkmanger support is optional so a packagroup would allow conman and xfce4-power-manager live together in harmony
2. I think the patch goes much to far: To have networkmanager in images based on packagegroup-core-x11-sato the correct way would be to write NETWORK_MANAGER = "networkmanager" in the image recipe.

Hi Andreas,

The condition of writing NETWORK_MANAGER = "networkmanager" is packagegroup-core-x11-sato + xfce4-power-manager, I think it is not proper to test the existence of them in an image recipe.

Hi Martin & Andreas,

How about we still do the setting in meta-xfce's local.conf and replace networkmanager with variable ${NETWORK_MANAGER} in xfce4-power-manager's RDEPENDS.

So we could globally control network manager by variable ${NETWORK_MANAGER} for the similar issue.

//Hongxu

Quoted 1 line

Andreas

#5 lore raw
Quoted 20 lines · Hongxu Jia
Quoted 11 lines · Andreas Müller
Quoted 5 lines · Martin Jansa

Why not use VIRTUAL-RUNTIME variable like in other places? And if it's needed by xfce4-power-manager, then why don't you add it to RDEPENDS there?

networkmanager is already in RDEPENDS of xfce4-power-manager. I think when building an image packagegroup-core-x11-sato there is a conflict.

Quoted 6 lines

I looked into this a bit more and think:
1. networkmanger support is optional so a packagroup would allow conman and xfce4-power-manager live together in harmony
2. I think the patch goes much to far: To have networkmanager in images based on packagegroup-core-x11-sato the correct way would be to write NETWORK_MANAGER = "networkmanager" in the image recipe.

Quoted 5 lines

Hi Andreas,

The condition of writing NETWORK_MANAGER = "networkmanager" is packagegroup-core-x11-sato + xfce4-power-manager, I think it is not proper to test the existence of them in an image recipe.

Here I was wrong

Quoted 14 lines

Hi Martin & Andreas,

How about we still do the setting in meta-xfce's local.conf and replace networkmanager with variable ${NETWORK_MANAGER} in xfce4-power-manager's RDEPENDS.

So we could globally control network manager by variable ${NETWORK_MANAGER} for the similar issue.

//Hongxu

Quoted 2 lines

Andreas

packagegroup-core-x11-sato ships a more or less complete matchbox-desktop. Why build this together with xfce? OK even if you really want to do that for some reason - I think this is a corner case. So why adding a layer - global variable for this?

So I think
* If you want to use xfce4-power-manager + packagegroup-core-x11-sato
+ connman -> add a packageconfig in xfce4-power-manager
* If you are looking for a solution to make packagegroup-core-x11-sato use networkmanager ask somwhere else this is not meta-xfce's job

Andreas

Andreas

author
#6 lore raw
In reply to Martin Jansa
Quoted 1 line · Martin Jansa

Why not use VIRTUAL-RUNTIME variable like in other places?

If use it, I will rename NETWORK_MANAGER with VIRTUAL-RUNTIME_networkmanager in packagegroup-core-x11-sato, to see oe-core whether accept it or not.

Quoted 2 lines

And if it's
needed by xfce4-power-manager, then why don't you add it to RDEPENDS there?

It is reasonable, add the variable(NETWORK_MANAGER or VIRTUAL-RUNTIME_networkmanager) to xfce4-power-manager'S RDEPENDS

//Hongxu

Quoted 40 lines
Quoted 37 lines · Andreas Müller
Quoted 15 lines · Hongxu Jia

The NETWORK_MANAGER is connman-gnome in oe-core by default, which conflicts with networkmanager. And networkmanager is required by xfce4-power-manager in meta-xfce. So we explicitly set networkmanager to NETWORK_MANAGER for meta-xfce.

---
  meta-xfce/conf/layer.conf | 3 +++
  1 file changed, 3 insertions(+)
meta-xfce/conf/layer.conf +0 -0
index 55bcef6..e38d85d 100644

meta-xfce/conf/layer.conf LAYERDEPENDS_xfce-layer += "openembedded-layer"

Quoted 7 lines
meta-xfce/conf/layer.conf +3 -1
@@ -17,3 +17,6 @@ LAYERDEPENDS_xfce-layer += "openembedded-layer"
  LAYERDEPENDS_xfce-layer += "gnome-layer"
  LAYERDEPENDS_xfce-layer += "openembedded-layer"
  LAYERDEPENDS_xfce-layer += "meta-python"
+
+# It is required by xfce4-power-manager
+NETWORK_MANAGER = "networkmanager"
--

I was wondering why I never needed such kind of patch and checked: In my layers It is only used in packagegroup-core-x11-sato.

So I am fine with this patch but could you mention packagegroup-core-x11-sato in the commit message please.

Andreas
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#7 lore raw
Quoted 4 lines · Hongxu Jia
Quoted 1 line · Martin Jansa

Why not use VIRTUAL-RUNTIME variable like in other places?

Hi Martin,

With more investigation, I am afraid it looks not good to rename NETWORK_MANAGER in oe-core:
In meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb
......
NETWORK_MANAGER ?= "connman-gnome"
NETWORK_MANAGER_libc-uclibc = ""
RDEPENDS_${PN}-base = "\
...

    ${NETWORK_MANAGER} \

......

If we name them with VIRTUAL-RUNTIME_networkmanager to replace, we have like this
......
VIRTUAL-RUNTIME_networkmanager ?= "connman-gnome" VIRTUAL-RUNTIME_networkmanager_libc-uclibc = ""
RDEPENDS_${PN}-base = "\
...

    ${VIRTUAL-RUNTIME_networkmanager} \

......

It looks too many overrides, do you have any suggestions?

//Hongxu

Quoted 52 lines

If use it, I will rename NETWORK_MANAGER with VIRTUAL-RUNTIME_networkmanager in packagegroup-core-x11-sato, to see oe-core whether accept it or not.

Quoted 2 lines

And if it's
needed by xfce4-power-manager, then why don't you add it to RDEPENDS there?

It is reasonable, add the variable(NETWORK_MANAGER or VIRTUAL-RUNTIME_networkmanager) to xfce4-power-manager'S RDEPENDS

//Hongxu

Quoted 40 lines
Quoted 37 lines · Andreas Müller
Quoted 16 lines · Hongxu Jia

The NETWORK_MANAGER is connman-gnome in oe-core by default, which conflicts with networkmanager. And networkmanager is required by xfce4-power-manager in meta-xfce. So we explicitly set networkmanager to NETWORK_MANAGER for meta-xfce.

---
  meta-xfce/conf/layer.conf | 3 +++
  1 file changed, 3 insertions(+)
meta-xfce/conf/layer.conf +0 -0
index 55bcef6..e38d85d 100644

meta-xfce/conf/layer.conf LAYERDEPENDS_xfce-layer += "openembedded-layer" · line 22

Quoted 6 lines
meta-xfce/conf/layer.conf +3 -0
@@ -17,3 +17,6 @@ LAYERDEPENDS_xfce-layer += "openembedded-layer"
  LAYERDEPENDS_xfce-layer += "gnome-layer"
  LAYERDEPENDS_xfce-layer += "openembedded-layer"
  LAYERDEPENDS_xfce-layer += "meta-python"
+
+# It is required by xfce4-power-manager
+NETWORK_MANAGER = "networkmanager"

I was wondering why I never needed such kind of patch and checked: In my layers It is only used in packagegroup-core-x11-sato.

So I am fine with this patch but could you mention packagegroup-core-x11-sato in the commit message please.

Andreas

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#8 lore raw
Quoted 29 lines · Hongxu Jia
Quoted 6 lines · Hongxu Jia
Quoted 1 line · Martin Jansa

Why not use VIRTUAL-RUNTIME variable like in other places?

Hi Martin,

With more investigation, I am afraid it looks not good to rename NETWORK_MANAGER in
oe-core:
In meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb
......
NETWORK_MANAGER ?= "connman-gnome" NETWORK_MANAGER_libc-uclibc = ""
RDEPENDS_${PN}-base = "\
...

    ${NETWORK_MANAGER} \

......

If we name them with VIRTUAL-RUNTIME_networkmanager to replace, we have like this
......
VIRTUAL-RUNTIME_networkmanager ?= "connman-gnome" VIRTUAL-RUNTIME_networkmanager_libc-uclibc = "" RDEPENDS_${PN}-base = "\
...

Quoted 4 lines
    ${VIRTUAL-RUNTIME_networkmanager} \

......

It looks too many overrides, do you have any suggestions?

Suggestion: read my previous mail :)

Andreas