From 71b29ddcc466b72629b3f705c4c3414131b38580 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 22 Apr 2011 11:56:41 +0000 Subject: [PATCH] Require libudev >= 143 when compiling with udev support. Old versions of libudev < 143 were experimental and unstable. Require recent and stable versions only (version 143 is old enough anyway). --- WHATS_NEW_DM | 1 + configure.in | 4 +--- libdm/libdm-common.c | 1 - tools/dmsetup.c | 1 - tools/lvmcmdline.c | 1 - 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index eb14d38fc..1a450261b 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.64 - =================================== + Require libudev >= 143 when compiling with udev support. Use word alignment for dm_pool_strdup() and dm_pool_strndup(). Use dm_snprintf() to fix signess warning in dm_set_dev_dir(). Use unsigned loop counter to fix signess warning in _other_node_ops(). diff --git a/configure.in b/configure.in index c531c8a5c..c19b8ce6b 100644 --- a/configure.in +++ b/configure.in @@ -803,9 +803,7 @@ AC_ARG_ENABLE(udev_sync, AC_MSG_RESULT($UDEV_SYNC) if test x$UDEV_SYNC = xyes; then - AC_CHECK_LIB(udev, udev_queue_get_udev_is_active, - [UDEV_PC="libudev"; UDEV_LIBS="-ludev"], - [AC_MSG_ERROR([bailing out... libudev library is required])]) + PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"]) AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.]) fi diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 1ae1027c8..43d78588b 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -29,7 +29,6 @@ # include # include # include -# define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE # include #endif diff --git a/tools/dmsetup.c b/tools/dmsetup.c index db9ad1b70..2a8e5a66e 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -45,7 +45,6 @@ # include # include # include -# define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE # include #endif diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index ddf0b5ed4..eb198840b 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -43,7 +43,6 @@ extern char *optarg; #endif #ifdef UDEV_SYNC_SUPPORT -# define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE # include #endif