]> TLD Linux GIT Repositories - packages/lvm2.git/blob - lvm2-thin.patch
- updated to 2.03.19, partial merge of PLD changes
[packages/lvm2.git] / lvm2-thin.patch
1 --- LVM2.2.03.19/configure.ac.orig      2023-02-21 15:37:53.000000000 +0100
2 +++ LVM2.2.03.19/configure.ac   2023-02-22 10:52:41.267893915 +0100
3 @@ -393,7 +393,7 @@
4  AC_ARG_ENABLE(thin_check_needs_check,
5               AS_HELP_STRING([--disable-thin_check_needs_check],
6                              [required if thin_check version is < 0.3.0]),
7 -             THIN_CHECK_NEEDS_CHECK=$enableval, THIN_CHECK_NEEDS_CHECK="yes")
8 +             THIN_CHECK_NEEDS_CHECK=$enableval, THIN_CHECK_NEEDS_CHECK="autodetect")
9  
10  # Test if necessary thin tools are available
11  # if not - use plain defaults and warn user
12 @@ -421,7 +421,7 @@
13                         AC_MSG_WARN([$THIN_CHECK_CMD: Old version "$THIN_CHECK_VSN" found])
14                         THIN_CHECK_VERSION_WARN="y"
15                         THIN_CHECK_NEEDS_CHECK="no"
16 -               ])
17 +               ], [ THIN_CHECK_NEEDS_CHECK="yes" ])
18         ])
19         # Empty means a config way to ignore thin dumping
20         AS_IF([test "$THIN_DUMP_CMD" = "autodetect"], [
21 @@ -505,7 +505,7 @@
22  AC_ARG_ENABLE(cache_check_needs_check,
23               AS_HELP_STRING([--disable-cache_check_needs_check],
24                              [required if cache_check version is < 0.5]),
25 -             CACHE_CHECK_NEEDS_CHECK=$enableval, CACHE_CHECK_NEEDS_CHECK="yes")
26 +             CACHE_CHECK_NEEDS_CHECK=$enableval, CACHE_CHECK_NEEDS_CHECK="autodetect")
27  
28  # Test if necessary cache tools are available
29  # if not - use plain defaults and warn user
30 @@ -520,7 +520,7 @@
31                         CACHE_CONFIGURE_WARN="y"
32                 ])
33         ])
34 -       AS_IF([test "$CACHE_CHECK_NEEDS_CHECK" = "yes" && test "$CACHE_CONFIGURE_WARN" != "y"], [
35 +       AS_IF([test "$CACHE_CHECK_NEEDS_CHECK" = "autodetect" && test "$CACHE_CONFIGURE_WARN" != "y"], [
36                 $CACHE_CHECK_CMD -V 2>/dev/null >conftest.tmp
37                 read -r CACHE_CHECK_VSN < conftest.tmp
38                 IFS=.- read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH LEFTOVER < conftest.tmp
39 @@ -544,7 +544,7 @@
40                                 AC_MSG_WARN([$CACHE_CHECK_CMD: Old version "$CACHE_CHECK_VSN" does not support new cache format V2])
41                                 CACHE_CHECK_VERSION_WARN=y
42                         ])
43 -               ])
44 +               ], [ CACHE_CHECK_NEEDS_CHECK="yes" ])
45         ])
46         # Empty means a config way to ignore cache dumping
47         AS_IF([test "$CACHE_DUMP_CMD" = "autodetect"], [