0001-disable-tests.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. From c87faf380ddf44da9d624dabd28178c9065f0f76 Mon Sep 17 00:00:00 2001
  2. From: Adam Duskett <aduskett@gmail.com>
  3. Date: Mon, 3 Feb 2020 10:07:15 -0800
  4. Subject: [PATCH] disable tests
  5. If introspection data on the host is not built, meson throws the error:
  6. "Unknown variable "typelibs". Because tests are not required, removing
  7. the subdir tests altogether fixes this issue.
  8. Signed-off-by: Adam Duskett <aduskett@gmail.com>
  9. ---
  10. meson.build | 6 ------
  11. 1 file changed, 6 deletions(-)
  12. diff --git a/meson.build b/meson.build
  13. index c2cb577f..65ce7adf 100644
  14. --- a/meson.build
  15. +++ b/meson.build
  16. @@ -237,12 +237,6 @@ else
  17. endif
  18. subdir('docs')
  19. -# The tests will also run, which is not possible if they
  20. -# were built for a different architecture.
  21. -if not meson.is_cross_build()
  22. - subdir('tests')
  23. -endif
  24. -
  25. install_data('Makefile.introspection', install_dir: join_paths(get_option('datadir'), 'gobject-introspection-1.0'))
  26. install_data('m4/introspection.m4', install_dir: join_paths(get_option('datadir'), 'aclocal'))
  27. --
  28. 2.25.1