Blame SOURCES/0001-RHEL-8-Remove-libguestfs-live-RHBZ-798980.patch

aba816
From 5b6d2b05fe0c4035b9791a751e3133d26c7baa2d Mon Sep 17 00:00:00 2001
df3bb2
From: "Richard W.M. Jones" <rjones@redhat.com>
df3bb2
Date: Fri, 21 Dec 2012 15:50:11 +0000
df3bb2
Subject: [PATCH] RHEL 8: Remove libguestfs live (RHBZ#798980).
df3bb2
df3bb2
This isn't supported in RHEL 8.
aba816
aba816
Disable daemon tests that require the 'unix' backend.
df3bb2
---
aba816
 lib/launch-unix.c        | 7 +++++++
aba816
 tests/daemon/Makefile.am | 4 +---
aba816
 2 files changed, 8 insertions(+), 3 deletions(-)
df3bb2
df3bb2
diff --git a/lib/launch-unix.c b/lib/launch-unix.c
aba816
index 0d344f9df..74dd1bb4a 100644
df3bb2
--- a/lib/launch-unix.c
df3bb2
+++ b/lib/launch-unix.c
df3bb2
@@ -37,6 +37,12 @@
df3bb2
 static int
df3bb2
 launch_unix (guestfs_h *g, void *datav, const char *sockpath)
df3bb2
 {
df3bb2
+  error (g,
df3bb2
+	 "launch: In RHEL, only the 'libvirt' or 'direct' method is supported.\n"
df3bb2
+	 "In particular, \"libguestfs live\" is not supported.");
df3bb2
+  return -1;
df3bb2
+
df3bb2
+#if 0
df3bb2
   int r, daemon_sock = -1;
df3bb2
   struct sockaddr_un addr;
df3bb2
   uint32_t size;
df3bb2
@@ -106,6 +112,7 @@ launch_unix (guestfs_h *g, void *datav, const char *sockpath)
df3bb2
     g->conn = NULL;
df3bb2
   }
df3bb2
   return -1;
df3bb2
+#endif
df3bb2
 }
df3bb2
 
df3bb2
 static int
aba816
diff --git a/tests/daemon/Makefile.am b/tests/daemon/Makefile.am
aba816
index 921e6d1df..8b2887247 100644
aba816
--- a/tests/daemon/Makefile.am
aba816
+++ b/tests/daemon/Makefile.am
aba816
@@ -23,9 +23,7 @@ include $(top_srcdir)/subdir-rules.mk
aba816
 
aba816
 check_DATA = captive-daemon.pm
aba816
 
aba816
-TESTS = \
aba816
-	test-daemon-start.pl \
aba816
-	test-btrfs.pl
aba816
+TESTS =
aba816
 
aba816
 TESTS_ENVIRONMENT = $(top_builddir)/run --test
aba816
 
df3bb2
-- 
aba816
2.31.1
df3bb2