[Pkg-utopia-maintainers] Bug#1024210: dbus-python: ftbfs on riscv64 due to timeout

Bo YU tsu.yubo at gmail.com
Wed Nov 16 04:23:46 GMT 2022


Source: dbus-python
Version: 1.3.2-2
Severity: normal
Tags: ftbfs, patch
User: debian-riscv at lists.debian.org
Usertags: riscv64
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-riscv at lists.debian.org

Hi, 

The package has a ftbfs issue on riscv64 due to timeout from tests.
```
ummary of Failures:

1/8 import-repeatedly  TIMEOUT        30.04s   killed by signal 15 SIGTERM

Ok:                 7   
Expected Fail:      0   
Fail:               0   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            1   
dh_auto_test: error: cd build-3.11 && LC_ALL=C.UTF-8 MESON_TESTTHREADS=1 meson test returned exit code 1
make[1]: *** [debian/rules:64: override_dh_auto_test-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:23: binary-arch] Error 2
```
The buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=dbus-python&arch=riscv64&ver=1.3.2-2&stamp=1668443912&raw=0

Because the dbus-python package is very very key package from my view so
I think it should be considered to find a workround. The patch is very
hacky to reduce import numbers for the test on riscv64 and it should be
increased timeout value of dbus_run_seesion on riscv64.

So please let me know if there are any issues.

-- 
Regards,
--
  Bo YU

-------------- next part --------------
diff -Nru dbus-python-1.3.2/debian/changelog dbus-python-1.3.2/debian/changelog
--- dbus-python-1.3.2/debian/changelog	2022-11-13 18:28:33.000000000 +0000
+++ dbus-python-1.3.2/debian/changelog	2022-11-16 01:50:59.000000000 +0000
@@ -1,3 +1,10 @@
+dbus-python (1.3.2-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * fix ftbfs on riscv64 due to timeout
+
+ -- Bo YU <tsu.yubo at gmail.com>  Wed, 16 Nov 2022 01:50:59 +0000
+
 dbus-python (1.3.2-2) unstable; urgency=medium
 
   [ Debian Janitor ]
diff -Nru dbus-python-1.3.2/debian/patches/fix-timeout-on-riscv64.patch dbus-python-1.3.2/debian/patches/fix-timeout-on-riscv64.patch
--- dbus-python-1.3.2/debian/patches/fix-timeout-on-riscv64.patch	1970-01-01 00:00:00.000000000 +0000
+++ dbus-python-1.3.2/debian/patches/fix-timeout-on-riscv64.patch	2022-11-16 01:50:59.000000000 +0000
@@ -0,0 +1,37 @@
+--- a/test/import-repeatedly.c
++++ b/test/import-repeatedly.c
+@@ -5,16 +5,23 @@
+  */
+ 
+ #include <stdio.h>
++#include <sys/utsname.h>
++#include <string.h>
+ 
+ #include <Python.h>
+ 
+ int main(void)
+ {
+-    int i;
++    int i, import_num = 100;
++
++    struct utsname unameData;
++    uname(&unameData);
++    if (strcmp(unameData.machine, "riscv64") == 0)
++        import_num = 50;
+ 
+     puts("1..1");
+ 
+-    for (i = 0; i < 100; ++i) {
++    for (i = 0; i < import_num; ++i) {
+         Py_Initialize();
+         if (PyRun_SimpleString("import dbus\n") != 0) {
+             puts("not ok 1 - there was an exception");
+@@ -23,7 +30,7 @@
+         Py_Finalize();
+     }
+ 
+-    puts("ok 1 - was able to import dbus 100 times");
++    printf("ok 1 - was able to import dbus %d times\n", import_num);
+ 
+     return 0;
+ }
diff -Nru dbus-python-1.3.2/debian/patches/series dbus-python-1.3.2/debian/patches/series
--- dbus-python-1.3.2/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ dbus-python-1.3.2/debian/patches/series	2022-11-16 01:50:36.000000000 +0000
@@ -0,0 +1 @@
+fix-timeout-on-riscv64.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20221116/31582ef7/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list