Your message dated Thu, 27 Oct 2005 21:02:14 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#334967: fixed in postgresql-8.0 8.0.4-2
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 334967-close) by bugs.debian.org; 28 Oct 2005 04:08:05 +0000
>From [EMAIL PROTECTED] Thu Oct 27 21:08:05 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
id 1EVLRW-0007CV-00; Thu, 27 Oct 2005 21:02:14 -0700
From: Martin Pitt <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#334967: fixed in postgresql-8.0 8.0.4-2
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Thu, 27 Oct 2005 21:02:14 -0700
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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Source: postgresql-8.0
Source-Version: 8.0.4-2
We believe that the bug you reported is fixed in the latest version of
postgresql-8.0, which is due to be installed in the Debian FTP archive:
libecpg-compat2_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/libecpg-compat2_8.0.4-2_i386.deb
libecpg-dev_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/libecpg-dev_8.0.4-2_i386.deb
libecpg5_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/libecpg5_8.0.4-2_i386.deb
libpgtypes2_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/libpgtypes2_8.0.4-2_i386.deb
libpq-dev_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/libpq-dev_8.0.4-2_i386.deb
libpq4_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/libpq4_8.0.4-2_i386.deb
postgresql-8.0_8.0.4-2.diff.gz
to pool/main/p/postgresql-8.0/postgresql-8.0_8.0.4-2.diff.gz
postgresql-8.0_8.0.4-2.dsc
to pool/main/p/postgresql-8.0/postgresql-8.0_8.0.4-2.dsc
postgresql-8.0_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/postgresql-8.0_8.0.4-2_i386.deb
postgresql-client-8.0_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/postgresql-client-8.0_8.0.4-2_i386.deb
postgresql-contrib-8.0_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/postgresql-contrib-8.0_8.0.4-2_i386.deb
postgresql-doc-8.0_8.0.4-2_all.deb
to pool/main/p/postgresql-8.0/postgresql-doc-8.0_8.0.4-2_all.deb
postgresql-plperl-8.0_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/postgresql-plperl-8.0_8.0.4-2_i386.deb
postgresql-plpython-8.0_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/postgresql-plpython-8.0_8.0.4-2_i386.deb
postgresql-pltcl-8.0_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/postgresql-pltcl-8.0_8.0.4-2_i386.deb
postgresql-server-dev-8.0_8.0.4-2_i386.deb
to pool/main/p/postgresql-8.0/postgresql-server-dev-8.0_8.0.4-2_i386.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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Martin Pitt <[EMAIL PROTECTED]> (supplier of updated postgresql-8.0 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 [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 26 Oct 2005 20:14:53 +0100
Source: postgresql-8.0
Binary: postgresql-client-8.0 postgresql-plperl-8.0 postgresql-doc-8.0
postgresql-pltcl-8.0 libpgtypes2 libpq-dev libpq4 postgresql-plpython-8.0
postgresql-contrib-8.0 postgresql-server-dev-8.0 libecpg5 libecpg-compat2
postgresql-8.0 libecpg-dev
Architecture: source i386 all
Version: 8.0.4-2
Distribution: unstable
Urgency: low
Maintainer: Martin Pitt <[EMAIL PROTECTED]>
Changed-By: Martin Pitt <[EMAIL PROTECTED]>
Description:
libecpg-compat2 - older version of run-time library for ECPG programs
libecpg-dev - development files for ECPG (Embedded PostgreSQL for C)
libecpg5 - run-time library for ECPG programs
libpgtypes2 - shared library libpgtypes for PostgreSQL 8.0
libpq-dev - header files for libpq4 (PostgreSQL library)
libpq4 - PostgreSQL C client library
postgresql-8.0 - object-relational SQL database, version 8.0 server
postgresql-client-8.0 - front-end programs for PostgreSQL 8.0
postgresql-contrib-8.0 - additional facilities for PostgreSQL
postgresql-doc-8.0 - documentation for the PostgreSQL database management
system
postgresql-plperl-8.0 - PL/Perl procedural language for PostgreSQL 8.0
postgresql-plpython-8.0 - PL/Python procedural language for PostgreSQL 8.0
postgresql-pltcl-8.0 - PL/TCL procedural language for PostgreSQL 8.0
postgresql-server-dev-8.0 - development files for PostgreSQL 8.0 server-side
programming
Closes: 333276 333854 334967
Changes:
postgresql-8.0 (8.0.4-2) unstable; urgency=low
.
* debian/postgresql-8.0.postrm: clean_dir(): Ensure that directory is not a
symbolic link before attempting to rmdir it. Closes: #334967
* Add debian/patches/08-pg_group-update.patch:
- Properly update pg_group when adding users. Thanks to Dennis Vshivkov.
- Closes: #333854
* Clean up the installation path ./configure arguments and make pg_config
report the correct libdir.
- debian/rules: Use default libdir /usr/lib.
- Add debian/patches/14-pkglibdir.patch: Set pkglibdir to
/usr/lib/postgresql/8.0/lib instead of /usr/lib/postgresql.
- Adapt debian/*.install.
- Closes: #333276
Files:
c85ddaaa24e15411a9743054f8c4c864 1134 misc optional postgresql-8.0_8.0.4-2.dsc
1a0ab10b7eee8ddd942e41421552f06e 20804 misc optional
postgresql-8.0_8.0.4-2.diff.gz
513ba7322c427790412958f6d71ae0a5 1271660 doc optional
postgresql-doc-8.0_8.0.4-2_all.deb
2cd608c30572e5a0a79850b091ca5ff6 3977952 misc optional
postgresql-8.0_8.0.4-2_i386.deb
9738cea2cbedd9db2ae78a4d6a1c31b3 1162078 misc optional
postgresql-client-8.0_8.0.4-2_i386.deb
b734d548e32563db1f3e20d02d3b9bd7 161796 libdevel optional
libpq-dev_8.0.4-2_i386.deb
e759ae8201c35c30e2fcf6575058fa24 430338 libdevel optional
postgresql-server-dev-8.0_8.0.4-2_i386.deb
a2e2fb9889d07bdfe2016d3385c0f3b4 118888 libs optional libpq4_8.0.4-2_i386.deb
bffdbeec2f0be09292515462a7de6a4e 34044 libs optional libecpg5_8.0.4-2_i386.deb
aa45b854d6094f1314e888599d4e8889 194506 libdevel optional
libecpg-dev_8.0.4-2_i386.deb
bd9c8a916906a520be923f0285cda81c 15986 libs optional
libecpg-compat2_8.0.4-2_i386.deb
8b9ec5f7ace808b08cb8a64d850a28b9 37598 libs optional
libpgtypes2_8.0.4-2_i386.deb
9ed4af780af332e210bad90f79264e6c 494700 misc optional
postgresql-contrib-8.0_8.0.4-2_i386.deb
ebee917098c66d73e303e812982f834b 29432 misc optional
postgresql-plperl-8.0_8.0.4-2_i386.deb
2182b43d056223ba7a66183388fee9c4 25216 misc optional
postgresql-plpython-8.0_8.0.4-2_i386.deb
a5b8bcbe00f1a8b99189931ba6b463fc 26668 misc optional
postgresql-pltcl-8.0_8.0.4-2_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDYZ/LDecnbV4Fd/IRAuUbAJ4grmjG6TSlAvQ8LeVgEnaj5mdhywCeIgS1
zTdYm2V8Sp7F9pYA4yO16LA=
=gwYl
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]