]> TLD Linux GIT Repositories - packages/lvm2.git/blob - lvm2-thin.patch
- updated to 2.03.14
[packages/lvm2.git] / lvm2-thin.patch
1 diff -ur LVM2.2.03.02.orig/configure.ac LVM2.2.03.02/configure.ac
2 --- LVM2.2.03.02.orig/configure.ac      2019-03-22 17:10:13.162000000 +0100
3 +++ LVM2.2.03.02/configure.ac   2019-03-22 17:10:38.684000000 +0100
4 @@ -411,7 +411,7 @@
5  AC_ARG_ENABLE(thin_check_needs_check,
6               AS_HELP_STRING([--disable-thin_check_needs_check],
7                              [required if thin_check version is < 0.3.0]),
8 -             THIN_CHECK_NEEDS_CHECK=$enableval, THIN_CHECK_NEEDS_CHECK=yes)
9 +             THIN_CHECK_NEEDS_CHECK=$enableval, THIN_CHECK_NEEDS_CHECK=autodetect)
10  
11  # Test if necessary thin tools are available
12  # if not - use plain defaults and warn user
13 @@ -426,7 +426,7 @@
14                         THIN_CONFIGURE_WARN=y
15                 fi
16         fi
17 -       if test "$THIN_CHECK_NEEDS_CHECK" = yes && test "$THIN_CONFIGURE_WARN" != y ; then
18 +       if test "$THIN_CHECK_NEEDS_CHECK" = autodetect && test "$THIN_CONFIGURE_WARN" != y ; then
19                 THIN_CHECK_VSN=`"$THIN_CHECK_CMD" -V 2>/dev/null`
20                 THIN_CHECK_VSN_MAJOR=`echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $1}'`
21                 THIN_CHECK_VSN_MINOR=`echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $2}'`
22 @@ -439,6 +439,8 @@
23                         AC_MSG_WARN([$THIN_CHECK_CMD: Old version "$THIN_CHECK_VSN" found])
24                         THIN_CHECK_VERSION_WARN=y
25                         THIN_CHECK_NEEDS_CHECK=no
26 +               else
27 +                       THIN_CHECK_NEEDS_CHECK=yes
28                 fi
29         fi
30         # Empty means a config way to ignore thin dumping
31 @@ -524,7 +526,7 @@
32  AC_ARG_ENABLE(cache_check_needs_check,
33               AS_HELP_STRING([--disable-cache_check_needs_check],
34                              [required if cache_check version is < 0.5]),
35 -             CACHE_CHECK_NEEDS_CHECK=$enableval, CACHE_CHECK_NEEDS_CHECK=yes)
36 +             CACHE_CHECK_NEEDS_CHECK=$enableval, CACHE_CHECK_NEEDS_CHECK=autodetect)
37  
38  # Test if necessary cache tools are available
39  # if not - use plain defaults and warn user
40 @@ -563,6 +565,8 @@
41                                 AC_MSG_WARN([$CACHE_CHECK_CMD: Old version "$CACHE_CHECK_VSN" does not support new cache format V2])
42                                 CACHE_CHECK_VERSION_WARN=y
43                         fi
44 +               else
45 +                               CACHE_CHECK_NEEDS_CHECK=yes
46                 fi
47         fi
48         # Empty means a config way to ignore cache dumping