Bug#684126: debian-policy: clarification needed for handling of directories used by maintainer scripts

2012-08-08 Thread Steve Langasek
On Thu, Aug 09, 2012 at 08:34:36AM +0900, Charles Plessy wrote: > diff --git a/policy.sgml b/policy.sgml > index 52dbb26..0aa08d2 100644 > --- a/policy.sgml > +++ b/policy.sgml > @@ -3854,7 +3854,16 @@ Checksums-Sha256: > pathname. Maintainer scripts should also not reset the > PATH

Bug#684126: debian-policy: clarification needed for handling of directories used by maintainer scripts

2012-08-08 Thread Andreas Beckmann
On 2012-08-09 01:34, Charles Plessy wrote: > + Maintainer scripts should not create directories. Instead, the that contradicts the regulations about creating directories in /usr/local also creating *private* directory hierarchies in /var/{lib,log,spool,...} that are *not shared* with anoth

Bug#684126: debian-policy: clarification needed for handling of directories used by maintainer scripts

2012-08-08 Thread Charles Plessy
user debian-pol...@packages.debian.org usertags 684126 normative discussion block 684126 316521 thanks Le Tue, Aug 07, 2012 at 09:35:46AM -0700, Russ Allbery a écrit : > > I agree. Unfortunately, due to #316521, you get piuparts errors if you > take that approach, which I suspect is the cause of

Bug#684126: debian-policy: clarification needed for handling of directories used by maintainer scripts

2012-08-07 Thread Russ Allbery
Andreas Beckmann writes: > On 2012-08-07 18:35, Russ Allbery wrote: >> It would be nice if piuparts would temporarily stop reporting this as >> an error until the long-standing dpkg bug is fixed, > piuparts already whitelists a list of common false positives due to that > dpkg bug, we can andd m

Bug#684126: debian-policy: clarification needed for handling of directories used by maintainer scripts

2012-08-07 Thread Andreas Beckmann
On 2012-08-07 18:35, Russ Allbery wrote: > It > would be nice if piuparts would temporarily stop reporting this as an > error until the long-standing dpkg bug is fixed, piuparts already whitelists a list of common false positives due to that dpkg bug, we can andd more until this gets fixed #31652

Bug#684126: debian-policy: clarification needed for handling of directories used by maintainer scripts

2012-08-07 Thread Russ Allbery
Andreas Beckmann writes: > Case 2c: bar ships empty /etc/foo.d/ > dpkg will create/remove the directory with proper refcounting > => all is fine (at least once #316521 gets fixed) > The same problems may also happen in /usr, /var or elsewhere. > IMO 2c is the only proper solution to use whe

Bug#684126: debian-policy: clarification needed for handling of directories used by maintainer scripts

2012-08-07 Thread Andreas Beckmann
Package: debian-policy Severity: normal Hi, while doing piuparts tests I noticed several cases of packages leaving around (or removing) directories after purge. I tracked a few of them to the roots and found that it seems to be unclear how to correctly handle directories needed for placing config