Source: dataquay
Version: 0.9.1-2
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

dataquay fails to cross build from source, because it fails running its
tests despite being passed DEB_BUILD_OPTIONS=nocheck. The test failure
is unsurprising as the build CPU is unable to run the test program built
for the host architecture. What is missing here to support cross
building is a way to skip running tests. I'm attaching a patch to add
this support for your convenience. I don't think including this patch in
trixie would be appropriate according to the freeze policy. Please
consider it forky material.

Helmut
diff --minimal -Nru dataquay-0.9.1/debian/changelog 
dataquay-0.9.1/debian/changelog
--- dataquay-0.9.1/debian/changelog     2023-09-25 00:13:50.000000000 +0200
+++ dataquay-0.9.1/debian/changelog     2025-04-25 19:29:28.000000000 +0200
@@ -1,3 +1,10 @@
+dataquay (0.9.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Support DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 25 Apr 2025 19:29:28 +0200
+
 dataquay (0.9.1-2) unstable; urgency=medium
 
   * Team upload
diff --minimal -Nru dataquay-0.9.1/debian/patches/nocheck.patch 
dataquay-0.9.1/debian/patches/nocheck.patch
--- dataquay-0.9.1/debian/patches/nocheck.patch 1970-01-01 01:00:00.000000000 
+0100
+++ dataquay-0.9.1/debian/patches/nocheck.patch 2025-04-25 19:28:16.000000000 
+0200
@@ -0,0 +1,17 @@
+--- dataquay-0.9.1.orig/dataquay.pro
++++ dataquay-0.9.1/dataquay.pro
+@@ -1,8 +1,11 @@
+ 
+ TEMPLATE = subdirs
+-SUBDIRS = sub_lib sub_tests
++SUBDIRS = sub_lib
+ 
+ sub_lib.file = lib.pro
+-sub_tests.file = tests/tests.pro
+-sub_tests.depends = sub_lib
+ 
++isEmpty(SKIP_TESTS) {
++    SUBDIRS += sub_tests
++    sub_tests.file = tests/tests.pro
++    sub_tests.depends = sub_lib
++}
diff --minimal -Nru dataquay-0.9.1/debian/patches/series 
dataquay-0.9.1/debian/patches/series
--- dataquay-0.9.1/debian/patches/series        2023-09-25 00:07:29.000000000 
+0200
+++ dataquay-0.9.1/debian/patches/series        2025-04-25 19:27:06.000000000 
+0200
@@ -2,3 +2,4 @@
 03-ldflags.patch
 04-libs.patch
 05-fix_build.patch
+nocheck.patch
diff --minimal -Nru dataquay-0.9.1/debian/rules dataquay-0.9.1/debian/rules
--- dataquay-0.9.1/debian/rules 2023-09-25 00:10:55.000000000 +0200
+++ dataquay-0.9.1/debian/rules 2025-04-25 19:29:12.000000000 +0200
@@ -10,7 +10,7 @@
        dh $@
 
 override_dh_auto_configure:
-       dh_auto_configure -- dataquay.pro PREFIX=/usr 
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
+       dh_auto_configure -- dataquay.pro PREFIX=/usr 
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) $(if $(filter 
nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)),SKIP_TESTS=yes)
 
 override_dh_auto_install:
        dh_auto_install

Reply via email to