Your message dated Mon, 24 Oct 2005 17:36:08 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Fixed in upload of postgresql-8.1 8.0+8.1beta4-1 to
experimental
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; 14 Oct 2005 08:45:22 +0000
>From [EMAIL PROTECTED] Fri Oct 14 01:45:22 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mail.t-systems.cz [212.67.76.249]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EQLBq-0005kD-00; Fri, 14 Oct 2005 01:45:22 -0700
Received: from mefisto.t-systems.cz (faust.t-systems.cz [10.246.110.12])
by mail.t-systems.cz (Postfix) with ESMTP id 5D62A8A21E
for <[EMAIL PROTECTED]>; Fri, 14 Oct 2005 10:45:16 +0200 (CEST)
Received: from enigma ([10.246.109.32]) by mefisto.t-systems.cz with Microsoft
SMTPSVC(6.0.3790.211);
Fri, 14 Oct 2005 10:45:16 +0200
Date: Fri, 14 Oct 2005 10:45:15 +0200 (CEST)
From: Petr Salinger <[EMAIL PROTECTED]>
X-X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: postgresql-8.1: "postrm purge" fails when /var/lib/postgresql is
symbolic link
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-OriginalArrivalTime: 14 Oct 2005 08:45:16.0209 (UTC)
FILETIME=[9966DA10:01C5D09B]
X-T-Systems_Czech-MailScanner: Found to be clean
X-T-Systems_Czech-MailScanner-SpamCheck: not spam (whitelisted),
SpamAssassin (score=-5.857, required 5, autolearn=not spam,
ALL_TRUSTED -3.30, AWL 0.04, BAYES_00 -2.60)
X-MailScanner-From: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: postgresql-8.1
Version: 8.0+8.1beta3-1
Severity: minor
Hi.
Today I want to drop 8.1beta2 and install 8.1beta3.
But "apt-get remove --purge postgresql-8.1 postgresql-client-8.1" failed.
Our setup (before purge):
$ ls -al /var/lib/postgresql
lrwxr-xr-x 1 root root 10 May 25 15:06 /var/lib/postgresql -> /db/pgdata
$ ls -al /var/lib/postgresql/
total 28
drwxr-xr-x 4 postgres postgres 4096 Oct 14 10:06 .
drwxr-xr-x 7 root root 4096 Jul 13 15:27 ..
-rw------- 1 postgres postgres 98 Oct 11 16:45 .Xauthority
-rw------- 1 postgres postgres 1531 Oct 14 10:15 .bash_history
-rw------- 1 postgres postgres 1565 Oct 14 10:08 .psql_history
drwxr-xr-x 3 postgres postgres 4096 May 25 14:03 8.0
drwxr-xr-x 3 postgres postgres 4096 Oct 14 10:06 8.1
The problem is in clean_dir()
clean_dir() {
if [ -d "$1" ]; then
rmdir --ignore-fail-on-non-empty "$1"
fi
}
because test -d is sucessfull:
$ test -L /var/lib/postgresql ; echo $?
0
$ test -d /var/lib/postgresql ; echo $?
0
I don't know whether it is expected behaviour of test
(in fact, I am surprised), but fix in postrm should be easy:
[ -d "$1" -a ! -L "$1" ]
Affected is also postgresql-8.0 and probably postgresql-7.4
Regards
Petr
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.12-eta
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages postgresql-8.1 depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libcomerr2 1.37-2sarge1 common error description library
ii libkrb53 1.3.6-2sarge2 MIT Kerberos runtime libraries
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libpq4 8.0.4-1ts PostgreSQL C client library
ii libreadline5 5.0-10 GNU readline and history libraries
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii postgresql-client-8.1 8.0+8.1beta3-1ts1 front-end programs for PostgreSQL
ii postgresql-common 27 manager for PostgreSQL database cl
ii zlib1g 1:1.2.2-4.sarge.2 compression library - runtime
-- no debconf information
---------------------------------------
Received: (at 333867-done) by bugs.debian.org; 24 Oct 2005 15:36:40 +0000
>From [EMAIL PROTECTED] Mon Oct 24 08:36:40 2005
Return-path: <[EMAIL PROTECTED]>
Received: from box79162.elkhouse.de [213.9.79.162]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EU4NL-0003SK-00; Mon, 24 Oct 2005 08:36:40 -0700
Received: by box79162.elkhouse.de (Postfix, from userid 1000)
id 3626825FC94; Mon, 24 Oct 2005 17:36:08 +0200 (CEST)
Date: Mon, 24 Oct 2005 17:36:08 +0200
From: Martin Pitt <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Fixed in upload of postgresql-8.1 8.0+8.1beta4-1 to experimental
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.9i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
Version: 8.0+8.1beta4-1
Martin Pitt [2005-10-24 8:17 -0700]:
> tag 333867 + fixed-in-experimental
>
> quit
>
> This message was generated automatically in response to an
> upload to the experimental distribution. The .changes file follows.
This bug only affects experimental, thus can be closed completely now.
> postgresql-8.1 (8.0+8.1beta4-1) experimental; urgency=low
> .
> * Upgrade to 8.1beta4 release.
> * Adopt patches to new upstream version:
> - 09-relax-sslkey-permscheck.patch
> * debian/postgresql-8.1.postrm: clean_dir(): Ensure that directory is not a
> symbolic link before attempting to rmdir it. Closes: #333867
> * debian/rules: Remove obsolete --disable-spinlocks build option for mips.
--
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntulinux.org
Debian Developer http://www.debian.org
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]