Blame SOURCES/bz2000954-1-configure-fix-virt.patch

d4ebfc
From 52de83b30a8eea638b01f649f4884f50417121c0 Mon Sep 17 00:00:00 2001
d4ebfc
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
d4ebfc
Date: Mon, 8 Nov 2021 09:55:11 +0100
d4ebfc
Subject: [PATCH] configure: fix --with-agents to not match *virt in regex
d4ebfc
d4ebfc
---
d4ebfc
 configure.ac | 4 ++--
d4ebfc
 1 file changed, 2 insertions(+), 2 deletions(-)
d4ebfc
d4ebfc
diff --git a/configure.ac b/configure.ac
d4ebfc
index 7aa51e75d..76aec7186 100644
d4ebfc
--- a/configure.ac
d4ebfc
+++ b/configure.ac
d4ebfc
@@ -173,8 +173,8 @@ if echo "$AGENTS_LIST" | grep -q -E "all|zvm( |$)"; then
d4ebfc
 fi
d4ebfc
 
d4ebfc
 FENCE_VIRT=0
d4ebfc
-if echo "$AGENTS_LIST" | grep -q -E "all|virt( |$)"; then
d4ebfc
-	AGENTS_LIST=$(echo "$AGENTS_LIST" | sed -E "s/virt( |$)//")
d4ebfc
+if echo "$AGENTS_LIST" | grep -q -E "all|(^| )virt( |$)"; then
d4ebfc
+	AGENTS_LIST=$(echo "$AGENTS_LIST" | sed -E "s/(^| )virt( |$)//")
d4ebfc
 	case "$host_os" in
d4ebfc
 		*bsd*)
d4ebfc
 			;;