mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 3 years ago
Clone

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

d6c8c5
 configure             | 20 ++++++++++----------
d6c8c5
 configure.in          |  4 ++--
d6c8c5
 lib/device/dev-type.c |  3 +--
d6c8c5
 3 files changed, 13 insertions(+), 14 deletions(-)
d6c8c5
d6c8c5
diff --git a/configure b/configure
d6c8c5
index d04b9d3..4f6e7d7 100755
d6c8c5
--- a/configure
d6c8c5
+++ b/configure
d6c8c5
@@ -12322,12 +12322,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
d6c8c5
@@ -12339,12 +12339,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
d6c8c5
@@ -12365,9 +12365,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
d6c8c5
@@ -12375,7 +12375,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
d6c8c5
@@ -12383,7 +12383,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
d6c8c5
diff --git a/configure.in b/configure.in
d6c8c5
index d879408..ab8b585 100644
d6c8c5
--- a/configure.in
d6c8c5
+++ b/configure.in
d6c8c5
@@ -1312,7 +1312,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
d6c8c5
@@ -1320,7 +1320,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
d6c8c5
index 9608146..1e45f9d 100644
d6c8c5
--- a/lib/device/dev-type.c
d6c8c5
+++ b/lib/device/dev-type.c
d6c8c5
@@ -713,8 +713,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) {