[libvirt] [PATCH] avoid using deprecated udev logging functions

Eric Blake eblake at redhat.com
Mon Dec 15 18:06:03 UTC 2014


On 12/15/2014 08:33 AM, Daniel P. Berrange wrote:
> In systemd >= 218, the udev_set_log_fn method has been marked
> deprecated and turned into a no-op. Nothing in the udev client
> library will print to stderr by default anymore, so we can
> just stop installing a logging hook for new enough udev.
> ---
>  m4/virt-udev.m4                    | 7 +++++++
>  src/node_device/node_device_udev.c | 5 ++++-
>  2 files changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/m4/virt-udev.m4 b/m4/virt-udev.m4
> index 55673bf..0d785c4 100644
> --- a/m4/virt-udev.m4
> +++ b/m4/virt-udev.m4
> @@ -24,6 +24,13 @@ AC_DEFUN([LIBVIRT_CHECK_UDEV],[
>    if test "$with_udev" = "yes" && test "$with_pciaccess" != "yes" ; then
>      AC_MSG_ERROR([You must install the pciaccess module to build with udev])
>    fi
> +
> +  if test "$with_udev" = "yes" ; then
> +     PKG_CHECK_EXISTS(libudev >= 218, [with_udev_logging=no], [with_udev_logging=yes])

Style: I'd write [libudev >= 218] (that is, add [] quoting), since
autoconf recommends quoting all arguments.

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141215/50ead6a5/attachment-0001.sig>


More information about the libvir-list mailing list