Blame SOURCES/lvm2-drop-unavailable-libblkid-2_24-BLKID_SUBLKS_BADCSUM-for-signature-detection.patch

d6c8c5
 configure             | 20 ++++++++++----------
0d8a0a
 configure.ac          |  4 ++--
d6c8c5
 lib/device/dev-type.c |  3 +--
d6c8c5
 3 files changed, 13 insertions(+), 14 deletions(-)
d6c8c5
d6c8c5
diff --git a/configure b/configure
0d8a0a
index 7d945df..ef24b31 100755
d6c8c5
--- a/configure
d6c8c5
+++ b/configure
0d8a0a
@@ -12111,12 +12111,12 @@ if test -n "$BLKID_CFLAGS"; then
d6c8c5
     pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
d6c8c5
  elif test -n "$PKG_CONFIG"; then
d6c8c5
     if test -n "$PKG_CONFIG" && \
d6c8c5
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
d6c8c5
-  ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
d6c8c5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.23\""; } >&5
d6c8c5
+  ($PKG_CONFIG --exists --print-errors "blkid >= 2.23") 2>&5
d6c8c5
   ac_status=$?
d6c8c5
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6c8c5
   test $ac_status = 0; }; then
d6c8c5
-  pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.24" 2>/dev/null`
d6c8c5
+  pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.23" 2>/dev/null`
d6c8c5
 		      test "x$?" != "x0" && pkg_failed=yes
d6c8c5
 else
d6c8c5
   pkg_failed=yes
0d8a0a
@@ -12128,12 +12128,12 @@ if test -n "$BLKID_LIBS"; then
d6c8c5
     pkg_cv_BLKID_LIBS="$BLKID_LIBS"
d6c8c5
  elif test -n "$PKG_CONFIG"; then
d6c8c5
     if test -n "$PKG_CONFIG" && \
d6c8c5
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
d6c8c5
-  ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
d6c8c5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.23\""; } >&5
d6c8c5
+  ($PKG_CONFIG --exists --print-errors "blkid >= 2.23") 2>&5
d6c8c5
   ac_status=$?
d6c8c5
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6c8c5
   test $ac_status = 0; }; then
d6c8c5
-  pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.24" 2>/dev/null`
d6c8c5
+  pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.23" 2>/dev/null`
d6c8c5
 		      test "x$?" != "x0" && pkg_failed=yes
d6c8c5
 else
d6c8c5
   pkg_failed=yes
0d8a0a
@@ -12154,9 +12154,9 @@ else
d6c8c5
         _pkg_short_errors_supported=no
d6c8c5
 fi
d6c8c5
         if test $_pkg_short_errors_supported = yes; then
d6c8c5
-	        BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
d6c8c5
+	        BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.23" 2>&1`
d6c8c5
         else
d6c8c5
-	        BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
d6c8c5
+	        BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.23" 2>&1`
d6c8c5
         fi
d6c8c5
 	# Put the nasty error message in config.log where it belongs
d6c8c5
 	echo "$BLKID_PKG_ERRORS" >&5
0d8a0a
@@ -12164,7 +12164,7 @@ fi
d6c8c5
 	if test "$BLKID_WIPING" = maybe; then
d6c8c5
 				BLKID_WIPING=no
d6c8c5
 			   else
d6c8c5
-			        as_fn_error $? "bailing out... blkid library >= 2.24 is required" "$LINENO" 5
d6c8c5
+			        as_fn_error $? "bailing out... blkid library >= 2.23 is required" "$LINENO" 5
d6c8c5
 			   fi
d6c8c5
 elif test $pkg_failed = untried; then
d6c8c5
      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
0d8a0a
@@ -12172,7 +12172,7 @@ $as_echo "no" >&6; }
d6c8c5
 	if test "$BLKID_WIPING" = maybe; then
d6c8c5
 				BLKID_WIPING=no
d6c8c5
 			   else
d6c8c5
-			        as_fn_error $? "bailing out... blkid library >= 2.24 is required" "$LINENO" 5
d6c8c5
+			        as_fn_error $? "bailing out... blkid library >= 2.23 is required" "$LINENO" 5
d6c8c5
 			   fi
d6c8c5
 else
d6c8c5
 	BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
0d8a0a
diff --git a/configure.ac b/configure.ac
0d8a0a
index e427708..935ea08 100644
0d8a0a
--- a/configure.ac
0d8a0a
+++ b/configure.ac
0d8a0a
@@ -1235,7 +1235,7 @@ AC_ARG_ENABLE(blkid_wiping,
d6c8c5
 DEFAULT_USE_BLKID_WIPING=0
d6c8c5
 if test "$BLKID_WIPING" != no; then
d6c8c5
 	pkg_config_init
d6c8c5
-	PKG_CHECK_MODULES(BLKID, blkid >= 2.24,
d6c8c5
+	PKG_CHECK_MODULES(BLKID, blkid >= 2.23,
d6c8c5
 			  [ BLKID_WIPING=yes
d6c8c5
 			    BLKID_PC="blkid"
d6c8c5
 			    DEFAULT_USE_BLKID_WIPING=1
0d8a0a
@@ -1243,7 +1243,7 @@ if test "$BLKID_WIPING" != no; then
d6c8c5
 			  ], [if test "$BLKID_WIPING" = maybe; then
d6c8c5
 				BLKID_WIPING=no
d6c8c5
 			   else
d6c8c5
-			        AC_MSG_ERROR([bailing out... blkid library >= 2.24 is required])
d6c8c5
+			        AC_MSG_ERROR([bailing out... blkid library >= 2.23 is required])
d6c8c5
 			   fi])
d6c8c5
 fi
d6c8c5
 AC_MSG_CHECKING([whether to enable libblkid detection of signatures when wiping])
d6c8c5
diff --git a/lib/device/dev-type.c b/lib/device/dev-type.c
0d8a0a
index af4b407..eda7982 100644
d6c8c5
--- a/lib/device/dev-type.c
d6c8c5
+++ b/lib/device/dev-type.c
0d8a0a
@@ -712,8 +712,7 @@ static int _wipe_known_signatures_with_blkid(struct device *dev, const char *nam
d6c8c5
 						 BLKID_SUBLKS_TYPE |
d6c8c5
 						 BLKID_SUBLKS_USAGE |
d6c8c5
 						 BLKID_SUBLKS_VERSION |
d6c8c5
-						 BLKID_SUBLKS_MAGIC |
d6c8c5
-						 BLKID_SUBLKS_BADCSUM);
d6c8c5
+						 BLKID_SUBLKS_MAGIC);
d6c8c5
 
d6c8c5
 	while (!blkid_do_probe(probe)) {
d6c8c5
 		if ((r_wipe = _blkid_wipe(probe, dev, name, types_to_exclude, types_no_prompt, yes, force)) == 1) {