Skip to contentSkip to conversation

networkingmanager: QA warning for rdepends on polkit

PATCH In review Armin Kuster 5 participants 13 messages May 5, 2015 – May 12, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 networkingmanager: QA warning for rdepends on polkit

WARNING: QA Issue: networkmanager rdepends on polkit, but it isn't a build dependency? [build-deps]

---
 .../recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb +2 -1
index 8d37c98..36a4a7e 100644
@@ -37,11 +37,12 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','conso
 PACKAGECONFIG[systemd] = " \
     --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
     --without-systemdsystemunitdir, \
-    polkit \
+    polkit, polkit \
 "
 # consolekit is not picked by shlibs, so add it to RDEPENDS too
 PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
 PACKAGECONFIG[concheck] = "--enable-concheck,--disable-concheck,libsoup-2.4"
+PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, , polkit"
 
 # Work around dbus permission problems since we lack a proper at_console
 do_install_prepend() {
Signature · 1 line
2.3.5
#1 lore raw

Hi Armin,

I don't know if you've noticed, but it looks like this caused an issue with the current world build:

commit 00ea492451d221fcc4af5613732035184b8ee43a

Author: Armin Kuster <[email protected]>
Date:   Sat Apr 4 14:52:03 2015 -0700

networkmanger: meta-oe world build failes

ERROR: Nothing RPROVIDES 'dnsmasq' (but /home/akuster/oss/clean/meta-openembedded/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'dnsmasq' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['dnsmasq']
ERROR: Required build target 'networkmanager' has no buildable providers.
Missing or unbuildable dependency chain was: ['networkmanager', 'dnsmasq']

move networkmanager from meta-oe to meta-networking.

I'll see if I can reproduce it, it's not obvious to me on the surface why this would be an issue with your patch.

-J.

Quoted 25 lines · [[meta-networking][PATCH] networkingmanager: QA warning for rdepends on…

WARNING: QA Issue: networkmanager rdepends on polkit, but it isn't a build dependency? [build-deps]

---
 .../recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb +2 -1
index 8d37c98..36a4a7e 100644
@@ -37,11 +37,12 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','conso
 PACKAGECONFIG[systemd] = " \
     --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
     --without-systemdsystemunitdir, \
-    polkit \
+    polkit, polkit \
 "
 # consolekit is not picked by shlibs, so add it to RDEPENDS too
 PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
 PACKAGECONFIG[concheck] = "--enable-concheck,--disable-concheck,libsoup-2.4"
+PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, , polkit"
 
 # Work around dbus permission problems since we lack a proper at_console
 do_install_prepend() {
Signature · 2 lines
-Joe MacDonald.
:wq
author
#2 lore raw

Joe,

Quoted 4 lines · Joe MacDonald

Hi Armin,

I don't know if you've noticed, but it looks like this caused an issue with the current world build:

You mean the Galaxy build Martin does? no I have not.

Quoted 13 lines

commit 00ea492451d221fcc4af5613732035184b8ee43a

Author: Armin Kuster <[email protected]>
Date:   Sat Apr 4 14:52:03 2015 -0700

networkmanger: meta-oe world build failes

ERROR: Nothing RPROVIDES 'dnsmasq' (but /home/akuster/oss/clean/meta-openembedded/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'dnsmasq' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['dnsmasq']
ERROR: Required build target 'networkmanager' has no buildable providers.
Missing or unbuildable dependency chain was: ['networkmanager', 'dnsmasq']

Quoted 6 lines

move networkmanager from meta-oe to meta-networking.

I'll see if I can reproduce it, it's not obvious to me on the surface why this would be an issue with your patch.

maybe it prefers to live in meta-oe ; )
thanks.

Quoted 30 lines

-J.

Quoted 25 lines · [[meta-networking][PATCH] networkingmanager: QA warning for rdepends on…

WARNING: QA Issue: networkmanager rdepends on polkit, but it isn't a build dependency? [build-deps]

---
  .../recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb     | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb +2 -1
index 8d37c98..36a4a7e 100644
@@ -37,11 +37,12 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','conso
  PACKAGECONFIG[systemd] = " \
      --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
      --without-systemdsystemunitdir, \
-    polkit \
+    polkit, polkit \
  "
  # consolekit is not picked by shlibs, so add it to RDEPENDS too
  PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
  PACKAGECONFIG[concheck] = "--enable-concheck,--disable-concheck,libsoup-2.4"
+PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, , polkit"
 
  # Work around dbus permission problems since we lack a proper at_console
  do_install_prepend() {
#3 lore raw
Quoted 10 lines · [Re: [meta-networking][PATCH] networkingmanager: QA warning for rdepends on…

Joe,

Quoted 4 lines · Joe MacDonald

Hi Armin,

I don't know if you've noticed, but it looks like this caused an issue with the current world build:

You mean the Galaxy build Martin does? no I have not.

I noticed it because the commit log was updated when I was cherry picking out of master-next, that's how I found it. :)

Quoted 12 lines
Quoted 12 lines

commit 00ea492451d221fcc4af5613732035184b8ee43a

Author: Armin Kuster <[email protected]>
Date:   Sat Apr 4 14:52:03 2015 -0700

networkmanger: meta-oe world build failes

ERROR: Nothing RPROVIDES 'dnsmasq' (but /home/akuster/oss/clean/meta-openembedded/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'dnsmasq' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['dnsmasq']
ERROR: Required build target 'networkmanager' has no buildable providers.
Missing or unbuildable dependency chain was: ['networkmanager', 'dnsmasq']

Quoted 8 lines
Quoted 6 lines

move networkmanager from meta-oe to meta-networking.

I'll see if I can reproduce it, it's not obvious to me on the surface why this would be an issue with your patch.

maybe it prefers to live in meta-oe ; )

Maybe it's freaked out being moved closer to dnsmasq or something. We'll see.

-J.

Quoted 31 lines

thanks.

Quoted 30 lines

-J.

Quoted 25 lines · [[meta-networking][PATCH] networkingmanager: QA warning for rdepends on…

WARNING: QA Issue: networkmanager rdepends on polkit, but it isn't a build dependency? [build-deps]

---
 .../recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb +2 -1
index 8d37c98..36a4a7e 100644
@@ -37,11 +37,12 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','conso
 PACKAGECONFIG[systemd] = " \
     --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
     --without-systemdsystemunitdir, \
-    polkit \
+    polkit, polkit \
 "
 # consolekit is not picked by shlibs, so add it to RDEPENDS too
 PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
 PACKAGECONFIG[concheck] = "--enable-concheck,--disable-concheck,libsoup-2.4"
+PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, , polkit"
 
 # Work around dbus permission problems since we lack a proper at_console
 do_install_prepend() {
Signature · 2 lines
-Joe MacDonald.
:wq
#4 lore raw
In reply to Armin Kuster
Quoted 12 lines · Armin Kuster

WARNING: QA Issue: networkmanager rdepends on polkit, but it isn't a build dependency? [build-deps]

---
 .../recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb +0 -0
index 8d37c98..36a4a7e 100644

meta-networking/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','conso · line 45

Quoted 10 lines
meta-networking/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb +2 -1
@@ -37,11 +37,12 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','conso
 PACKAGECONFIG[systemd] = " \
     --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
     --without-systemdsystemunitdir, \
-    polkit \
+    polkit, polkit \
 "
 # consolekit is not picked by shlibs, so add it to RDEPENDS too
 PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
 PACKAGECONFIG[concheck] = "--enable-concheck,--disable-concheck,libsoup-2.4"
+PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, , polkit"

Shouldn't it have polkit as build time dependency (3rd argument, not 4th)

Also the subject is wrong, it's networkmanager, not networkingmanager.

Quoted 11 lines
meta-networking/recipes-connectivity/networkmanager/networkmanager_0.9.8.10.bb +0 -0
 # Work around dbus permission problems since we lack a proper at_console
 do_install_prepend() {
Signature · 7 lines
2.3.5

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#5 lore raw
Quoted 3 lines · Martin Jansa
Quoted 1 line

+PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, , polkit"

Shouldn't it have polkit as build time dependency (3rd argument, not 4th)

if something is added to RDEPENDS it automatically gets added to DEPENDS too

#6 lore raw
Quoted 6 lines · Khem Raj
Quoted 3 lines · Martin Jansa
Quoted 1 line

+PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, , polkit"

Shouldn't it have polkit as build time dependency (3rd argument, not 4th)

if something is added to RDEPENDS it automatically gets added to DEPENDS too

No that's not true.

RDEPENDS adds dependency only between do_package tasks for build time dependency you need do_configure depending on do_populate_sysroot

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#7 lore raw
Quoted 3 lines · Martin Jansa

RDEPENDS adds dependency only between do_package tasks for build time dependency you need do_configure depending on do_populate_sysroot

its do_build which will depend on do_package_write task in case of RDEPENDS and do_package_write task will then recurse further to build it.

#8 lore raw
Quoted 7 lines · Khem Raj
Quoted 3 lines · Martin Jansa

RDEPENDS adds dependency only between do_package tasks for build time dependency you need do_configure depending on do_populate_sysroot

its do_build which will depend on do_package_write task in case of RDEPENDS and do_package_write task will then recurse further to build it.

backtracking on warning

WARNING: QA Issue: networkmanager rdepends on polkit, but it isn't a build dependency? [build-deps]

its confusing to me. It says 'rdepends' but then expects it in build-dependency and not build-rdep or somesuch

but lets say it depends on buildtime then I agree adding it to third place is needed and may be adding to 4th place too
if shlib is not detecting it.

#9 lore raw
Quoted 9 lines · Khem Raj
Quoted 7 lines · Khem Raj
Quoted 3 lines · Martin Jansa

RDEPENDS adds dependency only between do_package tasks for build time dependency you need do_configure depending on do_populate_sysroot

its do_build which will depend on do_package_write task in case of RDEPENDS and do_package_write task will then recurse further to build it.

Quoted 7 lines

backtracking on warning

WARNING: QA Issue: networkmanager rdepends on polkit, but it isn't a build dependency? [build-deps]

its confusing to me. It says 'rdepends' but then expects it in build-dependency and not build-rdep or somesuch

It says "rdepends" because that dependency was added by shlib providers code to RDEPENDS. But that means that some binary is linked against library provided by polkit -> it's build time dependency autodetected in do_configure -> needs polkit in DEPENDS.

Quoted 3 lines

but lets say it depends on buildtime then I agree adding it to third place is needed and may be adding to 4th place too
if shlib is not detecting it.

It needs it only in 3rd, because shlib code works correctly, otherwise you wouldn't see this QA warning.

In other words the QA check warns about runtime dependencies being added by shlibs code without having their providers in build time dependencies.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#10 lore raw
In reply to Khem Raj
Quoted 6 lines · Khem Raj
Quoted 5 lines · Khem Raj
Quoted 3 lines · Martin Jansa

RDEPENDS adds dependency only between do_package tasks for build time dependency you need do_configure depending on do_populate_sysroot

Quoted 7 lines
Quoted 2 lines

its do_build which will depend on do_package_write task in case of RDEPENDS and do_package_write task will then recurse further to build it.

backtracking on warning

WARNING: QA Issue: networkmanager rdepends on polkit, but it isn't a build dependency? [build-deps]

for me the warning went away with the current change but I guess I didn't poke it enough.

Quoted 10 lines

its confusing to me. It says 'rdepends' but then expects it in build-dependency and not build-rdep or somesuch

but lets say it depends on buildtime then I agree adding it to third place is needed and may be adding to 4th place too
if shlib is not detecting it.

I will change it to both places.

thanks for the feedback.

- armin

#11 lore raw
In reply to Khem Raj
Quoted 7 lines · Khem Raj
Quoted 3 lines · Martin Jansa

RDEPENDS adds dependency only between do_package tasks for build time dependency you need do_configure depending on do_populate_sysroot

its do_build which will depend on do_package_write task in case of RDEPENDS and do_package_write task will then recurse further to build it.

<section id='build-dependencies'>
<title>Build Dependencies</title>

<para>
BitBake uses the
<link linkend='var-DEPENDS'><filename>DEPENDS</filename></link> variable to manage build time dependencies.
The "deptask" varflag for tasks signifies the task of each item listed in <filename>DEPENDS</filename> that must complete before that task can be executed.
Here is an example:
<literallayout class='monospaced'>
do_configure[deptask] = "do_populate_sysroot"
</literallayout>
In this example, the <filename>do_populate_sysroot</filename> task of each item in <filename>DEPENDS</filename> must complete before <filename>do_configure</filename> can execute.
</para>
</section>

<section id='runtime-dependencies'>
<title>Runtime Dependencies</title>

<para>
BitBake uses the
<link linkend='var-PACKAGES'><filename>PACKAGES</filename></link>, <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>, and <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link> variables to manage runtime dependencies.
</para>

<para>
The <filename>PACKAGES</filename> variable lists runtime packages.
Each of those packages can have <filename>RDEPENDS</filename> and <filename>RRECOMMENDS</filename> runtime dependencies. The "rdeptask" flag for tasks is used to signify the task of each item runtime dependency which must have completed before that task can be executed.
<literallayout class='monospaced'>
do_package_qa[rdeptask] = "do_packagedata"
</literallayout>
In the previous example, the <filename>do_packagedata</filename> task of each item in <filename>RDEPENDS</filename> must have completed before <filename>do_package_qa</filename> can execute.
</para>
</section>

so again, RDEPENDS isn't good enough for build time dependencies

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#12 lore raw
Quoted 2 lines · On Monday 11 May 2015 21:52:00 Martin Jansa wrote:
Quoted 1 line · Khem Raj

On Mon, May 11, 2015 at 12:00 PM, Martin Jansa <[email protected]>

Quoted 57 lines · wrote:
Quoted 6 lines
Quoted 2 lines

RDEPENDS adds dependency only between do_package tasks for build time dependency you need do_configure depending on do_populate_sysroot

its do_build which will depend on do_package_write task in case of RDEPENDS
and do_package_write task will then recurse further to build it.

<section id='build-dependencies'>
<title>Build Dependencies</title>

<para>
BitBake uses the
<link
linkend='var-DEPENDS'><filename>DEPENDS</filename></link> variable to manage build time dependencies.
The "deptask" varflag for tasks signifies the task of each item listed in <filename>DEPENDS</filename> that must complete before that task can be executed. Here is an example:
<literallayout class='monospaced'>
do_configure[deptask] = "do_populate_sysroot"
</literallayout>
In this example, the
<filename>do_populate_sysroot</filename> task of each item in <filename>DEPENDS</filename> must complete before <filename>do_configure</filename> can execute.

            </para>
        </section>


        <section id='runtime-dependencies'>
            <title>Runtime Dependencies</title>

            <para>
                BitBake uses the
                <link

linkend='var-PACKAGES'><filename>PACKAGES</filename></link>, <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link>, and <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link> variables to manage runtime dependencies.
</para>

<para>
The <filename>PACKAGES</filename> variable lists runtime packages.
Each of those packages can have
<filename>RDEPENDS</filename> and <filename>RRECOMMENDS</filename> runtime dependencies. The "rdeptask" flag for tasks is used to signify the task of each item runtime dependency which must have completed before that task can be executed.
<literallayout class='monospaced'>
do_package_qa[rdeptask] = "do_packagedata"
</literallayout>
In the previous example, the
<filename>do_packagedata</filename> task of each item in <filename>RDEPENDS</filename> must have completed before <filename>do_package_qa</filename> can execute. </para>

Quoted 4 lines
        </section>

so again, RDEPENDS isn't good enough for build time dependencies

This is correct. Even an explicit RDEPENDS within the recipe does not add any dependency from do_configure on do_populate_sysroot, so if there is a build time dependency you definitely need DEPENDS as well.

I do agree though that the warning message needs improvement in order to be as clear as possible.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre