0001-meson-Fix-build-python-option.patch 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. From b66b70d62e50923502aeb3f6420a5f9c20f769d3 Mon Sep 17 00:00:00 2001
  2. From: Jordan Williams <[email protected]>
  3. Date: Thu, 9 May 2024 15:57:12 -0500
  4. Subject: [PATCH] meson: Fix build-python option
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. The build-python option is for controlling whether or not pylibmount is
  9. built.
  10. Unfortunately, commit b6799cc rendered the option unused.
  11. This change uses the build-python option again.
  12. Signed-off-by: Jordan Williams <[email protected]>
  13. Signed-off-by: Thomas Weißschuh <[email protected]>
  14. ---
  15. libmount/python/meson.build | 40 ++++++++++++++++++-------------------
  16. 1 file changed, 20 insertions(+), 20 deletions(-)
  17. diff --git a/libmount/python/meson.build b/libmount/python/meson.build
  18. index 72985eca6b21..5dcdf807da89 100644
  19. --- a/libmount/python/meson.build
  20. +++ b/libmount/python/meson.build
  21. @@ -1,4 +1,6 @@
  22. -build_python = python.found()
  23. +if get_option('build-python').disabled()
  24. + subdir_done()
  25. +endif
  26. pylibmount_sources = '''
  27. pylibmount.c