Source: glib2.0
Version: 2.62.0-2
Severity: important
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
glib2.0 fails to cross build from source, because the upstream
glib/meson.build skips the entire tests directory for cross builds. The
tests need to be built however when requesting
installed_tests_enabled=true and dh_install errors out when they go
missing. The attached patch fixes that.
Given the frequency of FTCBFS in glib2.0 and the importance of glib2.0
for architecture bootstrap I ask you to test cross building prior to
uploading new upstream releases in future. Doing so is as simple as
passing --host to sbuild or --host-arch to pbuilder.
Given that glib2.0 has autopkgtest regressions and cannot migrate
anyway, I ask you to include this patch quickly.
Thanks in advance.
Helmut
--- glib2.0-2.62.0.orig/glib/meson.build
+++ glib2.0-2.62.0/glib/meson.build
@@ -459,7 +459,7 @@
endif
# Don’t build the tests unless we can run them (either natively or in an exe wrapper)
-build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper())
+build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper()) or installed_tests_enabled
if build_tests
subdir('tests')
endif