Package: src:numatop Version: 2.5.1-1 Severity: important Tags: ftbfs trixie forky sid patch
Dear maintainer: I tried to build this package on a VM with only 1 CPU and it failed (see below). Full build log available here: https://people.debian.org/~sanvila/build-logs/202611/ This is very easy to reproduce by booting with GRUB_CMDLINE_LINUX="nr_cpus=1". Apparently the tests blindly assume that the building machine has more than one CPU, which may or may not be the case. The attached patch would be one possible way to fix this, but if it's considered too intrusive, a simpler approach would be to check for nproc in debian/rules and act accordingly (i.e. just skip the tests if nproc is 1). [ Note: I missed this package for a long time in my tests because it has "Architecture: linux-amd64", which my scripts have been ignoring until now... There are only a handful of packages using such string, and this is the only one having a ftbfs issue. ] Thanks. -------------------------------- FAIL: test/mgen.01.sh ===================== mbind: Invalid argument Failed to dependent read. FAIL test/mgen.01.sh (exit status: 255) FAIL: test/mgen.02.sh ===================== Failed to dependent read. FAIL test/mgen.02.sh (exit status: 255)
From: Santiago Vila <[email protected]> Subject: Skip mgen tests on unsupported NUMA topologies The tests bind the reader thread to CPU 1 and, for mgen.01, allocate the buffer on node 1. On hosts without them (buildds, containers) sched_setaffinity() fails, mgen exits 255 and dh_auto_test aborts. Exit with Automake's SKIP status (77) when the required CPU or node is missing. --- a/test/mgen.01.sh +++ b/test/mgen.01.sh @@ -1,2 +1,5 @@ #!/bin/sh +# LMA test: needs a second CPU on a second NUMA node. +[ "$(nproc)" -ge 2 ] && [ -d /sys/devices/system/node/node1 ] || exit 77 + exec ./mgen -a 1 -c 1 -t 10 --- a/test/mgen.02.sh +++ b/test/mgen.02.sh @@ -1,3 +1,5 @@ #!/bin/sh +# RMA test: needs a second CPU (node 0 always exists). +[ "$(nproc)" -ge 2 ] || exit 77 exec ./mgen -a 0 -c 1 -t 10

