]> TLD Linux GIT Repositories - packages/lvm2.git/blob - lvm2-thin.patch
- fix run dir problems (got messed up during update)
[packages/lvm2.git] / lvm2-thin.patch
1 diff -urp LVM2.2.03.00.orig/configure.ac LVM2.2.03.00/configure.ac
2 --- LVM2.2.03.00.orig/configure.ac      2018-10-21 14:38:26.196416609 +0000
3 +++ LVM2.2.03.00/configure.ac   2018-10-21 14:38:47.235416609 +0000
4 @@ -388,7 +388,7 @@ dnl -- thin_check needs-check flag
5  AC_ARG_ENABLE(thin_check_needs_check,
6               AC_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 @@ -403,7 +403,7 @@ case "$THIN" in
14                         THIN_CONFIGURE_WARN=y
15                 fi
16         fi
17 -       if test "$THIN_CHECK_NEEDS_CHECK" = yes; then
18 +       if test "$THIN_CHECK_NEEDS_CHECK" = autodetect; 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 @@ -416,6 +416,8 @@ case "$THIN" in
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 @@ -502,7 +504,7 @@ dnl -- cache_check needs-check flag
32  AC_ARG_ENABLE(cache_check_needs_check,
33               AC_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 @@ -517,7 +519,7 @@ case "$CACHE" in
41                         CACHE_CONFIGURE_WARN=y
42                 fi
43         fi
44 -       if test "$CACHE_CHECK_NEEDS_CHECK" = yes; then
45 +       if test "$CACHE_CHECK_NEEDS_CHECK" = autodetect; then
46                 $CACHE_CHECK_CMD -V 2>/dev/null >conftest.tmp
47                 read -r CACHE_CHECK_VSN < conftest.tmp
48                 IFS=.- read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH LEFTOVER < conftest.tmp
49 @@ -541,6 +543,8 @@ case "$CACHE" in
50                                 AC_MSG_WARN([$CACHE_CHECK_CMD: Old version "$CACHE_CHECK_VSN" does not support new cache format V2])
51                                 CACHE_CHECK_VERSION_WARN=y
52                         fi
53 +               else
54 +                               CACHE_CHECK_NEEDS_CHECK=yes
55                 fi
56         fi
57         # Empty means a config way to ignore cache dumping