* Andreas Tille <andr...@an3as.eu>, 2014-09-23, 14:58:
Any idea how to tell sbuild to fake a terminal?
You can't "tell sbuild" to do that. But you can redirect /dev/stdin to a pseudo-terminal yourself, somewhere in debian/rules. I've attached a small Python script that implements such redirection. Beware that it was only lightly tested, so it might have unintended side-effects.
$ ./stdinpty samtools stats < /dev/null | head -n1 About: The program collects statistics from BAM files. The output can be visualized using plot-bamstats. But of course ideally, this should be fixed upstream somehow. -- Jakub Wilk
#!/usr/bin/python import os import pty import sys master_fd, slave_fd = pty.openpty() os.close(pty.STDIN_FILENO) os.dup2(slave_fd, pty.STDIN_FILENO) os.execvp(sys.argv[1], sys.argv[1:])