Blame SOURCES/0015-m4-guestfs-find-db-tool.m4-Remove-unused-file.patch

aba816
From 083856d9f9c8fccc629bf0f3a5237d26434c8940 Mon Sep 17 00:00:00 2001
aba816
From: "Richard W.M. Jones" <rjones@redhat.com>
aba816
Date: Mon, 29 Mar 2021 18:35:48 +0100
aba816
Subject: [PATCH] m4/guestfs-find-db-tool.m4: Remove unused file.
aba816
aba816
Fixes: commit 42e5e7cfdbca01b2e9bd50c63a9fc65b6da9192f
aba816
(cherry picked from commit 8317279c3539562ebad9de13c7ac515dded74e4d)
aba816
---
aba816
 m4/guestfs-find-db-tool.m4 | 43 --------------------------------------
aba816
 1 file changed, 43 deletions(-)
aba816
 delete mode 100644 m4/guestfs-find-db-tool.m4
aba816
aba816
diff --git a/m4/guestfs-find-db-tool.m4 b/m4/guestfs-find-db-tool.m4
aba816
deleted file mode 100644
aba816
index b404148c6..000000000
aba816
--- a/m4/guestfs-find-db-tool.m4
aba816
+++ /dev/null
aba816
@@ -1,43 +0,0 @@
aba816
-# libguestfs
aba816
-# Copyright (C) 2014 Red Hat Inc.
aba816
-#
aba816
-# This program is free software; you can redistribute it and/or modify
aba816
-# it under the terms of the GNU General Public License as published by
aba816
-# the Free Software Foundation; either version 2 of the License, or
aba816
-# (at your option) any later version.
aba816
-#
aba816
-# This program is distributed in the hope that it will be useful,
aba816
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
aba816
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
aba816
-# GNU General Public License for more details.
aba816
-#
aba816
-# You should have received a copy of the GNU General Public License
aba816
-# along with this program; if not, write to the Free Software
aba816
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
aba816
-
aba816
-AC_DEFUN([GUESTFS_FIND_DB_TOOL],[
aba816
-    pushdef([VARIABLE],$1)
aba816
-    TOOL=$2
aba816
-
aba816
-    db_tool_name="db_$TOOL"
aba816
-    db_versions="53 5.3 5.2 5.1 4.8 4.7 4.6"
aba816
-    db_tool_patterns="dbX_$TOOL dbX.Y_$TOOL"
aba816
-    db_tool_patterns="dbX_$TOOL db_$TOOL-X dbX.Y_$TOOL db_$TOOL-X.Y"
aba816
-
aba816
-    AC_ARG_VAR(VARIABLE, [Absolute path to $db_tool_name executable])
aba816
-
aba816
-    AS_IF(test -z "$VARIABLE", [
aba816
-        exe_list="db_$TOOL"
aba816
-        for ver in $db_versions ; do
aba816
-            ver_maj=`echo $ver | cut -d. -f1`
aba816
-            ver_min=`echo $ver | cut -d. -f2`
aba816
-            for pattern in $db_tool_patterns ; do
aba816
-                exe=`echo "$pattern" | sed -e "s/X/$ver_maj/g;s/Y/$ver_min/g"`
aba816
-                exe_list="$exe_list $exe"
aba816
-            done
aba816
-        done
aba816
-        AC_PATH_PROGS([]VARIABLE[], [$exe_list], [no])
aba816
-    ])
aba816
-
aba816
-    popdef([VARIABLE])
aba816
-])
aba816
-- 
aba816
2.31.1
aba816