Bug#214998: marked as done (apache: error with 'expr' in 'modules-config')
Your message dated Thu, 9 Oct 2003 22:48:04 +0100
with message-id <20031009214804.GT27861@parcelfarce.linux.theplanet.co.uk>
and subject line Bug#214998: apache: error with 'expr' in 'modules-config'
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Oct 2003 20:55:24 +0000
>From qef@laxan.com Thu Oct 09 15:55:22 2003
Return-path: <qef@laxan.com>
Received: from 213-162-110-47.geoffr995.adsl.metronet.co.uk (blacktooth.laxan.com) [213.162.110.47]
by master.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1A7hog-0001zL-00; Thu, 09 Oct 2003 15:55:22 -0500
Received: from qef by blacktooth.laxan.com with local (Exim 3.35 #1 (Debian))
id 1A7hq1-0004sx-00; Thu, 09 Oct 2003 21:56:45 +0100
From: Geoff Richards <qef@laxan.com>
Subject: apache: error with 'expr' in 'modules-config'
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10.1
Message-Id: <[🔎] E1A7hq1-0004sx-00@blacktooth.laxan.com>
Date: Thu, 09 Oct 2003 21:56:45 +0100
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-7.9 required=4.0
tests=HAS_PACKAGE,PATCH_UNIFIED_DIFF
autolearn=ham version=2.53-bugs.debian.org_2003_10_09
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_09 (1.174.2.15-2003-03-30-exp)
Package: apache
Version: 1.3.28-1
Severity: normal
Hi,
I get errors installing various Apache packages from unstable, with
symptoms like this:
Setting up libapache-mod-perl (1.28-1) ...
expr: syntax error
dpkg: error processing libapache-mod-perl (--install):
subprocess post-installation script returned error exit status 2
The problem is that "modules-config" is reading the output of "wc -l"
but getting caught out because of the spaces at the start of the line
in the output. This leads to $LAST being empty, so when 'expr' is run
it gets a bad expression. The following patch fixes the problem.
It's against the "apache-1.3.28" packge.
--- debian/modules-config Thu Oct 9 21:39:23 2003
+++ debian/modules-config Thu Oct 9 21:40:19 2003
@@ -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 | sed -e 's/^ *//' | cut -d " " -f 1`
DIFF=`expr $LAST - $FIRST`
head -n $FIRST $TMP > /etc/$FLA/httpd.conf.new
-- System Information
Debian Release: 3.0
Kernel Version: Linux blacktooth 2.4.20-qef-blacktooth #1 Wed Apr 16 22:09:45 BST 2003 i686 GNU/Linux
Versions of the packages apache depends on:
ii apache-common 1.3.28-1 Support files for all Apache webservers
ii debconf 1.2.35 Debian configuration management system
ii dpkg 1.10.15 Package maintenance system for Debian
ii libc6 2.3.2-7 GNU C Library: Shared libraries and Timezone
ii libdb4.1 4.1.25-9 Berkeley v4.1 Database Libraries [runtime]
ii libexpat1 1.95.6-4 XML parsing C library - runtime library
ii libmagic1 4.02-4 File type determination library using "magic
ii logrotate 3.5.9-8 Log rotation utility
ii mime-support 3.23-1 MIME files 'mime.types' & 'mailcap', and sup
ii perl 5.8.1-2 Larry Wall's Practical Extraction and Report
ii perl 5.8.1-2 Larry Wall's Practical Extraction and Report
^^^ (Provides virtual package perl5)
---------------------------------------
Received: (at 214998-done) by bugs.debian.org; 9 Oct 2003 21:48:08 +0000
>From willy@www.linux.org.uk Thu Oct 09 16:48:06 2003
Return-path: <willy@www.linux.org.uk>
Received: from parcelfarce.linux.theplanet.co.uk (www.linux.org.uk) [195.92.249.252]
by master.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1A7idh-0000xB-00; Thu, 09 Oct 2003 16:48:05 -0500
Received: from willy by www.linux.org.uk with local (Exim 4.22)
id 1A7idg-0000Yw-GX; Thu, 09 Oct 2003 22:48:04 +0100
Date: Thu, 9 Oct 2003 22:48:04 +0100
From: Matthew Wilcox <willy@debian.org>
To: Geoff Richards <qef@laxan.com>, 214998-done@bugs.debian.org
Subject: Re: Bug#214998: apache: error with 'expr' in 'modules-config'
Message-ID: <20031009214804.GT27861@parcelfarce.linux.theplanet.co.uk>
References: <[🔎] E1A7hq1-0004sx-00@blacktooth.laxan.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] E1A7hq1-0004sx-00@blacktooth.laxan.com>
User-Agent: Mutt/1.4.1i
Sender: <willy@www.linux.org.uk>
Delivered-To: 214998-done@bugs.debian.org
X-Spam-Status: No, hits=-6.7 required=4.0
tests=BAYES_30,EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT
version=2.53-bugs.debian.org_2003_10_09
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_09 (1.174.2.15-2003-03-30-exp)
On Thu, Oct 09, 2003 at 09:56:45PM +0100, Geoff Richards wrote:
> I get errors installing various Apache packages from unstable, with
> symptoms like this:
>
> Setting up libapache-mod-perl (1.28-1) ...
> expr: syntax error
This problem is fixed in -2, uploaded today.
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
Reply to: