Your message dated Tue, 19 Nov 2019 11:59:34 +0100
with message-id <20191119105934.ga22...@msg.df7cb.de>
and subject line Re: Bug#935759: postgresql-9.4: fails to purge: RET=10 
postgresql-9.4/postrm_purge_data doesn't exist
has caused the Debian Bug report #935759,
regarding postgresql-9.4: fails to purge: RET=10 
postgresql-9.4/postrm_purge_data doesn't exist
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.)


-- 
935759: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935759
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: postgresql-9.4
Version: 9.4.24-0+deb8u1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to purge.
According to policy 7.2 you cannot rely on the depends being available
during purge, only the essential packages are available for sure.

>From the attached log (scroll to the bottom...):

  Removing postgresql-9.4 (9.4.24-0+deb8u1) ...
  Purging configuration files for postgresql-9.4 (9.4.24-0+deb8u1) ...
  + set -e
  + VERSION=9.4
  + [ purge = purge ]
  + [ -d /etc/postgresql/9.4 ]
  + ls /etc/postgresql/9.4
  + [ main ]
  + [ -e /usr/share/debconf/confmodule ]
  + . /usr/share/debconf/confmodule
  + [ !  ]
  + PERL_DL_NONLAZY=1
  + export PERL_DL_NONLAZY
  + [  ]
  + exec /usr/share/debconf/frontend /var/lib/dpkg/info/postgresql-9.4.postrm 
purge
  + set -e
  + VERSION=9.4
  + [ purge = purge ]
  + [ -d /etc/postgresql/9.4 ]
  + ls /etc/postgresql/9.4
  + [ main ]
  + [ -e /usr/share/debconf/confmodule ]
  + . /usr/share/debconf/confmodule
  + [ ! 1 ]
  + [ -z  ]
  + exec
  + [  ]
  + exec
  + DEBCONF_REDIR=1
  + export DEBCONF_REDIR
  + purge_package
  + [ -e /usr/share/debconf/confmodule ]
  + db_set postgresql-9.4/postrm_purge_data true
  + _db_cmd SET postgresql-9.4/postrm_purge_data true
  + _db_internal_IFS=

  + IFS=
  + printf %s\n SET postgresql-9.4/postrm_purge_data true
  + IFS=

  + IFS=
   read -r _db_internal_line
  + RET=10 postgresql-9.4/postrm_purge_data doesn't exist
  + return 10
  dpkg: error processing package postgresql-9.4 (--purge):
   subprocess installed post-removal script returned error exit status 10
  Errors were encountered while processing:
   postgresql-9.4

The template does not get registered because postinst does not load
/usr/share/debconf/confmodule.
In buster this is done by /usr/share/postgresql-common/maintscripts-functions
but in jessie the postinst has to do it manually

cheers,

Andreas

Attachment: postgresql-9.4_9.4.24-0+deb8u1.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Version: 9.4.25-0+deb8u1

Re: Andreas Beckmann 2019-08-26 
<3ce894f6-d6cb-7959-73ee-1e406212d...@debian.org>
> At least for jessie the templates have to be registered during
> preinst/postinst.

Thanks, I put that into the postinst now.

Unfortunately, the jessie-security upload didn't close this bug, so
I'm doing that manually now.

commit e179187ee3f0ea240280bdc4e420f20f04a206bd (tag: debian/9.4.25-0+deb8u1, 
origin/9.4-jessie, 9.4-jessie)
Author: Christoph Berg <christoph.b...@credativ.de>
Date:   Mon Nov 18 16:20:38 2019 +0100

    New upstream version.

    * New upstream version. This is the next-to-last release of the 9.4 series.
      Please upgrade to a newer PostgreSQL major version.
    * Register debconf templates in postinst. (Closes: #935759)

diff --git a/debian/changelog b/debian/changelog
index a7dd1b6..e919aa6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+postgresql-9.4 (9.4.25-0+deb8u1) jessie-security; urgency=medium
+
+  * New upstream version. This is the next-to-last release of the 9.4 series.
+    Please upgrade to a newer PostgreSQL major version.
+  * Register debconf templates in postinst. (Closes: #935759)
+
+ -- Christoph Berg <m...@debian.org>  Mon, 18 Nov 2019 11:49:49 +0100
+
 postgresql-9.4 (9.4.24-0+deb8u1) jessie-security; urgency=medium

   * New upstream security release.
diff --git a/debian/postgresql-9.4.postinst b/debian/postgresql-9.4.postinst
index 266be11..1a6f6bc 100644
--- a/debian/postgresql-9.4.postinst
+++ b/debian/postgresql-9.4.postinst
@@ -8,6 +8,12 @@ if [ "$1" = configure ]; then
     . /usr/share/postgresql-common/maintscripts-functions

     configure_version $VERSION "$2"
+
+    # jessie's debconf requires registering templates in preinst/postinst, 
even if we use them in the postrm only
+    if [ -e /usr/share/debconf/confmodule ]; then
+        . /usr/share/debconf/confmodule
+        db_stop
+    fi
 fi

 #DEBHELPER#


Christoph

--- End Message ---

Reply via email to