Bug#214486: apache: modules-config has problems with cut in coreutils 5.0-5
> 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
Reply to: