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

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