Control: tags -1 + patch

Dear Maintainer,

Andreas Beckmann <deb...@abeckmann.de> writes:

> Package: planner-el
> Version: 3.42-5
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts

> 1m4.7s ERROR: FAIL: Package purging left files on system:
>   /root/.gnupg/        not owned
>   /root/.gnupg/gpg.conf        not owned
>   /root/.gnupg/pubring.gpg     not owned
>   /root/.gnupg/secring.gpg     not owned

Please find attached a patch that fixes this issue. I can perform the
NMU, but I would appreciate your feedback on the patch.

Regards,
diff -u planner-el-3.42/debian/changelog planner-el-3.42/debian/changelog
--- planner-el-3.42/debian/changelog
+++ planner-el-3.42/debian/changelog
@@ -1,3 +1,12 @@
+planner-el (3.42-5.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/emacsen-install: no longer create /root/.gnupg during installation
+    of the package. This is achieved by binding GNUPGHOME to a temporary
+    directory during bytecode compilation. (Closes: #694893)
+
+ -- Sébastien Villemot <sebast...@debian.org>  Sun, 02 Dec 2012 18:43:34 +0100
+
 planner-el (3.42-5) unstable; urgency=low
 
   * Change section to match override.
diff -u planner-el-3.42/debian/emacsen-install planner-el-3.42/debian/emacsen-install
--- planner-el-3.42/debian/emacsen-install
+++ planner-el-3.42/debian/emacsen-install
@@ -40,6 +40,10 @@
   done
 )
 
+# Prevent epg from manipulating /root/.gnupg (#694893)
+TMPGNUPGHOME=`mktemp -d --tmpdir gnupg.XXXXXXXXXX`
+export GNUPGHOME=${TMPGNUPGHOME}
+
 cd ${ELCDIR}
 cat << EOF > path.el
 (setq load-path (cons "." load-path))
@@ -50,2 +54,4 @@
 
+rm -rf ${TMPGNUPGHOME}
+
 exit 0
-- 
 .''`.    Sébastien Villemot
: :' :    Debian Developer
`. `'     http://www.dynare.org/sebastien
  `-      GPG Key: 4096R/381A7594

Attachment: pgpfQRcXyV50M.pgp
Description: PGP signature

Reply via email to