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

Bug#214486: apache: modules-config has problems with cut in coreutils 5.0-5



Hi Anton,
	yes... we can't rely on anything anyway, i have the fix already
applied since a while.. leave this bug closed since there are other 3/4
duplicates anyway

Thanks
Fabio

On Thu, 9 Oct 2003 anton@debian.org wrote:

> > Well this clearly shows a problem in coreutils and not in apache. I am
> > closing this bug.
> >
> > Fabio
>
> It is not 'cut' that has changed, it is 'wc'. The issue is that
> the output of 'wc' seems to have had cosmetic formatting changes. I don't
> think apache should rely on how 'wc' indents its output. IMHO this is
> an apache packaging bug.
>
> Best regards,
> Anton Gyllenberg <anton@iki.fi>
>
> Here is an easy but untested fix:
>
> --- modules-config.orig 2003-10-09 15:00:01.000000000 +0300
> +++ modules-config      2003-10-09 15:04:04.000000000 +0300
> @@ -116,7 +116,7 @@
>                 # splitting the conf to insert the Include
>                 FIRST=`grep -n "# Please keep this LoadModule: line here" $TMP \
>                 | cut -d ":" -f 1`
> -               LAST=`wc -l $TMP | cut -d " " -f 1`
> +               LAST=`wc -l < $TMP`
>                 DIFF=`expr $LAST - $FIRST`
>
>                 head -n $FIRST $TMP > /etc/$FLA/httpd.conf.new
>
>
>

-- 
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: