[Pkg-bareos-devel] Bug#769096: Bug#769096: bareos-storage: unowned files after purge (policy 6.8, 10.8): /etc/bareos/.rndpwd

Evgeni Golov evgeni at debian.org
Sun Nov 16 16:38:06 UTC 2014


Hi,

thanks for the report (and piuparts!)

On 11/11/2014 11:38 AM, Andreas Beckmann wrote:

> during a test with piuparts I noticed your package left unowned files on
> the system after purge, which is a violation of policy 6.8 (or 10.8):
> 
> http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removedetails
> 
> Filing this as important as having a piuparts clean archive is a release
> goal since lenny.
> 
>>From the attached log (scroll to the bottom...):
> 
> 0m32.2s ERROR: FAIL: Package purging left files on system:
>   /etc/bareos/.rndpwd	 not owned
>   /root/.rnd	 not owned
> 
> Don't worry about /root/.rnd, that is an openssl artefact.

Yeah, openssl is a bit stupid here, one could call it with
"HOME=$(mktemp -d)", but I do not think it is worth it either.

For the rndpwd file I propose the following fix:

diff --git a/debian/bareos-common.postrm b/debian/bareos-common.postrm
index e69de29..d18dad6 100644
--- a/debian/bareos-common.postrm
+++ b/debian/bareos-common.postrm
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+set -e
+
+
+case "$1" in
+  purge)
+    rm -f /etc/bareos/.rndpwd
+  ;;
+esac
+
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Joerg, does this sound good to you?

Greets
Evgeni



More information about the Pkg-bareos-devel mailing list