[Buildroot] [PATCH] udev: bump to 172

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jul 12 13:47:43 UTC 2011


Hello,

Thanks Yegor for this patch. It's really great to have a modern version
of udev in Buildroot.

Le Tue, 12 Jul 2011 14:39:12 +0200,
Yegor Yefremov <yegor_sub1 at visionsystems.de> a écrit :

> Signed-off-by: Heiko Zuerker <smiley73 at users.sourceforge.net>
> Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
> ---
>  package/udev/Config.in            |   39 +--------
>  package/udev/libvolume_id.la.tmpl |   35 --------
>  package/udev/udev.mk              |  150 ++++++--------------------------------
>  3 files changed, 32 insertions(+), 192 deletions(-)
>  delete mode 100644 package/udev/libvolume_id.la.tmpl
> 
> Index: b/package/udev/Config.in
> ===================================================================
> --- a/package/udev/Config.in
> +++ b/package/udev/Config.in
> @@ -5,37 +5,12 @@
>  
>  	  ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
>  
> -config BR2_PACKAGE_UDEV_UTILS
> -	bool "udev-utils"
> -	depends on BR2_PACKAGE_UDEV
> +config BR2_PACKAGE_UDEV_ALL_EXTRAS
> +	bool "enable all extras"
> +	depends on BR2_PACKAGE_UDEV && BR2_PACKAGE_ACL && BR2_PACKAGE_LIBUSB && BR2_PACKAGE_LIBUSB_COMPAT && BR2_PACKAGE_USBUTILS && BR2_PACKAGE_HWDATA

I'm wondering whether we should turn this into :

	depends on BR2_PACKAGE_UDEV
	select BR2_PACKAGE_ACL
	select BR2_PACKAGE_LIBUSB
	select BR2_PACKAGE_LIBUSB_COMPAT
	select BR2_PACKAGE_USBUTILS
	select BR2_PACKAGE_HWDATA

Because all those dependencies are not really obvious.

> +comment "some additional udev extras require acl and libusb to be built"
> +        depends on !BR2_PACKAGE_ACL || !BR2_PACKAGE_LIBUSB || !BR2_PACKAGE_LIBUSB_COMPAT || !BR2_PACKAGE_USBUTILS || !BR2_PACKAGE_HWDATA

The message does not match the dependencies: it doesn't say anything
about libusb-compat, usbutils and hwdata. But see above, I think
"select" style dependencies would be better.

I have tried building your package. Just udev itself works fine, but
udev with extras doesn't work, you forgot the libglib2 dependency :

checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0) were not met:
No package 'glib-2.0' found
No package 'gobject-2.0' found

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list