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

Bug#280527: marked as done (apache2-common: grep + set -e = exit 1)



Your message dated Wed, 10 Nov 2004 05:47:07 -0500
with message-id <E1CRq0J-0003zy-00@newraff.debian.org>
and subject line Bug#280527: fixed in apache2 2.0.52-3
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; 10 Nov 2004 00:37:07 +0000
>From joshk@triplehelix.org Tue Nov 09 16:37:07 2004
Return-path: <joshk@triplehelix.org>
Received: from smtp803.mail.sc5.yahoo.com [66.163.168.182] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1CRgTz-0006w7-00; Tue, 09 Nov 2004 16:37:07 -0800
Received: from unknown (HELO triplehelix.org) (edkwan@sbcglobal.net@68.126.212.18 with login)
  by smtp803.mail.sc5.yahoo.com with SMTP; 10 Nov 2004 00:37:06 -0000
Received: from darjeeling (darjeeling.wifi.triplehelix.org [192.168.0.7])
	by triplehelix.org (Postfix) with ESMTP id 879E32A9542;
	Tue,  9 Nov 2004 16:37:04 -0800 (PST)
Received: from joshk by darjeeling with local (Exim 3.36 #1 (Debian))
	id 1CRgTv-00008S-00; Tue, 09 Nov 2004 16:37:03 -0800
Content-Type: multipart/mixed; boundary="===============1952108223=="
MIME-Version: 1.0
From: Joshua Kwan <joshk@triplehelix.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apache2-common: grep + set -e = exit 1
X-Mailer: reportbug 3.2
Date: Tue, 09 Nov 2004 16:37:02 -0800
Message-Id: <[🔎] E1CRgTv-00008S-00@darjeeling>
Sender: Joshua Kwan <joshk@darjeeling.triplehelix.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============1952108223==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: apache2-common
Version: 2.0.52-2
Severity: grave
Tags: patch

Setting up apache2-common (2.0.52-2) ...
+ '[' configure '!=' configure ']'
+ NETSTAT=/bin/netstat
+ '[' '!' -f /etc/apache2/ports.conf ']'
+ echo '# 0 = start on boot; 1 = don'\''t start on boot'
++ /bin/netstat -lnt
++ grep 'no support for .AF INET (tcp)'
+ NO_AF_INET=
dpkg: error processing apache2-common (--configure):
 subprocess post-installation script returned error exit status 1

I quote:

	NO_AF_INET=`$NETSTAT -lnt 2>&1 | grep 'no support for .AF INET(tcp)'`
	NO_PORT_80=`$NETSTAT -lnt | awk '{print $4}' | grep ':80$'`

This causes the postinst to fail if either of the greps exits 1.
(see #276722 for an identical bug against discover1.)

A possible patch is attached.

Thanks,
Josh

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (499, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-bk7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)

Versions of packages apache2-common depends on:
ii  debconf                     1.4.40       Debian configuration management sy
ii  debianutils                 2.10.3       Miscellaneous utilities specific t
ii  libapr0                     2.0.52-2     The Apache Portable Runtime
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-17    Berkeley v4.2 Database Libraries [
ii  libexpat1                   1.95.8-1     XML parsing C library - runtime li
ii  libldap2                    2.1.30-3     OpenLDAP libraries
ii  libmagic1                   4.10-3       File type determination library us
ii  libssl0.9.7                 0.9.7d-5     SSL shared libraries
ii  mime-support                3.28-1       MIME files 'mime.types' & 'mailcap
ii  net-tools                   1.60-10      The NET-3 networking toolkit
ii  openssl                     0.9.7d-5     Secure Socket Layer (SSL) binary a
pn  ssl-cert                                 Not found.
ii  zlib1g                      1:1.2.2-3    compression library - runtime

--===============1952108223==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="apache2-wrap-checks-with-if.patch"

--- apache2-2.0.52/debian/apache2-common.postinst	2004-11-09 16:22:37.000000000 -0800
+++ apache2-common.postinst	2004-11-09 16:34:45.000000000 -0800
@@ -13,8 +13,12 @@
 #This desperately needs debconf, soon.
 if [ ! -f /etc/apache2/ports.conf ]; then
 	echo "# 0 = start on boot; 1 = don't start on boot" > /etc/default/apache2
-	NO_AF_INET=`$NETSTAT -lnt 2>&1 | grep 'no support for .AF INET (tcp)'`
-	NO_PORT_80=`$NETSTAT -lnt | awk '{print $4}' | grep ':80$'`
+	if $NETSTAT -lnt 2>&1 | grep -q 'no support for .AF INET (tcp)'; then
+		NO_AF_INET=1
+	fi
+	if $NETSTAT -lnt | awk '{print $4}' | grep -q ':80$'; then
+		NO_PORT_80=1
+	fi
 	if [ -n "$NO_AF_INET" -o -n "$NO_PORT_80" ]; then
 		echo "NO_START=1" >> /etc/default/apache2
 		echo "Listen 80" >> /etc/apache2/ports.conf

--===============1952108223==--

---------------------------------------
Received: (at 280527-close) by bugs.debian.org; 10 Nov 2004 10:53:01 +0000
>From katie@ftp-master.debian.org Wed Nov 10 02:53:01 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CRq61-0003l7-00; Wed, 10 Nov 2004 02:53:01 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1CRq0J-0003zy-00; Wed, 10 Nov 2004 05:47:07 -0500
From: Adam Conrad <adconrad@0c3.net>
To: 280527-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#280527: fixed in apache2 2.0.52-3
Message-Id: <E1CRq0J-0003zy-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Wed, 10 Nov 2004 05:47:07 -0500
Delivered-To: 280527-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 4

Source: apache2
Source-Version: 2.0.52-3

We believe that the bug you reported is fixed in the latest version of
apache2, which is due to be installed in the Debian FTP archive:

apache2-common_2.0.52-3_powerpc.deb
  to pool/main/a/apache2/apache2-common_2.0.52-3_powerpc.deb
apache2-doc_2.0.52-3_all.deb
  to pool/main/a/apache2/apache2-doc_2.0.52-3_all.deb
apache2-mpm-perchild_2.0.52-3_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.52-3_powerpc.deb
apache2-mpm-prefork_2.0.52-3_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.52-3_powerpc.deb
apache2-mpm-threadpool_2.0.52-3_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-threadpool_2.0.52-3_powerpc.deb
apache2-mpm-worker_2.0.52-3_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.52-3_powerpc.deb
apache2-prefork-dev_2.0.52-3_all.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.52-3_all.deb
apache2-threaded-dev_2.0.52-3_all.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.52-3_all.deb
apache2_2.0.52-3.diff.gz
  to pool/main/a/apache2/apache2_2.0.52-3.diff.gz
apache2_2.0.52-3.dsc
  to pool/main/a/apache2/apache2_2.0.52-3.dsc
apache2_2.0.52-3_powerpc.deb
  to pool/main/a/apache2/apache2_2.0.52-3_powerpc.deb
libapr0-dev_2.0.52-3_powerpc.deb
  to pool/main/a/apache2/libapr0-dev_2.0.52-3_powerpc.deb
libapr0_2.0.52-3_powerpc.deb
  to pool/main/a/apache2/libapr0_2.0.52-3_powerpc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 280527@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Conrad <adconrad@0c3.net> (supplier of updated apache2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 10 Nov 2004 01:32:16 -0700
Source: apache2
Binary: apache2 apache2-prefork-dev apache2-mpm-prefork apache2-doc libapr0-dev apache2-mpm-threadpool apache2-mpm-worker libapr0 apache2-threaded-dev apache2-common apache2-mpm-perchild
Architecture: source all powerpc
Version: 2.0.52-3
Distribution: unstable
Urgency: high
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Adam Conrad <adconrad@0c3.net>
Description: 
 apache2    - Next generation, scalable, extendable web server
 apache2-common - Next generation, scalable, extendable web server
 apache2-doc - Documentation for apache2
 apache2-mpm-perchild - Experimental High speed perchild threaded model for Apache2
 apache2-mpm-prefork - Traditional model for Apache2
 apache2-mpm-threadpool - Experimental High speed thread pool model for Apache2
 apache2-mpm-worker - High speed threaded model for Apache2
 apache2-prefork-dev - Development headers for apache2
 apache2-threaded-dev - Development headers for apache2
 libapr0    - The Apache Portable Runtime
 libapr0-dev - Development headers for libapr
Closes: 263511 273759 279875 280527
Changes: 
 apache2 (2.0.52-3) unstable; urgency=high
 .
   * Brown paper bag release to fix apache2-common's postinst, by judiciously
     sprinkling ||true in a couple of needed places (closes: #280527)
   * While hunting for unclean uses of VAR=`command` in the package, found
     the cause of the "can't purge with broken config" bugs and fixed that
     too with yet another ||true (closes: #263511, #273759, #279875)
Files: 
 3f32639ab0feda48e175728e16dc0f54 1132 net optional apache2_2.0.52-3.dsc
 127662ebaefb5fb50c33f06e5fab4d58 102077 net optional apache2_2.0.52-3.diff.gz
 80428e5a5377f905eb55c994f1db25aa 3525626 doc optional apache2-doc_2.0.52-3_all.deb
 da940aaade24a08dbed61517dd42052b 165112 devel optional apache2-prefork-dev_2.0.52-3_all.deb
 505916d2ad14ee598b69d0350a273c70 165860 devel optional apache2-threaded-dev_2.0.52-3_all.deb
 cc0f1ea4565adc3d6bddd1332c48afe8 914226 net optional apache2-common_2.0.52-3_powerpc.deb
 2a9e208100f59a028279d99afbb37c2a 223556 net optional apache2-mpm-worker_2.0.52-3_powerpc.deb
 1ffe11468094617575033a49ee47515c 222956 net optional apache2-mpm-threadpool_2.0.52-3_powerpc.deb
 c6e7630d4e9950bd8355f72085f0fb9d 224812 net optional apache2-mpm-perchild_2.0.52-3_powerpc.deb
 80baa10e965733021306f53b2363f9ea 219686 net optional apache2-mpm-prefork_2.0.52-3_powerpc.deb
 b3ff4d8437796fc1153d6cb0cf715a19 132084 net optional libapr0_2.0.52-3_powerpc.deb
 721dfc2bd77dbfa1d26d92deaaed6c9f 269598 libdevel optional libapr0-dev_2.0.52-3_powerpc.deb
 afebd4c5181305759931a589960e60dd 31176 web optional apache2_2.0.52-3_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBkexjvjztR8bOoMkRAroEAKCmreNHO/QVBZPbOkT7TuG3dt18FACg9rTd
ch3JyvnXzrKLvS8HB1Yu+JE=
=v720
-----END PGP SIGNATURE-----



Reply to: