Bug#206684: debian-policy: Proposal for going ahead with mandatory debconf use for prompting
Steve Langasek <vorlon@debian.org> writes:
> Last I knew, policy said packages *were* allowed to depend on the
> availability of /dev/tty during configuration, even if they're not
> supposed to be doing direct prompting by way of it. This seems to have
> been changed, but isn't mentioned in the policy upgrading-checklist?
It's still there:
6.3. Controlling terminal for maintainer scripts
------------------------------------------------
The maintainer scripts are guaranteed to run with a controlling
terminal and can interact with the user. Because these scripts may be
executed with standard output redirected into a pipe for logging
purposes, Perl scripts should set unbuffered output by setting `$|=1'
so that the output is printed immediately rather than being buffered.
This seems to me to somewhat contradict section 3.9.1. The unbuffered
output bit also seems rather randomly placed here.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: