package/network-manager: now needs libgudev when systemd is used
authorNathaniel Roach <nroach44@gmail.com>
Mon, 24 Aug 2015 15:44:15 +0000 (23:44 +0800)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Aug 2015 14:37:08 +0000 (16:37 +0200)
NetworkManager uses code (originally from udev) that has since been
split from the main systemd codebase into libgudev.

Tweak the package files for NetworkManager to require libgudev when
building with systemd.

Signed-off-by: Nathaniel Roach <nroach44@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/network-manager/Config.in
package/network-manager/network-manager.mk

index bcf8f9068597a6fd889e0b9563625d9379a3a192..5a0e636c954ec11fd675eca5239ed38258f5c7d6 100644 (file)
@@ -11,6 +11,7 @@ config BR2_PACKAGE_NETWORK_MANAGER
        select BR2_PACKAGE_GNUTLS
        select BR2_PACKAGE_LIBGCRYPT
        select BR2_PACKAGE_LIBNL
+       select BR2_PACKAGE_LIBGUDEV if BR2_INIT_SYSTEMD
        select BR2_PACKAGE_UTIL_LINUX
        select BR2_PACKAGE_UTIL_LINUX_LIBUUID
        select BR2_PACKAGE_WIRELESS_TOOLS
index 25ad2a29cc3575a7acf76e24b574fa61d526daed..03c7d63dd7fb30ef51503f637b6c98ea6432b83b 100644 (file)
@@ -63,6 +63,10 @@ ifeq ($(BR2_PACKAGE_DHCPCD),y)
 NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/sbin/dhcpcd
 endif
 
+ifeq ($(BR2_INIT_SYSTEMD),y)
+NETWORK_MANAGER_DEPENDENCIES += libgudev
+endif
+
 # uClibc by default doesn't have backtrace support, so don't use it
 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
 NETWORK_MANAGER_CONF_OPTS += --disable-crashtrace