diff mbox

xserver_xorg-server: fix dbus/udev configure problem

Message ID 1348399924-22924-1-git-send-email-spdawson@gmail.com
State Changes Requested
Headers show

Commit Message

Simon Dawson Sept. 23, 2012, 11:32 a.m. UTC
From: Simon Dawson <spdawson@gmail.com>

If both the dbus and udev packages are selected, then the configure step
for the xserver_xorg-server package fails as follows.

  configure: error: Hotplugging through both libudev and dbus/hal not allowed

The configure script no longer allows both the --enable-config-dbus
and --enable-config-udev options to be specified.

This patch changes the xserver_xorg-server makefile to use dbus in preference
to udev, when both are available.

Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
 .../xserver_xorg-server/xserver_xorg-server.mk     |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

Comments

Peter Korsgaard Sept. 23, 2012, 11:55 a.m. UTC | #1
>>>>> "spdawson" == spdawson  <spdawson@gmail.com> writes:

 spdawson> From: Simon Dawson <spdawson@gmail.com>

 spdawson> If both the dbus and udev packages are selected, then the
 spdawson> configure step for the xserver_xorg-server package fails as
 spdawson> follows.

 spdawson>   configure: error: Hotplugging through both libudev and dbus/hal not allowed

 spdawson> The configure script no longer allows both the
 spdawson> --enable-config-dbus and --enable-config-udev options to be
 spdawson> specified.

 spdawson> This patch changes the xserver_xorg-server makefile to use
 spdawson> dbus in preference to udev, when both are available.

Thanks, but isn't udev the "preferred" backend nowadays? D-Bus defaults
to no.
Simon Dawson Sept. 23, 2012, 12:13 p.m. UTC | #2
Okay Peter; I'll reverse the logic then.

Simon.

On 23 September 2012 12:55, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "spdawson" == spdawson  <spdawson@gmail.com> writes:
>
>  spdawson> From: Simon Dawson <spdawson@gmail.com>
>
>  spdawson> If both the dbus and udev packages are selected, then the
>  spdawson> configure step for the xserver_xorg-server package fails as
>  spdawson> follows.
>
>  spdawson>   configure: error: Hotplugging through both libudev and dbus/hal not allowed
>
>  spdawson> The configure script no longer allows both the
>  spdawson> --enable-config-dbus and --enable-config-udev options to be
>  spdawson> specified.
>
>  spdawson> This patch changes the xserver_xorg-server makefile to use
>  spdawson> dbus in preference to udev, when both are available.
>
> Thanks, but isn't udev the "preferred" backend nowadays? D-Bus defaults
> to no.
>
> --
> Bye, Peter Korsgaard
diff mbox

Patch

diff --git a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
index a19122d..90ac8a0 100644
--- a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
+++ b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
@@ -107,13 +107,11 @@  endif
 ifeq ($(BR2_PACKAGE_DBUS),y)
 XSERVER_XORG_SERVER_DEPENDENCIES += dbus
 XSERVER_XORG_SERVER_CONF_OPT += --enable-config-dbus
-endif
-
+else
 ifeq ($(BR2_PACKAGE_UDEV),y)
-XSERVER_XORG_SERVER_CONF_OPT += --enable-config-udev
 XSERVER_XORG_SERVER_DEPENDENCIES += udev
-else
-XSERVER_XORG_SERVER_CONF_OPT += --disable-config-udev
+XSERVER_XORG_SERVER_CONF_OPT += --enable-config-udev
+endif
 endif
 
 ifeq ($(BR2_PACKAGE_FREETYPE),y)