Message ID | a9b2e3dfb8a1dcdde4e02fe166e841848586521d.1468274498.git.yann.morin.1998@free.fr |
---|---|
State | Rejected |
Headers | show |
Am Tue, 12 Jul 2016 00:16:33 +0200 schrieb Yann E. MORIN: > package/libudev/Config.in | 7 +++++++ > 1 file changed, 7 insertions(+) Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de> (run-time tested libdrm, mesa3d, libcec & kodi 17 using libudev on a system using BR2_ROOTFS_DEVICE_CREATION_STATIC=y)
diff --git a/package/libudev/Config.in b/package/libudev/Config.in index 2745fcc..036adce 100644 --- a/package/libudev/Config.in +++ b/package/libudev/Config.in @@ -1,3 +1,10 @@ +config BR2_PACKAGE_LIBUDEV + bool + depends on BR2_USE_MMU # eudev / systemd + depends on BR2_USE_WCHAR # eudev / systemd + depends on !BR2_STATIC_LIBS # eudev / systemd + select BR2_PACKAGE_EUDEV if !BR2_PACKAGE_SYSTEMD + config BR2_PACKAGE_HAS_LIBUDEV bool
Usually, it is not possible for a pacakge to select a virtual package it depends on, and expects a provider to suddenly be available. However, for libudev, this is slightly simpler: there will be only two providers ever: eudev and systemd. Both are incompatible one with the other, systemd is only available if chosen as an init system. So, if systemd is not enabled (as an init system), then we can forcefully enable eudev as the provider for libudev. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- package/libudev/Config.in | 7 +++++++ 1 file changed, 7 insertions(+)