[Piuparts-commits] [SCM] piuparts git repository branch, piatti, updated. 0.46-27-g960eea7

Andreas Beckmann debian at abeckmann.de
Fri Sep 21 08:17:25 UTC 2012


The following commit has been merged in the piatti branch:
commit 960eea745b52b884b7b3becef527e05dac582d4e
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Wed Sep 19 13:57:33 2012 +0200

    new bug template: modifies_conffiles
    
    policy 10.7.3, caught by debsums
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/bug-templates/modifies_conffiles.mail b/bug-templates/modifies_conffiles.mail
new file mode 100644
index 0000000..98edc3d
--- /dev/null
+++ b/bug-templates/modifies_conffiles.mail
@@ -0,0 +1,47 @@
+To: submit at bugs.debian.org
+Subject: modifies conffiles (policy 10.7.3):
+
+Package:
+Version:
+Severity: serious
+User: debian-qa at lists.debian.org
+Usertags: piuparts
+
+Hi,
+
+during a test with piuparts I noticed your package modifies conffiles.
+This is forbidden by the policy, see
+http://www.debian.org/doc/debian-policy/ch-files.html#s-config-files
+
+10.7.3: "[...] The easy way to achieve this behavior is to make the
+configuration file a conffile. [...] This implies that the default
+version will be part of the package distribution, and must not be
+modified by the maintainer scripts during installation (or at any
+other time)."
+
+Note that once a package ships a modified version of that conffile,
+dpkg will prompt the user for an action how to handle the upgrade of
+this modified conffile (that was not modified by the user).
+
+Further in 10.7.3: "[...] must not ask unnecessary questions
+(particularly during upgrades) [...]"
+
+If a configuration file is customized by a maintainer script after
+having asked some debconf questions, it may not be marked as a
+conffile. Instead a template could be installed in /usr/share and used
+by the postinst script to fill in the custom values and create (or
+update) the configuration file (preserving any user modifications!).
+This file must be removed during postrm purge.
+ucf(1) may help with these tasks.
+See also http://wiki.debian.org/DpkgConffileHandling
+
+In https://lists.debian.org/debian-devel/2012/09/msg00412.html and
+followups it has been agreed that these bugs are to be filed with
+severity serious.
+
+debsums reports modification of the following files,
+from the attached log (scroll to the bottom...):
+
+
+
+cheers,
diff --git a/debian/changelog b/debian/changelog
index e984535..44a5811 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,7 @@ piuparts (0.47) UNRELEASED; urgency=low
     - Support a [global] auto-reschedule=no setting.
   * detect_well_known_errors: Unclassified logs may still be bugged.
   * detect_piuparts_issues: Detect incomplete logfiles.
+  * New bug template: modifies_conffiles.
 
  -- Andreas Beckmann <debian at abeckmann.de>  Sat, 15 Sep 2012 06:25:05 +0200
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list