Source: maildir-utils
Version: 1.12.4-1
Severity: important
Tags: ftbfs patch upstream
X-Debbugs-Cc: debian-ri...@lists.debian.org
User: debian-ri...@lists.debian.org
Usertags: riscv64

Dear maintainer,

maildir-utils fails to build from source on riscv64 due to a testsuite
failure:

| Summary of Failures:
| 
| 38/46 test-store            FAIL            4.41s   killed by signal 6 SIGABRT
| 
| Ok:                 45
| Expected Fail:      0
| Fail:               1
| Unexpected Pass:    0
| Skipped:            0
| Timeout:            0
|       rm -fr -- /tmp/dh-xdg-rundir-yjVOiMWA
| dh_auto_test: error: cd obj-riscv64-linux-gnu && 
DEB_PYTHON_INSTALL_LAYOUT=deb LC_ALL=C.UTF-8 MESON_TESTTHREADS=4 meson test 
returned exit code 1
| make: *** [debian/rules:26: binary-arch] Error 25
| dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
status 2

The full build log is available there:
https://buildd.debian.org/status/fetch.php?pkg=maildir-utils&arch=riscv64&ver=1.12.4-1&stamp=1714778367&raw=0

After investigation, it appears the test fails due to a too small
timeout in the check for the buildd hardware. Doubling the timeout with
the following patch fixes the issue:

--- maildir-utils-1.12.4.orig/lib/tests/test-mu-store.cc
+++ maildir-utils-1.12.4/lib/tests/test-mu-store.cc
@@ -494,7 +494,7 @@ test_store_circular_symlink(void)
        size_t n{};
        while (store.indexer().is_running()) {
                std::this_thread::sleep_for(100ms);
-               g_assert_cmpuint(n++,<=,25);
+               g_assert_cmpuint(n++,<=,50);
        }
        // there will be a lot of dups....
        g_assert_false(store.empty());

Note that it might also fix the FTBFS on alpha, hppa and sparc64 as the
symptoms look similar.

Regards
Aurelien

Reply via email to