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

Bug#207453: apache-common: /usr/share/apache/postinst.common: line 189: /dev/tty: No such device or address



On Sun, 28 Sep 2003, Steve Langasek wrote:

> > It is the only way to fix correctly the 2 RC bugs we have now. They are
> > mutually exclusive. You fix one the other is broken and viceversa.
>
> I'm not sure I understand why; it seems to me that the fix suggested in
> my previous message would handle both cases:
>
> if test -t; then
> 	if ! $apacheconfig "$@"< /dev/tty > /dev/tty; then
> 		[...]
> 	fi
> else
> 	if ! yes '' | $apacheconfig "$@"; then
> 		[...]
> 	fi
> fi

Yes it does for apache.. but there are hell a lot of modules that do the
use wrongly < /dev/tty > /dev/tty just because they read it from us.

This is a way to get rid of all the crap in one shot instead of keeping
workarounds here and there.

> Of course, using debconf is far more elegant, so if this is really only
> a week out, I'll stop distracting you with irrelevant kludges. :)

Take into account that the use of debconf will solve several other issues
including a better respect of admin customizations inside the
configurations. Modules will not be allowed to enable themself
automagically, we will get rid of all the problems related to the
interaction between .info files (that now requires only 2 lines and no
need of directives both in the .info and in the config - remember of php4
always commented out after an apacheconfig update?) and so on...

It wasn't an easy decision but it was the best way to take in order to
deliver a better apache for the next stable release.

Fabio

-- 
Our mission: make IPv6 the default IP protocol
"We are on a mission from God" - Elwood Blues

http://www.itojun.org/paper/itojun-nanog-200210-ipv6isp/mgp00004.html



Reply to: