• Bug#1104138: dataquay FTCBFS: fails running tests despite DEB_BUILD_OPT

    From Helmut Grohne@21:1/5 to All on Fri Apr 25 23:30:01 2025
    Source: dataquay
    Version: 0.9.1-2
    Tags: patch
    User: debian-cross@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 <helmut@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
    +
    +