dbus: include dbus-launch in the main dbus package
PATCH v3 1/1 dbus: include dbus-launch in the main dbus package
Followed suggestions from Bugz 2261:
1) remove the --with-x/--without-x configure arguments. If you want to force no-discovery for native builds the correct argument is --disable-x11-autolaunch. This ensures that DBus looks at the build environment to determine whether to enable X11 bus discovery or not.
2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature. This makes the build dependencies reflect the feature list.
3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs.
4) Potentially make dbus provide dbus-x11, for compatibility.
Fixes [Yocto #2261]
--- meta/recipes-core/dbus/dbus.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
meta/recipes-core/dbus/dbus.inc +6 -5
@@ -31,10 +31,10 @@ CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session DEBIANNAME_${PN} = "dbus-1" -PACKAGES =+ "${PN}-lib ${PN}-systemd ${@base_contains('DISTRO_FEATURES', 'x11', '${PN}-x11', '', d)}" +PACKAGES =+ "${PN}-lib ${PN}-systemd" -FILES_${PN}-x11 = "${bindir}/dbus-launch" -RDEPENDS_${PN}-x11 = "${PN}" +# for compatibility +RREPLACES_${PN} += "dbus-x11" FILES_${PN}-systemd = "${systemd_unitdir}/system/"
@@ -43,6 +43,7 @@ FILES_${PN} = "${bindir}/dbus-daemon* \ ${bindir}/dbus-cleanup-sockets \ ${bindir}/dbus-send \ ${bindir}/dbus-monitor \ + ${bindir}/dbus-launch \ ${libexecdir}/dbus* \ ${sysconfdir} \ ${localstatedir} \
@@ -58,8 +59,8 @@ pkg_postinst_dbus() { fi } -EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" -EXTRA_OECONF_X_virtclass-native = "--without-x" +EXTRA_OECONF_X = "" +EXTRA_OECONF_X_virtclass-native = "--disable-x11-autolaunch" EXTRA_OECONF = "--disable-tests \ --disable-checks \
Signature · 1 line
1.7.9.5
it does not build, it complains about nothing providing dbus-x11
Radu
Quoted 59 lines · Radu Moisan
Followed suggestions from Bugz 2261:
1) remove the --with-x/--without-x configure arguments. If you want to force no-discovery for native builds the correct argument is --disable-x11-autolaunch. This ensures that DBus looks at the build environment to determine whether to enable X11 bus discovery or not.
2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature. This makes the build dependencies reflect the feature list.
3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs.
4) Potentially make dbus provide dbus-x11, for compatibility.
Fixes [Yocto #2261]
Signed-off-by Radu Moisan <[email protected]>--- meta/recipes-core/dbus/dbus.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)meta/recipes-core/dbus/dbus.inc +6
-5@@ -31,10 +31,10 @@ CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session DEBIANNAME_${PN} = "dbus-1" -PACKAGES =+ "${PN}-lib ${PN}-systemd ${@base_contains('DISTRO_FEATURES', 'x11', '${PN}-x11', '', d)}" +PACKAGES =+ "${PN}-lib ${PN}-systemd" -FILES_${PN}-x11 = "${bindir}/dbus-launch" -RDEPENDS_${PN}-x11 = "${PN}" +# for compatibility +RREPLACES_${PN} += "dbus-x11" FILES_${PN}-systemd = "${systemd_unitdir}/system/"@@ -43,6 +43,7 @@ FILES_${PN} = "${bindir}/dbus-daemon* \ ${bindir}/dbus-cleanup-sockets \ ${bindir}/dbus-send \ ${bindir}/dbus-monitor \ + ${bindir}/dbus-launch \ ${libexecdir}/dbus* \ ${sysconfdir} \ ${localstatedir} \@@ -58,8 +59,8 @@ pkg_postinst_dbus() { fi } -EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" -EXTRA_OECONF_X_virtclass-native = "--without-x" +EXTRA_OECONF_X = "" +EXTRA_OECONF_X_virtclass-native = "--disable-x11-autolaunch" EXTRA_OECONF = "--disable-tests \ --disable-checks \
Op 26 jul. 2012, om 08:29 heeft Radu Moisan <[email protected]> het volgende geschreven:
Quoted 27 lines
it does not build, it complains about nothing providing dbus-x11
Radu
Quoted 22 lines · Radu Moisan
Followed suggestions from Bugz 2261:
1) remove the --with-x/--without-x configure arguments. If you want to force no-discovery for native builds the correct argument is --disable-x11-autolaunch. This ensures that DBus looks at the build environment to determine whether to enable X11 bus discovery or not.
2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature. This makes the build dependencies reflect the feature list.
3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs.
4) Potentially make dbus provide dbus-x11, for compatibility.
Fixes [Yocto #2261]
Signed-off-by Radu Moisan <[email protected]>--- meta/recipes-core/dbus/dbus.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
Quoted 11 lines
meta/recipes-core/dbus/dbus.inc CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session · line 35
Quoted 11 lines
meta/recipes-core/dbus/dbus.inc +2
-1@@ -31,10 +31,10 @@ CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session DEBIANNAME_${PN} = "dbus-1" -PACKAGES =+ "${PN}-lib ${PN}-systemd ${@base_contains('DISTRO_FEATURES', 'x11', '${PN}-x11', '', d)}" +PACKAGES =+ "${PN}-lib ${PN}-systemd" -FILES_${PN}-x11 = "${bindir}/dbus-launch" -RDEPENDS_${PN}-x11 = "${PN}" +# for compatibility
PROVIDES += "dbus-x11"
Quoted 1 line
meta/recipes-core/dbus/dbus.inc CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session · line 37
Quoted 1 line
meta/recipes-core/dbus/dbus.inc +1
-0+RREPLACES_${PN} += "dbus-x11"
RPROVIDES_${PN} += "dbus-x11"
Quoted 44 lines · On Thursday 26 July 2012 10:08:49 Koen Kooi wrote:
Op 26 jul. 2012, om 08:29 heeft Radu Moisan <[email protected]> het
Quoted 43 lines
volgende geschreven:
it does not build, it complains about nothing providing dbus-x11Radu
Quoted 37 lines · Radu Moisan
Followed suggestions from Bugz 2261:
1) remove the --with-x/--without-x configure arguments. If you want to force no-discovery for native builds the correct argument is --disable-x11-autolaunch. This ensures that DBus looks at the build environment to determine whether to enable X11 bus discovery or not.
2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature. This makes the build dependencies reflect the feature list.
3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs.
4) Potentially make dbus provide dbus-x11, for compatibility.
Fixes [Yocto #2261]
Signed-off-by Radu Moisan <[email protected]>---
meta/recipes-core/dbus/dbus.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)(quoted diff) +0
-0b/meta/recipes-core/dbus/dbus.inc index a75583d..9559f6f 100644
meta/recipes-core/dbus/dbus.inc +0
-0@@ -31,10 +31,10 @@ CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf${sysconfdir}/dbus-1/session>>
DEBIANNAME_${PN} = "dbus-1"-PACKAGES =+ "${PN}-lib ${PN}-systemd ${@base_contains('DISTRO_FEATURES', 'x11', '${PN}-x11', '', d)}">>
+PACKAGES =+ "${PN}-lib ${PN}-systemd"-FILES_${PN}-x11 = "${bindir}/dbus-launch"
Quoted 8 lines
Quoted 2 lines
meta/recipes-core/dbus/dbus.inc CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session · line 36
Quoted 2 lines
meta/recipes-core/dbus/dbus.inc +1
-1-RDEPENDS_${PN}-x11 = "${PN}" +# for compatibilityPROVIDES += "dbus-x11"
Quoted 1 line
Quoted 1 line
+RREPLACES_${PN} += "dbus-x11"
RPROVIDES_${PN} += "dbus-x11"
For the sake of clarity, you mean both of these, not RPROVIDES instead of adding RREPLACES - right?
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Op 26 jul. 2012, om 10:42 heeft Paul Eggleton <[email protected]> het volgende geschreven:
Quoted 50 lines · On Thursday 26 July 2012 10:08:49 Koen Kooi wrote:
Quoted 49 lines
Op 26 jul. 2012, om 08:29 heeft Radu Moisan <[email protected]> het
Quoted 37 lines
volgende geschreven:
it does not build, it complains about nothing providing dbus-x11Radu
Quoted 31 lines · Radu Moisan
Followed suggestions from Bugz 2261:
1) remove the --with-x/--without-x configure arguments. If you want to force no-discovery for native builds the correct argument is --disable-x11-autolaunch. This ensures that DBus looks at the build environment to determine whether to enable X11 bus discovery or not.
2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature. This makes the build dependencies reflect the feature list.
3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs.
4) Potentially make dbus provide dbus-x11, for compatibility.
Fixes [Yocto #2261]
Signed-off-by Radu Moisan <[email protected]>---
meta/recipes-core/dbus/dbus.inc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)(quoted diff) +0
-0b/meta/recipes-core/dbus/dbus.inc index a75583d..9559f6f 100644
meta/recipes-core/dbus/dbus.inc +0
-0@@ -31,10 +31,10 @@ CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf${sysconfdir}/dbus-1/session>>
DEBIANNAME_${PN} = "dbus-1"Quoted 8 lines
meta/recipes-core/dbus/dbus.inc CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session
Quoted 8 lines
-PACKAGES =+ "${PN}-lib ${PN}-systemd ${@base_contains('DISTRO_FEATURES', 'x11', '${PN}-x11', '', d)}">>
meta/recipes-core/dbus/dbus.inc +2
-2+PACKAGES =+ "${PN}-lib ${PN}-systemd" -FILES_${PN}-x11 = "${bindir}/dbus-launch" -RDEPENDS_${PN}-x11 = "${PN}" +# for compatibilityPROVIDES += "dbus-x11"
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
+RREPLACES_${PN} += "dbus-x11"
RPROVIDES_${PN} += "dbus-x11"
For the sake of clarity, you mean both of these, not RPROVIDES instead of adding RREPLACES - right?
Correct, you need both (or rather all 3 if you include PROVIDES).
What's the point of PROVIDES += dbus-x11, it build fine without it (I'm not questioning the correctness of this, just want to understand the need for it).
Radu
Quoted 60 lines · Koen Kooi
Op 26 jul. 2012, om 10:42 heeft Paul Eggleton <[email protected]> het volgende geschreven:
Quoted 45 lines · On Thursday 26 July 2012 10:08:49 Koen Kooi wrote:
Quoted 44 lines
Op 26 jul. 2012, om 08:29 heeft Radu Moisan <[email protected]> het
Quoted 43 lines
volgende geschreven:
it does not build, it complains about nothing providing dbus-x11Radu
Quoted 37 lines · Radu Moisan
Followed suggestions from Bugz 2261:
1) remove the --with-x/--without-x configure arguments. If you want to force no-discovery for native builds the correct argument is --disable-x11-autolaunch. This ensures that DBus looks at the build environment to determine whether to enable X11 bus discovery or not.
2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature. This makes the build dependencies reflect the feature list.
3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs.
4) Potentially make dbus provide dbus-x11, for compatibility.
Fixes [Yocto #2261]
Signed-off-by Radu Moisan <[email protected]>---
meta/recipes-core/dbus/dbus.inc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)(quoted diff) +0
-0b/meta/recipes-core/dbus/dbus.inc index a75583d..9559f6f 100644
meta/recipes-core/dbus/dbus.inc +0
-0@@ -31,10 +31,10 @@ CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf${sysconfdir}/dbus-1/session>>
DEBIANNAME_${PN} = "dbus-1"-PACKAGES =+ "${PN}-lib ${PN}-systemd ${@base_contains('DISTRO_FEATURES', 'x11', '${PN}-x11', '', d)}">>
meta/recipes-core/dbus/dbus.inc +1
-1+PACKAGES =+ "${PN}-lib ${PN}-systemd" -FILES_${PN}-x11 = "${bindir}/dbus-launch"Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
meta/recipes-core/dbus/dbus.inc CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session · line 36
Quoted 2 lines
meta/recipes-core/dbus/dbus.inc +1
-1-RDEPENDS_${PN}-x11 = "${PN}" +# for compatibilityPROVIDES += "dbus-x11"
Quoted 1 line
Quoted 1 line
+RREPLACES_${PN} += "dbus-x11"
RPROVIDES_${PN} += "dbus-x11"
For the sake of clarity, you mean both of these, not RPROVIDES instead of adding RREPLACES - right?
Correct, you need both (or rather all 3 if you include PROVIDES).
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Op 26 jul. 2012, om 11:18 heeft Radu Moisan het volgende geschreven:
Quoted 1 line
What's the point of PROVIDES += dbus-x11, it build fine without it (I'm not questioning the correctness of this, just want to understand the need for it).
This morning you said:
"it does not build, it complains about nothing providing dbus-x11"
That's what the PROVIDES is for.
Quoted 70 lines
Radu
Quoted 52 lines · Koen Kooi
Op 26 jul. 2012, om 10:42 heeft Paul Eggleton <[email protected]> het volgende geschreven:
Quoted 50 lines · On Thursday 26 July 2012 10:08:49 Koen Kooi wrote:
Quoted 49 lines
Op 26 jul. 2012, om 08:29 heeft Radu Moisan <[email protected]> het
Quoted 37 lines
volgende geschreven:
it does not build, it complains about nothing providing dbus-x11Radu
Quoted 31 lines · Radu Moisan
Followed suggestions from Bugz 2261:
1) remove the --with-x/--without-x configure arguments. If you want to force no-discovery for native builds the correct argument is --disable-x11-autolaunch. This ensures that DBus looks at the build environment to determine whether to enable X11 bus discovery or not.
2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature. This makes the build dependencies reflect the feature list.
3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs.
4) Potentially make dbus provide dbus-x11, for compatibility.
Fixes [Yocto #2261]
Signed-off-by Radu Moisan <[email protected]>---
meta/recipes-core/dbus/dbus.inc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)(quoted diff) +0
-0b/meta/recipes-core/dbus/dbus.inc index a75583d..9559f6f 100644
meta/recipes-core/dbus/dbus.inc +0
-0@@ -31,10 +31,10 @@ CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf${sysconfdir}/dbus-1/session>>
DEBIANNAME_${PN} = "dbus-1"Quoted 8 lines
meta/recipes-core/dbus/dbus.inc CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session
Quoted 8 lines
-PACKAGES =+ "${PN}-lib ${PN}-systemd ${@base_contains('DISTRO_FEATURES', 'x11', '${PN}-x11', '', d)}">>
meta/recipes-core/dbus/dbus.inc +2
-2+PACKAGES =+ "${PN}-lib ${PN}-systemd" -FILES_${PN}-x11 = "${bindir}/dbus-launch" -RDEPENDS_${PN}-x11 = "${PN}" +# for compatibilityPROVIDES += "dbus-x11"
Quoted 1 line
Quoted 1 line
+RREPLACES_${PN} += "dbus-x11"
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
RPROVIDES_${PN} += "dbus-x11"
For the sake of clarity, you mean both of these, not RPROVIDES instead of adding RREPLACES - right?
Correct, you need both (or rather all 3 if you include PROVIDES).
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 7 lines · Koen Kooi
Quoted 1 line
What's the point of PROVIDES += dbus-x11, it build fine without it (I'm not questioning the correctness of this, just want to understand the need for it).
This morning you said:
"it does not build, it complains about nothing providing dbus-x11"
That's what the PROVIDES is for.
Without seeing the logs, I expect the error was when building the image. Nothing will build-depend on dbus-x11 because it isn't a source package.
Radu, as a follow-up patch please remove all instances of dbus-x11, replacing with dbus if required.
Ross
should I create a single patch that changes dbus-x11 to dbus, or one for each package?
Radu
Quoted 20 lines · Ross
Quoted 6 lines · Koen Kooi
Quoted 1 line
What's the point of PROVIDES += dbus-x11, it build fine without it (I'm not questioning the correctness of this, just want to understand the need for it).
This morning you said:
"it does not build, it complains about nothing providing dbus-x11"
That's what the PROVIDES is for.
Without seeing the logs, I expect the error was when building the image. Nothing will build-depend on dbus-x11 because it isn't a source package.
Radu, as a follow-up patch please remove all instances of dbus-x11, replacing with dbus if required.
Ross
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
the build issue was solved by RPROVIDES, while PROVIDES did not fix the build or influence the error in any way.
Radu
Quoted 9 lines · Koen Kooi
Op 26 jul. 2012, om 11:18 heeft Radu Moisan het volgende geschreven:
Quoted 1 line
What's the point of PROVIDES += dbus-x11, it build fine without it (I'm not questioning the correctness of this, just want to understand the need for it).
This morning you said:
"it does not build, it complains about nothing providing dbus-x11"
That's what the PROVIDES is for.
I see no build-time dependencies on dbus-x11 (only runtime dependencies), so, assuming PROVIDES is used at build-time, I don't see it's point.
Radu
Quoted 19 lines · Radu Moisan
the build issue was solved by RPROVIDES, while PROVIDES did not fix the build or influence the error in any way.
Radu
Quoted 9 lines · Koen Kooi
Op 26 jul. 2012, om 11:18 heeft Radu Moisan het volgende geschreven:
Quoted 1 line
What's the point of PROVIDES += dbus-x11, it build fine without it (I'm not questioning the correctness of this, just want to understand the need for it).
This morning you said:
"it does not build, it complains about nothing providing dbus-x11"
That's what the PROVIDES is for.
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 2 lines · Radu Moisan
I see no build-time dependencies on dbus-x11 (only runtime dependencies), so, assuming PROVIDES is used at build-time, I don't see it's point.
We've just removed dbus-x11 because it's pointless, the provides is only for compatibility.
Ross
Op 26 jul. 2012, om 13:27 heeft Burton, Ross het volgende geschreven:
Quoted 6 lines · Radu Moisan
Quoted 2 lines
I see no build-time dependencies on dbus-x11 (only runtime dependencies), so, assuming PROVIDES is used at build-time, I don't see it's point.
We've just removed dbus-x11 because it's pointless, the provides is only for compatibility.
It would be nice if other layers that have RDEPENDS_foo = "dbus-x11" keep working till their maintainers get around fixing them. Note that you might need to do a -c cleansstate on dbus first to trigger any errors.
Quoted 1 line · Koen Kooi
It would be nice if other layers that have
RDEPENDS_foo= "dbus-x11" keep working till their maintainers get around fixing them. Note that you might need to do a -c cleansstate on dbus first to trigger any errors.
Yes, and isn't that what the RPROVIDES is for?
Ross
Op 26 jul. 2012, om 14:00 heeft Burton, Ross het volgende geschreven:
Quoted 4 lines · Koen Kooi
Quoted 1 line
It would be nice if other layers that have
RDEPENDS_foo= "dbus-x11" keep working till their maintainers get around fixing them. Note that you might need to do a -c cleansstate on dbus first to trigger any errors.Yes, and isn't that what the RPROVIDES is for?
I'm not sure if bitbake can map RPROVIDES to PROVIDES, I vaguely remember that it doesn't, but it will pick it up *after* do_package has run. I broke OE way too many times doing things like that :)
Quoted 10 lines · On Thursday 26 July 2012 14:29:14 Koen Kooi wrote:
Op 26 jul. 2012, om 14:00 heeft Burton, Ross het volgende geschreven:
Quoted 5 lines · Koen Kooi
Quoted 3 lines
It would be nice if other layers that have
RDEPENDS_foo= "dbus-x11" keep working till their maintainers get around fixing them. Note that you might need to do a -c cleansstate on dbus first to trigger any errors.>Yes, and isn't that what the RPROVIDES is for?
I'm not sure if bitbake can map RPROVIDES to PROVIDES, I vaguely remember that it doesn't, but it will pick it up *after*
do_packagehas run. I broke OE way too many times doing things like that :)
Why would it need to if we're talking about RDEPENDS and more specifically RDEPENDS defined before do_package?
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Op 26 jul. 2012, om 14:32 heeft Paul Eggleton het volgende geschreven:
Quoted 6 lines · On Thursday 26 July 2012 14:29:14 Koen Kooi wrote:
Quoted 5 lines
Op 26 jul. 2012, om 14:00 heeft Burton, Ross het volgende geschreven:
Quoted 4 lines · Koen Kooi
Quoted 3 lines
It would be nice if other layers that have
RDEPENDS_foo= "dbus-x11" keep working till their maintainers get around fixing them. Note that you might need to do a -c cleansstate on dbus first to trigger any errors.>
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Yes, and isn't that what the RPROVIDES is for?
I'm not sure if bitbake can map RPROVIDES to PROVIDES, I vaguely remember that it doesn't, but it will pick it up *after*
do_packagehas run. I broke OE way too many times doing things like that :)Why would it need to if we're talking about RDEPENDS and more specifically RDEPENDS defined before
do_package?
Because AIUI RDEPENDS get resolved to build the runqueue, so you can't do RDEPENDS_foo = "I-don't-exist". If that's not the case I'll shut up :)
regards,
Koen
Quoted 16 lines · On Thursday 26 July 2012 14:38:59 Koen Kooi wrote:
Op 26 jul. 2012, om 14:32 heeft Paul Eggleton het volgende geschreven:
Quoted 15 lines · On Thursday 26 July 2012 14:29:14 Koen Kooi wrote:
Quoted 13 lines
Op 26 jul. 2012, om 14:00 heeft Burton, Ross het volgende geschreven:
Quoted 7 lines · Koen Kooi
Quoted 4 lines
It would be nice if other layers that have
RDEPENDS_foo= "dbus-x11" keep
working till their maintainers get around fixing them. Note that you might need to do a -c cleansstate on dbus first to trigger any errors.>Yes, and isn't that what the RPROVIDES is for?
I'm not sure if bitbake can map RPROVIDES to PROVIDES, I vaguely remember that it doesn't, but it will pick it up *after*
do_packagehas run. I broke
OE way too many times doing things like that :)
Quoted 5 lines
Quoted 2 lines
Why would it need to if we're talking about RDEPENDS and more specifically RDEPENDS defined before
do_package?Because AIUI RDEPENDS get resolved to build the runqueue, so you can't do
RDEPENDS_foo= "I-don't-exist". If that's not the case I'll shut up :)
Without being too concerned with implementation details, I think it's as simple as this: if recipe A has foo in RDEPENDS_${PN} and recipe B has foo in RPROVIDES_${PN} then the runtime dependency is considered satisfied and things will work. You don't have to specify foo in PROVIDES unless something else has foo in DEPENDS.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
This was also my understanding. Ok so we want PROVIDES in there just for the case in which someone in some layer created a dependency on dbus-x11 (in some recipe) with DEPENDS and we don't want to break his build - this argument will suffice, as far as I am concerned.
Radu
Quoted 10 lines · Paul Eggleton
Without being too concerned with implementation details, I think it's as simple as this: if recipe A has foo in RDEPENDS_${PN} and recipe B has foo in RPROVIDES_${PN} then the runtime dependency is considered satisfied and things will work. You don't have to specify foo in PROVIDES unless something else has foo in DEPENDS.
Cheers,
Paul
Op 26 jul. 2012, om 14:56 heeft Paul Eggleton het volgende geschreven:
Quoted 20 lines · On Thursday 26 July 2012 14:38:59 Koen Kooi wrote:
Quoted 19 lines
Op 26 jul. 2012, om 14:32 heeft Paul Eggleton het volgende geschreven:
Quoted 17 lines · On Thursday 26 July 2012 14:29:14 Koen Kooi wrote:
Quoted 7 lines
Op 26 jul. 2012, om 14:00 heeft Burton, Ross het volgende geschreven:
Quoted 6 lines · Koen Kooi
Quoted 4 lines
It would be nice if other layers that have
RDEPENDS_foo= "dbus-x11" keep
working till their maintainers get around fixing them. Note that you might need to do a -c cleansstate on dbus first to trigger any errors.>Quoted 6 lines
Quoted 1 line
Yes, and isn't that what the RPROVIDES is for?
I'm not sure if bitbake can map RPROVIDES to PROVIDES, I vaguely remember that it doesn't, but it will pick it up *after*
do_packagehas run. I broke
OE way too many times doing things like that :)Why would it need to if we're talking about RDEPENDS and more specifically RDEPENDS defined before
do_package?
Quoted 8 lines
Quoted 2 lines
Because AIUI RDEPENDS get resolved to build the runqueue, so you can't do
RDEPENDS_foo= "I-don't-exist". If that's not the case I'll shut up :)Without being too concerned with implementation details, I think it's as simple as this: if recipe A has foo in RDEPENDS_${PN} and recipe B has foo in RPROVIDES_${PN} then the runtime dependency is considered satisfied and things will work. You don't have to specify foo in PROVIDES unless something else has foo in DEPENDS.
If that's so, great, but please check :)
Quoted 7 lines · On Thursday 26 July 2012 15:07:42 Koen Kooi wrote:
Quoted 5 lines
Without being too concerned with implementation details, I think it's as simple as this: if recipe A has foo in RDEPENDS_${PN} and recipe B has foo in RPROVIDES_${PN} then the runtime dependency is considered satisfied and things will work. You don't have to specify foo in PROVIDES unless something else has foo in DEPENDS.
If that's so, great, but please check :)
I did, prior to sending that... :)
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Op 26 jul. 2012, om 15:12 heeft Paul Eggleton het volgende geschreven:
Quoted 10 lines · On Thursday 26 July 2012 15:07:42 Koen Kooi wrote:
Quoted 7 lines
Quoted 5 lines
Without being too concerned with implementation details, I think it's as simple as this: if recipe A has foo in RDEPENDS_${PN} and recipe B has foo in RPROVIDES_${PN} then the runtime dependency is considered satisfied and things will work. You don't have to specify foo in PROVIDES unless something else has foo in DEPENDS.
If that's so, great, but please check :)
I did, prior to sending that... :)
great, I'll shut up now :)
I understand the reasoning behind RPROVIDES. I've grep'ed the sources and none of the packages that depend on dbus-x11 have build time dependencies on it, so the question arises "what's the point of PROVIDES?". I understand the compatibility argument, but it seems to me more like an argument when dependencies are not clear, but in this case they are clear. The following packages depend on dbus-x11, at run-time:
radu@dell-desktop>grep . -re dbus-x11
./recipes-bsp/qemu-config/*qemu-config.bb*:RDEPENDS_${PN} = "distcc ${@base_contains('DISTRO_FEATURES', 'x11', 'dbus-x11', '', d)} task-core-nfs-server oprofileui-server rsync bash" ./recipes-gnome/gnome/*gconf_3.2.3.bb*:RDEPENDS_${PN} += "${@base_contains('DISTRO_FEATURES', 'x11', 'dbus-x11', '', d)}" ./recipes-graphics/x11-common/*x11-common_0.1.bb*:RDEPENDS_${PN} = "dbus-x11 xmodmap xdpyinfo xtscal xinit formfactor"
Rephrasing my question, what would happen (potentially bad) if I don't have PROVIDES="dbus-x11" line in my recipe?
Also, I've done a clean build without PROVIDES="dbus-x11" line in dbus.inc and the build finished successfully, as if it were there (tried that as well).
Radu
Quoted 3 lines · Ross
Quoted 1 line · Koen Kooi
It would be nice if other layers that have
RDEPENDS_foo= "dbus-x11" keep working till their maintainers get around fixing them. Note that you might need to do a -c cleansstate on dbus first to trigger any errors.Yes, and isn't that what the RPROVIDES is for?
Op 26 jul. 2012, om 14:36 heeft Radu Moisan het volgende geschreven:
Quoted 1 line
I understand the reasoning behind RPROVIDES. I've grep'ed the sources and none of the packages that depend on dbus-x11 have build time dependencies on it,
You grepped all the layers out there for 'dbus-x11' or only oe-core?
only in meta & meta-intel.
Radu
Quoted 8 lines · Koen Kooi
Op 26 jul. 2012, om 14:36 heeft Radu Moisan het volgende geschreven:
Quoted 1 line
I understand the reasoning behind RPROVIDES. I've grep'ed the sources and none of the packages that depend on dbus-x11 have build time dependencies on it,
You grepped all the layers out there for 'dbus-x11' or only oe-core?
_______________________________________________
Openembedded-core mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Koen Kooi <[email protected]>
Quoted 1 line · writes:
RPROVIDES_${PN} += "dbus-x11"
This is wrong because 'dbus' does not provide dbus-x11 when x11 is disabled by distro. Packages which require dbus-launch from 'dbus-x11' will install fine but will fail at runtime.
Enrico
it does not crash at runtime. You can try
dbus-launch --auto-syntax
it'll start a bus and print out the information like:
DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-N48lpeD2TP,guid=0f3cd66fdbdc2f436a9356790002eaa1'; export DBUS_SESSION_BUS_ADDRESS;
DBUS_SESSION_BUS_PID=23640;
Radu
Quoted 15 lines · Enrico Scholz
Koen Kooi <[email protected]>
Quoted 1 line · writes:
RPROVIDES_${PN} += "dbus-x11"
This is wrong because 'dbus' does not provide dbus-x11 when x11 is disabled by distro. Packages which require dbus-launch from 'dbus-x11' will install fine but will fail at runtime.
Enrico
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Radu Moisan <[email protected]>
Quoted 1 line · writes:
it does not crash at runtime.
I do not speak about crash; I guess 'dbus-launch' has some extra functionality when compiled with x11 support, and packages which depend on dbus-x11 might expect this functionality.
Providing 'dbus-x11' although no x11 functionality is provided sounds wrong to me. Either remove the 'dbus-x11' property completely or provide it only when x11 support is built in.
Enrico
Quoted 7 lines · Enrico Scholz
I do not speak about crash; I guess 'dbus-launch' has some extra functionality when compiled with x11 support, and packages which depend on dbus-x11 might expect this functionality.
Providing 'dbus-x11' although no x11 functionality is provided sounds wrong to me. Either remove the 'dbus-x11' property completely or provide it only when x11 support is built in.
I disagree. Currently dbus-launch is packaged in dbus-x11 which may or may not have a dependency on X11. *That* makes no sense.
Moving dbus-launch into dbus which conditionally has X11 autolaunch support depending on whether X11 is being used or not makes sense to me.
Ross
Radu Moisan <[email protected]>
Quoted 3 lines · writes:
Followed suggestions from Bugz 2261:
1) remove the --with-x/--without-x configure arguments.
why? They are valid ./configure options and common when evaluating the x11 distro-feature. Selecting them explicitly makes the build more predictable and detects configuration errors earlier.
Sense of '--without-x' was disabling of x11 dependency, but not turning off the x11-autolaunch feature.
Enrico
Quoted 5 lines · Enrico Scholz
Radu Moisan <[email protected]>
Quoted 2 lines · writes:
Followed suggestions from Bugz 2261:
Quoted 8 lines
Quoted 1 line
1) remove the --with-x/--without-x configure arguments.
why? They are valid ./configure options and common when evaluating the x11 distro-feature. Selecting them explicitly makes the build more predictable and detects configuration errors earlier.
Sense of '--without-x' was disabling of x11 dependency, but not turning off the x11-autolaunch feature.
That's my fault, and I can't remember my reasoning. Probably best to bring it back so the recipe is explicit.
Radu, bring back this fragment, but correct the options
EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--enable-x11-autolaunch', '--disable-x11-autolaunch', d)}"
Ross
Quoted 16 lines · Ross
Quoted 5 lines · Enrico Scholz
Radu Moisan <[email protected]>
Quoted 2 lines · writes:
Followed suggestions from Bugz 2261:
Quoted 7 lines
Quoted 1 line
1) remove the --with-x/--without-x configure arguments.
why? They are valid ./configure options and common when evaluating the x11 distro-feature. Selecting them explicitly makes the build more predictable and detects configuration errors earlier.
Sense of '--without-x' was disabling of x11 dependency, but not turning off the x11-autolaunch feature.
That's my fault, and I can't remember my reasoning. Probably best to bring it back so the recipe is explicit.
Quoted 7 lines
Radu, bring back this fragment, but correct the options
EXTRA_OECONF_X= "${@base_contains('DISTRO_FEATURES', 'x11', '--enable-x11-autolaunch', '--disable-x11-autolaunch', d)}"Ross
I've looked into the configure script and found that autolaunch feature is depending on x11, in other words using --with-x/--without-x implies --enable-x11-autolaunch/--disable-x11-autolaunch, so I guess the initial EXTRA_OECONF_X line will do pretty much the same thing.
EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}"
Radu
Quoted 20 lines · Radu Moisan
Quoted 18 lines · Ross
Quoted 5 lines · Enrico Scholz
Radu Moisan<[email protected]>
Quoted 2 lines · writes:
Followed suggestions from Bugz 2261:
Quoted 7 lines
Quoted 1 line
1) remove the --with-x/--without-x configure arguments.
why? They are valid ./configure options and common when evaluating the x11 distro-feature. Selecting them explicitly makes the build more predictable and detects configuration errors earlier.
Sense of '--without-x' was disabling of x11 dependency, but not turning off the x11-autolaunch feature.
That's my fault, and I can't remember my reasoning. Probably best to bring it back so the recipe is explicit.
Radu, bring back this fragment, but correct the options
Quoted 9 lines
Quoted 5 lines
EXTRA_OECONF_X= "${@base_contains('DISTRO_FEATURES', 'x11', '--enable-x11-autolaunch', '--disable-x11-autolaunch', d)}"Ross
I've looked into the configure script and found that autolaunch feature is depending on x11, in other words using --with-x/--without-x implies --enable-x11-autolaunch/--disable-x11-autolaunch, so I guess the initial
EXTRA_OECONF_Xline will do pretty much the same thing.
EXTRA_OECONF_X= "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}"
and the same applies for EXTRA_OECONF_X_virtclass-native disabling X will disable autolaunch feature, so I'll keep the initial line as well.
Radu
Quoted 4 lines · Radu Moisan
I've looked into the configure script and found that autolaunch feature is depending on x11, in other words using --with-x/--without-x implies --enable-x11-autolaunch/--disable-x11-autolaunch, so I guess the initial
EXTRA_OECONF_Xline will do pretty much the same thing.
Using --enable-x11-autolaunch (and --disable) make it obvious what the intention is, and is the option exposed by DBus. --with-x is an artifact of using AC_PATH_XTRA, so if dbus decided to use pkg-config to find the X headers --with-x will disappear.
Ross