[libvirt PATCH 2/9] meson: Stop looking for udevadm at build time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We only use it at runtime, not during the build process.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 meson.build        | 1 -
 src/util/virutil.c | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 5fb827cca8..fdff8dcb97 100644
--- a/meson.build
+++ b/meson.build
@@ -820,7 +820,6 @@ optional_programs = [
   'rmmod',
   'scrub',
   'tc',
-  'udevadm',
 ]
 
 foreach name : optional_programs
diff --git a/src/util/virutil.c b/src/util/virutil.c
index c90d0be836..17d65ad834 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -62,6 +62,8 @@ G_STATIC_ASSERT(sizeof(gid_t) <= sizeof(unsigned int) &&
 
 VIR_LOG_INIT("util.util");
 
+#define UDEVADM "udevadm"
+
 #ifndef WIN32
 
 int virSetInherit(int fd, bool inherit)
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux