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

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