As a follow-up to the unblock request for dbconfig-common (already
reopened by Dominik) I have a new debdiff attached. I uploaded the
package (via DELAYED, now installed) already as I believe the current
patch fixes the permissions problem.

I tested installing and dpkg-reconfigure-ing roundcube with and without
local changes including additional acl permission, and under all tested
circumstances, the permissions and ownership were now kept as expected.

Please unblock dbconfig-common to fix RC bug 767248: "dbconfig-common:
removes any permissions from generated include files on upgrade".

unblock dbconfig-common/1.8.47+nmu3

Paul
diff -Nru dbconfig-common-1.8.47+nmu2/dbconfig-generate-include 
dbconfig-common-1.8.47+nmu3/dbconfig-generate-include
--- dbconfig-common-1.8.47+nmu2/dbconfig-generate-include       2014-10-13 
21:05:57.000000000 +0200
+++ dbconfig-common-1.8.47+nmu3/dbconfig-generate-include       2014-11-02 
21:25:45.000000000 +0100
@@ -222,6 +222,12 @@
                echo "unable to create temporary file $tmpout" >&2
                exit 1
        fi
+       if [ -e "$outputfile" ] ; then
+               # In order to preserve all local attributes of the
+               # original file, copy them to the tmpout file, so that
+               # later on they are copied back (by ucf or mv command).
+               cp --preserve=all --attributes-only "$outputfile" "$tmpout"
+       fi
        exec > $tmpout
 fi
 
diff -Nru dbconfig-common-1.8.47+nmu2/debian/changelog 
dbconfig-common-1.8.47+nmu3/debian/changelog
--- dbconfig-common-1.8.47+nmu2/debian/changelog        2014-10-13 
21:31:13.000000000 +0200
+++ dbconfig-common-1.8.47+nmu3/debian/changelog        2014-11-02 
21:48:57.000000000 +0100
@@ -1,3 +1,12 @@
+dbconfig-common (1.8.47+nmu3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix regression introduced in the previous upload, now really
+    preserve permissions during upgrade, thanks to Simon Bruder for
+    reporting and Dominik George for helping triage. (Closes: #767248)
+
+ -- Paul Gevers <[email protected]>  Sun, 02 Nov 2014 19:19:40 +0100
+
 dbconfig-common (1.8.47+nmu2) unstable; urgency=low
 
   * Non-maintainer upload.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to