* [PATCH v5] dbus: include dbus-launch in the main dbus package
@ 2012-07-27 6:22 Radu Moisan
2012-07-27 17:06 ` Phil Blundell
0 siblings, 1 reply; 2+ messages in thread
From: Radu Moisan @ 2012-07-27 6:22 UTC (permalink / raw)
To: openembedded-core
Followed suggestions from Bugz 2261:
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 <radu.moisan@intel.com>
---
meta/recipes-core/dbus/dbus.inc | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index a75583d..b01323b 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -31,10 +31,12 @@ 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"
+RPROVIDES_${PN} = "dbus-x11"
+RREPLACES_${PN} += "dbus-x11"
FILES_${PN}-systemd = "${systemd_unitdir}/system/"
@@ -43,6 +45,7 @@ FILES_${PN} = "${bindir}/dbus-daemon* \
${bindir}/dbus-cleanup-sockets \
${bindir}/dbus-send \
${bindir}/dbus-monitor \
+ ${bindir}/dbus-launch \
${libexecdir}/dbus* \
${sysconfdir} \
${localstatedir} \
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v5] dbus: include dbus-launch in the main dbus package
2012-07-27 6:22 [PATCH v5] dbus: include dbus-launch in the main dbus package Radu Moisan
@ 2012-07-27 17:06 ` Phil Blundell
0 siblings, 0 replies; 2+ messages in thread
From: Phil Blundell @ 2012-07-27 17:06 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, 2012-07-27 at 09:22 +0300, Radu Moisan wrote:
> Followed suggestions from Bugz 2261:
>
> 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.
I'm not quite sure I understand what's "potential" about this last item.
The patch below seems to do that unconditionally.
> +# for compatibility
> +PROVIDES = "dbus-x11"
> +RPROVIDES_${PN} = "dbus-x11"
> +RREPLACES_${PN} += "dbus-x11"
You probably want RCONFLICTS_${PN} there for completeness. Also, as I
think was already noted, that PROVIDES is most likely superfluous.
p.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-27 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-27 6:22 [PATCH v5] dbus: include dbus-launch in the main dbus package Radu Moisan
2012-07-27 17:06 ` Phil Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox