Your message dated Fri, 11 Dec 2009 12:32:52 +0000
with message-id <e1nj4g0-0004go...@ries.debian.org>
and subject line Bug#560409: fixed in postgis 1.4.0-2
has caused the Debian Bug report #560409,
regarding postgis can't be purged if postgresql is not installed due to missing 
directory
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
560409: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560409
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: postgis
Usertags: origin-ubuntu lucid ubuntu-patch
Version: 1.3.6-2
Severity: normal
Tags: patch

This report has also been filed here: https://bugs.launchpad.net/bugs/392143

postgis can't be removed if postgresql is not installed due to missing
"/usr/lib/postgresql/8.3/lib" directory

:: VERSION ::
   postgis | 1.3.3-3 | intrepid/universe | source, amd64, i386
   postgis | 1.3.3-3 | jaunty/universe | source, amd64, i386
   postgis | 1.3.5-1 | karmic/universe | source, amd64, i386
   postgis | 1.3.6-2 | lucid/universe | source, amd64, i386

:: TEST CASE ::
Check that postgresql is not installed then
$ sudo apt-get install postgis
$ sudo apt-get remove --purge postgis

Removing postgis ...
Purging configuration files for postgis ...
find: `/usr/lib/postgresql/8.3/lib': No such file or directory
dpkg: error processing postgis (--purge):
 subprocess post-removal script returned error exit status 1

:: WORKAROUND ::
$ sudo rm /var/lib/dpkg/info/postgis.postrm
$ sudo apt-get remove --purge postgis


In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/postgis-generic.postrm.in : check if postgresql directory
exists before searching for postgis shared libs to purge (LP #392143)

We thought you might be interested in doing the same.

Thanks.
diff -u postgis-1.3.6/debian/control postgis-1.3.6/debian/control
--- postgis-1.3.6/debian/control
+++ postgis-1.3.6/debian/control
@@ -1,7 +1,8 @@
 Source: postgis
 Section: misc
 Priority: optional
-Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian GIS Project 
<pkg-grass-devel@lists.alioth.debian.org>
 Uploaders: Stephen Frost <sfr...@debian.org>, Fabio Tranchitella 
<kob...@debian.org>, Francesco Paolo Lovergine <fran...@debian.org>
 Build-Depends: debhelper (>= 5.0.0), autotools-dev, flex, bison, 
postgresql-server-dev-8.3, libgeos-dev, proj,
  libssl-dev, xsltproc, docbook, docbook-xsl, libpg-java, default-jdk, fastjar, 
libjts-java (>=1.7), dpatch
diff -u postgis-1.3.6/debian/postgis-generic.postrm.in 
postgis-1.3.6/debian/postgis-generic.postrm.in
--- postgis-1.3.6/debian/postgis-generic.postrm.in
+++ postgis-1.3.6/debian/postgis-generic.postrm.in
@@ -4,7 +4,8 @@
 
 # Removes all postgis shared libs links
 if [ "$1" = "purge" ]; then
-     find /usr/lib/postgresql/@POSTGRES_VERSION@/lib -type f -name 
"liblwgeom.so.*" -delete
+        [ -d /usr/lib/postgresql/@POSTGRES_VERSION@/lib ] && \
+                find /usr/lib/postgresql/@POSTGRES_VERSION@/lib -type f -name 
"liblwgeom.so.*" -delete
 fi
 
 #DEBHELPER#
diff -u postgis-1.3.6/debian/changelog postgis-1.3.6/debian/changelog
--- postgis-1.3.6/debian/changelog
+++ postgis-1.3.6/debian/changelog
@@ -1,3 +1,10 @@
+postgis (1.3.6-2ubuntu1) lucid; urgency=low
+
+  * debian/postgis-generic.postrm.in : check if postgresql directory exists 
+    before searching for postgis shared libs to purge (LP #392143)
+
+ -- Jean-Baptiste Lallement <jeanbaptiste.lallem...@gmail.com>  Thu, 10 Dec 
2009 23:40:18 +0100
+
 postgis (1.3.6-2) unstable; urgency=high
 
   * Fixed wrong obsolete version reference in debian/rules.

--- End Message ---
--- Begin Message ---
Source: postgis
Source-Version: 1.4.0-2

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

libpostgis-java_1.4.0-2_all.deb
  to main/p/postgis/libpostgis-java_1.4.0-2_all.deb
postgis_1.4.0-2.diff.gz
  to main/p/postgis/postgis_1.4.0-2.diff.gz
postgis_1.4.0-2.dsc
  to main/p/postgis/postgis_1.4.0-2.dsc
postgis_1.4.0-2_i386.deb
  to main/p/postgis/postgis_1.4.0-2_i386.deb
postgresql-8.4-postgis_1.4.0-2_i386.deb
  to main/p/postgis/postgresql-8.4-postgis_1.4.0-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 560...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Francesco Paolo Lovergine <fran...@debian.org> (supplier of updated postgis 
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 ftpmas...@debian.org)


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

Format: 1.8
Date: Fri, 11 Dec 2009 13:10:34 +0100
Source: postgis
Binary: postgresql-8.4-postgis postgis libpostgis-java
Architecture: source i386 all
Version: 1.4.0-2
Distribution: unstable
Urgency: low
Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
Changed-By: Francesco Paolo Lovergine <fran...@debian.org>
Description: 
 libpostgis-java - geographic objects support for PostgreSQL -- JDBC support
 postgis    - geographic objects support for PostgreSQL -- common files
 postgresql-8.4-postgis - geographic objects support for PostgreSQL 8.4
Closes: 559587 560409
Changes: 
 postgis (1.4.0-2) unstable; urgency=low
 .
   * Upload to unstable.
   * Better parameterized debian/rules against postgis $(VERSION).
   * Added dblatex and libcunit1-dev among build-deps.
   * Added postgis_comments.sql to contrib/ SQL templates.
   * Dropping 8.3 support, no more supported for squeeze.
     (closes: #559587)
   * Do not stop on error in postrm if the target dir does not exist.
     (closes: #560409)
Checksums-Sha1: 
 aef713b986ce827669d0d55bf1183b67778b44b0 1525 postgis_1.4.0-2.dsc
 0f5f2aa0e1bb41585b7e69addd7de48231b03464 11781 postgis_1.4.0-2.diff.gz
 102dc7234841da4b1175511e770d76b212c13e9c 545942 
postgresql-8.4-postgis_1.4.0-2_i386.deb
 3aee8eae60f2867afe9275be6dc2c72410b2bf2f 425812 postgis_1.4.0-2_i386.deb
 82a2fab480eb33b64410d6ff6305359a32313c0d 349278 libpostgis-java_1.4.0-2_all.deb
Checksums-Sha256: 
 d53480183a281e8bef1980c4c4215da043c1df936c870e1922257a7e976f2867 1525 
postgis_1.4.0-2.dsc
 92ed7a7b7500ff65ab9ce8acfc2c1eca52e9692eb4c3585fc8395d8600181e6e 11781 
postgis_1.4.0-2.diff.gz
 e4a89b8291c8aac39fc717c1fdeb88ece647e552445cfc4ae673e51eb3ae0514 545942 
postgresql-8.4-postgis_1.4.0-2_i386.deb
 7ee3ffdb0c0e4536ebbb43b249bf9b96cec2ea69af1e751fecc818ed884dea88 425812 
postgis_1.4.0-2_i386.deb
 0f5b85ed891f7dc762ae5750af37b9e9ee1b91c7c335932e943513a4b7a835ce 349278 
libpostgis-java_1.4.0-2_all.deb
Files: 
 daf9f89bd94985bc44c6bf53908738c6 1525 misc optional postgis_1.4.0-2.dsc
 29dbd568c7997a6cc97c1de165e5aa7d 11781 misc optional postgis_1.4.0-2.diff.gz
 5f941a91f4b483e0d848ab8c80683784 545942 misc optional 
postgresql-8.4-postgis_1.4.0-2_i386.deb
 778b7ac4306dbcf0607601f478f6eae4 425812 misc optional postgis_1.4.0-2_i386.deb
 720bafa2f98e9640b4fe2b022637a2b0 349278 science optional 
libpostgis-java_1.4.0-2_all.deb

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

iEYEARECAAYFAksiOMEACgkQpFNRmenyx0dFVQCg9AoNOD0LMHdANqxyszNqN7OZ
iwIAoMxNb3YH+MT/8gz5bYnDDvlN8Z5e
=OxGV
-----END PGP SIGNATURE-----



--- End Message ---
_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to