[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#894987: libtommath: FBTFS in riscv64: Please increase the time for timeout of "testme.sh"



Source: libtommath
Version: 1.0.1-1
Severity: normal
Tags: patch
User: debian-riscv@lists.debian.org
Usertags: riscv64

Hello,

The version of the package currently FBTFS on the riscv64 port, due to
insufficient time for timeout when running testme.sh (it's running under
qemu-system VMs at the moment):

  https://buildd.debian.org/status/fetch.php?pkg=libtommath&arch=riscv64&ver=1.0.1-1&stamp=1522960928&raw=0

  ...
  echo "running auto_test"
  running auto_test
  # this script runs "make clean" so it cannot be run after build
  /bin/bash testme.sh
  uname=Linux rv-mit-04 4.15.0_riscv-linux-4.15_2b0aa1de4+ #1 SMP Wed Mar 28 12:36:27 UTC 2018 riscv64 GNU/Linux
  gcc=7
  Compile gcc 
  Run test gcc 
  error 124 while running tests
  assuming timeout while running test - continue
  1 tests timed out
  make[1]: *** [debian/rules:26: override_dh_auto_build] Error 1


I tried with this simple change and it works (it took less than 6 minutes for
sure, but I wasn't looking all the time, setting 900 for safe measure):

  +       sed -i '/timeout --foreground 90/ s/ 90/ 900/g' testme.sh
          /bin/bash testme.sh

  (I set +patch tag because a fix is provided, but if you prefer a more formal
  patch please tell me)


I think that it would be nice if you could increase the timeout, so other ports
in the future don't find themselves in the same situation, if forced to use
qemu-system or some other reason that makes them slow.

Failing in 5, 10 or 15 minutes is not too long to wait IMO, and when it works in
faster architectures, there's no penalty for them.


Thanks and cheers.
--
Manuel A. Fernandez Montecelo <mafm@debian.org>


Reply to: