From: Russ Allbery Date: Sun, 19 Sep 2010 03:56:32 +0000 (-0700) Subject: Merge branch 'master' into bug23712-rra X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=181f042cfb6402acb229ab13a3b28ca559e444d4;hp=9b45ecaa3808c9a38cca78e89c2f1a0f5699db9c;p=debian%2Fdebian-policy.git Merge branch 'master' into bug23712-rra --- diff --git a/policy.sgml b/policy.sgml index 642f672..ddfe3fe 100644 --- a/policy.sgml +++ b/policy.sgml @@ -8004,22 +8004,6 @@ ln -fs ../sbin/sendmail debian/tmp/usr/bin/runq Sharing configuration files -

- Packages which specify the same file as a - conffile must be tagged as conflicting - with each other. (This is an instance of the general rule - about not sharing files. Note that neither alternatives - nor diversions are likely to be appropriate in this case; - in particular, dpkg does not handle diverted - conffiles well.) -

- -

- The maintainer scripts must not alter a conffile - of any package, including the one the scripts - belong to. -

-

If two or more packages use the same configuration file and it is reasonable for both to be installed at the same @@ -8069,6 +8053,34 @@ ln -fs ../sbin/sendmail debian/tmp/usr/bin/runq and which manages the shared configuration files. (The sgml-base package is a good example.)

+ +

+ If the configuration file cannot be shared as described above, + the packages must be marked as conflicting with each other. + Two packages that specify the same file as + a conffile must conflict. This is an instance of the + general rule about not sharing files. Neither alternatives + nor diversions are likely to be appropriate in this case; in + particular, dpkg does not handle diverted + conffiles well. +

+ +

+ When two packages both declare the same conffile, they + may see left-over configuration files from each other even + though they conflict with each other. If a user removes + (without purging) one of the packages and installs the other, + the new package will take over the conffile from the + old package. If the file was modified by the user, it will be + treated the same as any other locally + modified conffile during an upgrade. +

+ +

+ The maintainer scripts must not alter a conffile + of any package, including the one the scripts + belong to. +