Package: nng Version: 1.10.0-1 Tags: ftbfs Usertags: hppa
nng sometimes fails to build on hppa (and other platforms) because the testcase is checking the time too sensitive: nng.platform.platform_test (Failed) 14: platform_test.c:64: Check t1 > t0... ok 14: platform_test.c:65: Check (t1 - t0) >= 200... ok 14: platform_test.c:66: Check (t1 - t0) < 500... ok 14: platform_test.c:69: Check abs((int) (s1 - s0) - (int) (t1 - t0)) < 50... failed 14: FAILED: 1 condition has failed. Avoid this check generally when building the debian package. Patch attached. Can you please add it to /debian/patches. It's not for upstream. (PS: I've manually uploaded a manual built package - so the issue seems resolved, but it isn't). Helge
[PATCH] Ignore timeout when building debian package Performance of various debian buildd servers are varying a lot. Make the clock checks generally relaxed to avoid build failures- Signed-off-by: Helge Deller <del...@gmx.de> diff -up ./src/platform/platform_test.c.org ./src/platform/platform_test.c --- ./src/platform/platform_test.c.org 2025-01-06 03:27:42.764352830 +0000 +++ ./src/platform/platform_test.c 2025-01-06 03:29:00.306291297 +0000 @@ -31,11 +31,8 @@ add(void *arg) nng_mtx_unlock(aa->mx); } -#ifdef __has_feature -#if __has_feature(thread_sanitizer) || __has_feature(memory_sanitizer) +/* unconditionally disable clock checks on debian buildd servers */ #define RELAXED_CLOCKS -#endif -#endif void test_sleep(void)