#1135845 debian-security-support: postrm do not clean /var/lib/debian-security-support/

#1135845#5
Date:
2026-05-06 15:00:14 UTC
From:
To:
Hi dear maintainers,

I noticed that debian-security-support does not
clean /var/lib/debian-security-support/ on purge.

Here is a extra-short that implements this
with help from dh-cruft.

dh-cruft has been available for many years
already so that would not hinder backportability.

Greetings

Alexandre



tchet@quieter:~/deb/debian-security-support$ git diff HEAD~1
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Holger Levsen <holger@debian.org>,
            Santiago Ruano Rincón <santiago@debian.org>,
 Build-Depends: debhelper-compat (= 13),
     asciidoc,
+    dh-sequence-cruft,
     gettext,
     gawk,
     libfile-slurp-perl,
--- /dev/null
+++ b/debian/debian-security-support.purge
@@ -0,0 +1 @@
+/var/lib/debian-security-support/




PS: here is also the generated .postrm so you can glimpse on it:


$ cat debian/debian-security-support/DEBIAN/postrm
#!/bin/sh
set -e
# Automatically added by dh_cruft/0.9.80
if [ "$1" = "purge" ]
then
    # we need to glob, so no quotes
    rm -rf ${DPKG_ROOT:-}/var/lib/debian-security-support/
fi
# End automatically added section
# Automatically added by dh_installdebconf/13.31
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
        . /usr/share/debconf/confmodule
        db_purge
fi
# End automatically added section

#1135845#8
Date:
2026-05-15 19:34:20 UTC
From:
To:
Hello,

Bug #1135845 in debian-security-support reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian/debian-security-support/-/commit/90e5caac963166e4a0329d24ced71a2b6c04726e
------------------------------------------------------------------------
use dh-cruft to register & purge /var/lib/debian-security-support/ (Closes: #1135845, #990432)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1135845

#1135845#13
Date:
2026-05-27 17:15:19 UTC
From:
To:
Hello,

Bug #1135845 in debian-security-support reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian/debian-security-support/-/commit/90e5caac963166e4a0329d24ced71a2b6c04726e
------------------------------------------------------------------------
use dh-cruft to register & purge /var/lib/debian-security-support/ (Closes: #1135845, #990432)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1135845