From 51f66d1e0d82130690156fe2036c6197936cc3d7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 9 Feb 2025 07:43:58 +0100 Subject: [PATCH] Skipping tests when building non-parallel to fix hanging test suite, thanks to Santiago Vila (Closes: #1055218). Signed-off-by: Daniel Baumann --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index 70667c5..e91561b 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,12 @@ ifeq ($(DEB_HOST_ARCH), i386) PLATFORM = --disable-sse endif +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +else + NUMJOBS = 1 +endif + %: dh ${@} @@ -37,5 +43,7 @@ override_dh_auto_configure: override_dh_auto_test: ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 i386)) +ifneq ($(NUMJOBS), 1) $(MAKE) -j1 check endif +endif