0001-Allow-explicit-wipefs-enable-disablement.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From a76cd5f6abace269b60ef6f1b95526a2d09fd331 Mon Sep 17 00:00:00 2001
  2. From: Sam Voss <sam.voss@gmail.com>
  3. Date: Mon, 14 Oct 2019 21:19:16 -0500
  4. Subject: [PATCH] wipefs: Allow explicitly enable/disablement
  5. Currently if `--disable-all-packages` is set, there is no configure
  6. option for re-enabling `wipefs`.
  7. As the current default for `wipefs` is "enabled", add `--disable-` flag
  8. to maintain backward compatibility.
  9. Signed-off-by: Sam Voss <sam.voss@gmail.com>
  10. ---
  11. configure.ac | 6 +++++-
  12. 1 file changed, 5 insertions(+), 1 deletion(-)
  13. diff --git a/configure.ac b/configure.ac
  14. index fc8a9507f..f70f8d1ee 100644
  15. --- a/configure.ac
  16. +++ b/configure.ac
  17. @@ -1286,7 +1286,11 @@ UL_BUILD_INIT([findfs], [check])
  18. UL_REQUIRES_BUILD([findfs], [libblkid])
  19. AM_CONDITIONAL([BUILD_FINDFS], [test "x$build_findfs" = xyes])
  20. -UL_BUILD_INIT([wipefs], [check])
  21. +AC_ARG_ENABLE([wipefs],
  22. + AS_HELP_STRING([--disable-wipefs], [do not build wipefs]),
  23. + [], [UL_DEFAULT_ENABLE([wipefs], [check])]
  24. +)
  25. +UL_BUILD_INIT([wipefs])
  26. UL_REQUIRES_BUILD([wipefs], [libblkid])
  27. UL_REQUIRES_BUILD([wipefs], [libsmartcols])
  28. AM_CONDITIONAL([BUILD_WIPEFS], [test "x$build_wipefs" = xyes])