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

5f1a1f
 configure             | 20 ++++++++++----------
5f1a1f
 configure.in          |  4 ++--
5f1a1f
 lib/device/dev-type.c |  3 +--
4c7ee1
 3 files changed, 13 insertions(+), 14 deletions(-)
4c7ee1
4c7ee1
diff --git a/configure b/configure
c0e5af
index 8253bfc..587b978 100755
4c7ee1
--- a/configure
4c7ee1
+++ b/configure
c0e5af
@@ -11951,12 +11951,12 @@ if test -n "$BLKID_CFLAGS"; then
4c7ee1
     pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
4c7ee1
  elif test -n "$PKG_CONFIG"; then
4c7ee1
     if test -n "$PKG_CONFIG" && \
4c7ee1
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
4c7ee1
-  ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
4c7ee1
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.23\""; } >&5
4c7ee1
+  ($PKG_CONFIG --exists --print-errors "blkid >= 2.23") 2>&5
4c7ee1
   ac_status=$?
4c7ee1
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4c7ee1
   test $ac_status = 0; }; then
4c7ee1
-  pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.24" 2>/dev/null`
4c7ee1
+  pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.23" 2>/dev/null`
5f1a1f
 		      test "x$?" != "x0" && pkg_failed=yes
4c7ee1
 else
4c7ee1
   pkg_failed=yes
c0e5af
@@ -11968,12 +11968,12 @@ if test -n "$BLKID_LIBS"; then
4c7ee1
     pkg_cv_BLKID_LIBS="$BLKID_LIBS"
4c7ee1
  elif test -n "$PKG_CONFIG"; then
4c7ee1
     if test -n "$PKG_CONFIG" && \
4c7ee1
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
4c7ee1
-  ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
4c7ee1
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.23\""; } >&5
4c7ee1
+  ($PKG_CONFIG --exists --print-errors "blkid >= 2.23") 2>&5
4c7ee1
   ac_status=$?
4c7ee1
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4c7ee1
   test $ac_status = 0; }; then
4c7ee1
-  pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.24" 2>/dev/null`
4c7ee1
+  pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.23" 2>/dev/null`
5f1a1f
 		      test "x$?" != "x0" && pkg_failed=yes
4c7ee1
 else
4c7ee1
   pkg_failed=yes
c0e5af
@@ -11994,9 +11994,9 @@ else
4c7ee1
         _pkg_short_errors_supported=no
4c7ee1
 fi
4c7ee1
         if test $_pkg_short_errors_supported = yes; then
5f1a1f
-	        BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
5f1a1f
+	        BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.23" 2>&1`
4c7ee1
         else
5f1a1f
-	        BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
5f1a1f
+	        BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.23" 2>&1`
4c7ee1
         fi
4c7ee1
 	# Put the nasty error message in config.log where it belongs
4c7ee1
 	echo "$BLKID_PKG_ERRORS" >&5
c0e5af
@@ -12004,7 +12004,7 @@ fi
5f1a1f
 	if test "$BLKID_WIPING" = maybe; then
5f1a1f
 				BLKID_WIPING=no
5f1a1f
 			   else
5f1a1f
-			        as_fn_error $? "bailing out... blkid library >= 2.24 is required" "$LINENO" 5
5f1a1f
+			        as_fn_error $? "bailing out... blkid library >= 2.23 is required" "$LINENO" 5
5f1a1f
 			   fi
4c7ee1
 elif test $pkg_failed = untried; then
5f1a1f
      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
c0e5af
@@ -12012,7 +12012,7 @@ $as_echo "no" >&6; }
5f1a1f
 	if test "$BLKID_WIPING" = maybe; then
5f1a1f
 				BLKID_WIPING=no
5f1a1f
 			   else
5f1a1f
-			        as_fn_error $? "bailing out... blkid library >= 2.24 is required" "$LINENO" 5
5f1a1f
+			        as_fn_error $? "bailing out... blkid library >= 2.23 is required" "$LINENO" 5
5f1a1f
 			   fi
4c7ee1
 else
5f1a1f
 	BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
4c7ee1
diff --git a/configure.in b/configure.in
c0e5af
index 33b5c76..9ed6226 100644
4c7ee1
--- a/configure.in
4c7ee1
+++ b/configure.in
c0e5af
@@ -1302,12 +1302,12 @@ AC_MSG_RESULT($BLKID_WIPING)
5f1a1f
 
5f1a1f
 if test "$BLKID_WIPING" != no; then
5f1a1f
 	pkg_config_init
4c7ee1
-	PKG_CHECK_MODULES(BLKID, blkid >= 2.24,
4c7ee1
+	PKG_CHECK_MODULES(BLKID, blkid >= 2.23,
5f1a1f
 			  [test "$BLKID_WIPING" = maybe && BLKID_WIPING=yes],
5f1a1f
 			  [if test "$BLKID_WIPING" = maybe; then
5f1a1f
 				BLKID_WIPING=no
5f1a1f
 			   else
5f1a1f
-			        AC_MSG_ERROR([bailing out... blkid library >= 2.24 is required])
5f1a1f
+			        AC_MSG_ERROR([bailing out... blkid library >= 2.23 is required])
5f1a1f
 			   fi])
5f1a1f
 	if test "$BLKID_WIPING" = yes; then
5f1a1f
 		BLKID_PC="blkid"
4c7ee1
diff --git a/lib/device/dev-type.c b/lib/device/dev-type.c
c0e5af
index 0246c09..bae984a 100644
4c7ee1
--- a/lib/device/dev-type.c
4c7ee1
+++ b/lib/device/dev-type.c
c0e5af
@@ -703,8 +703,7 @@ static int _wipe_known_signatures_with_blkid(struct device *dev, const char *nam
4c7ee1
 						 BLKID_SUBLKS_TYPE |
4c7ee1
 						 BLKID_SUBLKS_USAGE |
4c7ee1
 						 BLKID_SUBLKS_VERSION |
4c7ee1
-						 BLKID_SUBLKS_MAGIC |
4c7ee1
-						 BLKID_SUBLKS_BADCSUM);
4c7ee1
+						 BLKID_SUBLKS_MAGIC);
4c7ee1
 
4c7ee1
 	while (!blkid_do_probe(probe)) {
c0e5af
 		if ((r_wipe = _blkid_wipe(probe, dev, name, types_to_exclude, types_no_prompt, yes, force)) == 1) {