Source: libinputsynth Version: 0.12.1-1 Tags: patch User: [email protected] Usertags: ftcbfs
libinputsynth fails to cross build from source, because it fails running tests in a non-existent directory despite DEB_BUILD_OPTIONS=nocheck. The build directory used by debhelper is dependent on the host architecture, not the build architcture. Please consider applying the attached patch. Helmut
diff --minimal -Nru libinputsynth-0.12.1/debian/changelog libinputsynth-0.12.1/debian/changelog --- libinputsynth-0.12.1/debian/changelog 2019-08-03 13:11:32.000000000 +0200 +++ libinputsynth-0.12.1/debian/changelog 2019-09-26 16:39:04.000000000 +0200 @@ -1,3 +1,12 @@ +libinputsynth (0.12.1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Honour DEB_BUILD_OPTIONS=nocheck. + + Fix build/host confusion. + + -- Helmut Grohne <[email protected]> Thu, 26 Sep 2019 16:39:04 +0200 + libinputsynth (0.12.1-1) unstable; urgency=medium * Initial Release. (Closes: #933563) diff --minimal -Nru libinputsynth-0.12.1/debian/rules libinputsynth-0.12.1/debian/rules --- libinputsynth-0.12.1/debian/rules 2019-08-03 13:11:32.000000000 +0200 +++ libinputsynth-0.12.1/debian/rules 2019-09-26 16:39:04.000000000 +0200 @@ -5,12 +5,14 @@ %: dh $@ -test_env = LIBINPUTSYNTH_PLUGINDIR=$(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)/src/ \ +test_env = LIBINPUTSYNTH_PLUGINDIR=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/src/ \ LC_ALL=C.UTF-8 \ MESON_TESTTHREADS=1 override_dh_auto_test: ; - env $(test_env) ninja -C obj-$(DEB_BUILD_GNU_TYPE) test +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + env $(test_env) ninja -C obj-$(DEB_HOST_GNU_TYPE) test +endif override_dh_missing: dh_missing --list-missing

