render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Pablo Greco 40546a
From b5dbb3bd65642516a773a2cdf67efe977cfec4b4 Mon Sep 17 00:00:00 2001
Pablo Greco 40546a
Message-Id: <b5dbb3bd65642516a773a2cdf67efe977cfec4b4@dist-git>
Pablo Greco 40546a
From: Michal Privoznik <mprivozn@redhat.com>
Pablo Greco 40546a
Date: Thu, 27 Jun 2019 15:55:37 +0200
Pablo Greco 40546a
Subject: [PATCH] lib: Drop UDEVSETTLE
Pablo Greco 40546a
MIME-Version: 1.0
Pablo Greco 40546a
Content-Type: text/plain; charset=UTF-8
Pablo Greco 40546a
Content-Transfer-Encoding: 8bit
Pablo Greco 40546a
Pablo Greco 40546a
The udevsettle binary is no longer used anywhere as it was
Pablo Greco 40546a
replaced by 'udevadm settle'. There's no reason for us to even
Pablo Greco 40546a
check for it in configure.
Pablo Greco 40546a
Pablo Greco 40546a
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Pablo Greco 40546a
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Pablo Greco 40546a
(cherry picked from commit 2944dcb2de014a881c3539a43f989c2a723e87ca)
Pablo Greco 40546a
Pablo Greco 40546a
https://bugzilla.redhat.com/show_bug.cgi?id=1710575
Pablo Greco 40546a
Pablo Greco 40546a
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Pablo Greco 40546a
Message-Id: <b69a2303299a9d69d58d4d54cebd306cdba87c3b.1561643698.git.mprivozn@redhat.com>
Pablo Greco 40546a
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Pablo Greco 40546a
---
Pablo Greco 40546a
 m4/virt-external-programs.m4 | 5 -----
Pablo Greco 40546a
 src/util/virutil.c           | 6 +-----
Pablo Greco 40546a
 2 files changed, 1 insertion(+), 10 deletions(-)
Pablo Greco 40546a
Pablo Greco 40546a
diff --git a/m4/virt-external-programs.m4 b/m4/virt-external-programs.m4
Pablo Greco 40546a
index ab6149288f..3c915e1a65 100644
Pablo Greco 40546a
--- a/m4/virt-external-programs.m4
Pablo Greco 40546a
+++ b/m4/virt-external-programs.m4
Pablo Greco 40546a
@@ -46,7 +46,6 @@ AC_DEFUN([LIBVIRT_CHECK_EXTERNAL_PROGRAMS], [
Pablo Greco 40546a
   AC_PATH_PROG([RADVD], [radvd], [radvd], [$LIBVIRT_SBIN_PATH])
Pablo Greco 40546a
   AC_PATH_PROG([TC], [tc], [tc], [$LIBVIRT_SBIN_PATH])
Pablo Greco 40546a
   AC_PATH_PROG([UDEVADM], [udevadm], [], [$LIBVIRT_SBIN_PATH])
Pablo Greco 40546a
-  AC_PATH_PROG([UDEVSETTLE], [udevsettle], [], [$LIBVIRT_SBIN_PATH])
Pablo Greco 40546a
   AC_PATH_PROG([MODPROBE], [modprobe], [modprobe], [$LIBVIRT_SBIN_PATH])
Pablo Greco 40546a
   AC_PATH_PROG([RMMOD], [rmmod], [rmmod], [$LIBVIRT_SBIN_PATH])
Pablo Greco 40546a
   AC_PATH_PROG([MMCTL], [mm-ctl], [mm-ctl], [$LIBVIRT_SBIN_PATH])
Pablo Greco 40546a
@@ -71,10 +70,6 @@ AC_DEFUN([LIBVIRT_CHECK_EXTERNAL_PROGRAMS], [
Pablo Greco 40546a
     AC_DEFINE_UNQUOTED([UDEVADM], ["$UDEVADM"],
Pablo Greco 40546a
                        [Location or name of the udevadm program])
Pablo Greco 40546a
   fi
Pablo Greco 40546a
-  if test -n "$UDEVSETTLE"; then
Pablo Greco 40546a
-    AC_DEFINE_UNQUOTED([UDEVSETTLE], ["$UDEVSETTLE"],
Pablo Greco 40546a
-                       [Location or name of the udevsettle program])
Pablo Greco 40546a
-  fi
Pablo Greco 40546a
   if test -n "$MODPROBE"; then
Pablo Greco 40546a
     AC_DEFINE_UNQUOTED([MODPROBE], ["$MODPROBE"],
Pablo Greco 40546a
                        [Location or name of the modprobe program])
Pablo Greco 40546a
diff --git a/src/util/virutil.c b/src/util/virutil.c
Pablo Greco 40546a
index d37c1ac632..68d3217248 100644
Pablo Greco 40546a
--- a/src/util/virutil.c
Pablo Greco 40546a
+++ b/src/util/virutil.c
Pablo Greco 40546a
@@ -1621,14 +1621,10 @@ virSetUIDGIDWithCaps(uid_t uid, gid_t gid, gid_t *groups, int ngroups,
Pablo Greco 40546a
 #endif
Pablo Greco 40546a
 
Pablo Greco 40546a
 
Pablo Greco 40546a
-#if defined(UDEVADM) || defined(UDEVSETTLE)
Pablo Greco 40546a
+#if defined(UDEVADM)
Pablo Greco 40546a
 void virWaitForDevices(void)
Pablo Greco 40546a
 {
Pablo Greco 40546a
-# ifdef UDEVADM
Pablo Greco 40546a
     const char *const settleprog[] = { UDEVADM, "settle", NULL };
Pablo Greco 40546a
-# else
Pablo Greco 40546a
-    const char *const settleprog[] = { UDEVSETTLE, NULL };
Pablo Greco 40546a
-# endif
Pablo Greco 40546a
     int exitstatus;
Pablo Greco 40546a
 
Pablo Greco 40546a
     if (access(settleprog[0], X_OK) != 0)
Pablo Greco 40546a
-- 
Pablo Greco 40546a
2.22.0
Pablo Greco 40546a