[Debian-med-packaging] Samtools fails to build on several architectures [noreply at buildd.debian.org: failed i386 build of samtools 1.0-1]

Jakub Wilk jwilk at debian.org
Tue Sep 23 20:13:28 UTC 2014


* Andreas Tille <andreas at 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
-------------- next part --------------
#!/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:])


More information about the Debian-med-packaging mailing list