Bug#504880: Disambiguate "installed" for packages

2011-04-03 Thread Russ Allbery
Raphael Hertzog writes: > On Fri, 04 Mar 2011, Jonathan Nieder wrote: >> ) I suspect others like it, too, but who knows? Patch attached. >> Seconds or objections welcome. > Seconded. It's long and I might have missed some inaccuracies but I think > it's an improvement in clarity. Thanks! Wit

Bug#504880: Disambiguate "installed" for packages

2011-03-05 Thread Raphael Hertzog
Hi, On Fri, 04 Mar 2011, Jonathan Nieder wrote: > ) I suspect others like it, too, but who knows? Patch attached. > Seconds or objections welcome. Seconded. It's long and I might have missed some inaccuracies but I think it's an improvement in clarity. Cheers, -- Raphaël Hertzog ◈ Debian Deve

Bug#504880: Disambiguate "installed" for packages

2011-03-04 Thread Jonathan Nieder
Russ Allbery wrote: > Does that look okay? Yes, the version in branch 504880-rra looks good to me (with one tweak: --- a/policy.sgml +++ b/policy.sgml @@ -4027,5 +4027,5 @@ fi in postrm purges the debconf configuration for the package if debconf

Bug#504880: Disambiguate "installed" for packages

2010-08-20 Thread Russ Allbery
Jonathan Nieder writes: > Russ Allbery wrote: >> Steve Langasek writes: >>> I might also add at the end: >>> In such situations, the depended-on package should perform an >>> equivalent clean-up operation if it's the first package to be >>> removed or purged. >>> But that may not be unam

Bug#504880: Disambiguate "installed" for packages

2010-08-18 Thread Jonathan Nieder
Russ Allbery wrote: > Steve Langasek writes: >> I might also add at the end: > >> In such situations, the depended-on package should perform an equivalent >> clean-up operation if it's the first package to be removed or purged. > >> But that may not be unambiguous enough to add any value here

Bug#504880: Disambiguate "installed" for packages

2010-08-18 Thread Russ Allbery
Steve Langasek writes: > On Sun, Aug 15, 2010 at 12:25:19PM -0700, Russ Allbery wrote: >> I believe they can be in the same state as the pre-dependency itself >> for exactly the same reasons, no? Upgrades don't require deconfiguring >> packages that depend on the package being upgraded, so if yo

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Steve Langasek
On Sun, Aug 15, 2010 at 12:25:19PM -0700, Russ Allbery wrote: > > Does dpkg provide any guarantee that the dependencies of the > > pre-dependency are also present at this point? If it doesn't, I think > > that should be considered a bug in dpkg, since you may be invoking a > > command that links a

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Jonathan Nieder
Based on Steve’s explanation: Russ Allbery wrote: > > The Depends field should also be used if the > postinst or prerm scripts > require the depended-on package to be unpacked or > configured in order to run, or if the dependend

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Jonathan Nieder
Steve Langasek wrote: > This is an obsolete example, doc-base now uses a trigger as it ought to and > the install-docs command is now a no-op (+ a warning message) when called > from a maintainer script. :-) > > Do you have an example of using Suggests: in this way that *shouldn't* be > converted

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Steve Langasek
On Sun, Aug 15, 2010 at 03:24:59PM -0500, Jonathan Nieder wrote: > > As Steve pointed out, this is generally going to be a no-op, since if > > you're cleaning something up in postrm, you probably already depended on > > it because you're using it in postinst. > Example where it is not a no-op: doc

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Steve Langasek
Hi Jonathan, On Sun, Aug 08, 2010 at 07:27:44PM -0500, Jonathan Nieder wrote: > > Does dpkg provide any guarantee that the dependencies of the pre-dependency > > are also present at this point? > Sure: that is part of what it means to configure a package. > Except *new* dependencies of an upgrad

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Bill Allombert
On Sun, Aug 15, 2010 at 02:57:18PM -0500, Jonathan Nieder wrote: > Russ Allbery wrote: > > > How about this? > > > > > > The Depends field should also be used if the > > postinst or prerm scripts > > require the depended-on package to be unpacked or

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Jonathan Nieder
Russ Allbery wrote: > Jonathan Nieder writes: >> My real question was: does this ever happen in the real world? > >> - doc-base already removes any remaining state when *it* is purged >> - debconf does not, but that is a bug. In practice, debconf is >>almost never uninstalled. > >> My worr

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Russ Allbery
Jonathan Nieder writes: > All right, Recommends then. :) > My real question was: does this ever happen in the real world? > - doc-base already removes any remaining state when *it* is purged > - debconf does not, but that is a bug. In practice, debconf is >almost never uninstalled. > My

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Jonathan Nieder
Russ Allbery wrote: > Jonathan Nieder writes: >> Russ Allbery wrote: >>> The Depends field should also be used if [...] >>> the dependend-on package >>> is desirable for cleanup done by postrm. > >> I guess I am confused; when

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Russ Allbery
Jonathan Nieder writes: > Russ Allbery wrote: >> How about this? >> >> >> The Depends field should also be used if the >> postinst or prerm scripts >> require the depended-on package to be unpacked or >> configured in order to run,

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Jonathan Nieder
Russ Allbery wrote: > How about this? > > > The Depends field should also be used if the > postinst or prerm scripts > require the depended-on package to be unpacked or > configured in order to run, or if the dependend-on packag

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Raphael Hertzog
On Sun, 15 Aug 2010, Russ Allbery wrote: > Raphael Hertzog writes: > > On Mon, 26 Jul 2010, Russ Allbery wrote: > > >> > >> The DEBIAN directory will not appear in the > >> file system archive of the package, and so won't be installed > >> -by dpkg when the package is installed.

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Russ Allbery
Here's the new version of the patch. diff --git a/policy.sgml b/policy.sgml index 0624290..8a70ebf 100644 --- a/policy.sgml +++ b/policy.sgml @@ -1104,10 +1104,10 @@ - Sometimes, a package requires another package to be installed - and configured before it can b

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Russ Allbery
Steve Langasek writes: > On Wed, Jul 21, 2010 at 01:52:50PM -0700, Russ Allbery wrote: >> + Sometimes, a package requires another package to be unpacked >> + and configured before it can be unpacked. In this >> + case, the dependent package must specify this dependency in >> +

Bug#504880: Disambiguate "installed" for packages

2010-08-15 Thread Russ Allbery
Raphael Hertzog writes: > On Mon, 26 Jul 2010, Russ Allbery wrote: >> >>The DEBIAN directory will not appear in the >>file system archive of the package, and so won't be installed >> - by dpkg when the package is installed. >> + by dpkg when the package is unpacked

Bug#504880: Disambiguate "installed" for packages

2010-08-08 Thread Jonathan Nieder
Steve Langasek wrote: > On Wed, Jul 21, 2010 at 01:52:50PM -0700, Russ Allbery wrote: >>In this >> + case, the dependent package must specify this dependency in >> + the Pre-Depends control field. [...] > I think "depending pack

Bug#504880: Disambiguate "installed" for packages

2010-08-04 Thread Steve Langasek
On Wed, Jul 21, 2010 at 01:52:50PM -0700, Russ Allbery wrote: > diff --git a/policy.sgml b/policy.sgml > index 847f716..eb458fe 100644 > --- a/policy.sgml > +++ b/policy.sgml > @@ -1079,10 +1079,10 @@ > > > > - Sometimes, a package requires another package to be installed > -

Bug#504880: Disambiguate "installed" for packages

2010-07-30 Thread Raphael Hertzog
On Mon, 26 Jul 2010, Russ Allbery wrote: > Here is an updated version of the proposed patch, reflecting additional > feedback. I think we should hopefully be close to a final wording now. I have reviewed the patch and did not found any problem. Seconded. > > The DEBIAN directory

Bug#504880: Disambiguate "installed" for packages

2010-07-27 Thread Bill Allombert
On Mon, Jul 26, 2010 at 03:39:30PM -0700, Russ Allbery wrote: > Jonathan Nieder writes: > > Russ Allbery wrote: > > >> I think we should hopefully be close to a final wording now. > > > Indeed! All I have left are copy-edits (patch below). > > Thanks! Applied to my copy. > > >> @@ -5048,7 +5

Bug#504880: mail-transport-agent (Re: Bug#504880: Disambiguate "installed" for packages)

2010-07-26 Thread Russ Allbery
Jonathan Nieder writes: > If we instead take the Conflicts seriously, then switching between MTAs > requires the following sequences of events: > deconfigure packages that pre-depend or depend on mail-transport-agent > remove the old mail-transport-agent > unpack the new mail-transport-agent

Bug#504880: mail-transport-agent (Re: Bug#504880: Disambiguate "installed" for packages)

2010-07-26 Thread Jonathan Nieder
Russ Allbery wrote: > Jonathan Nieder writes: >> Aside: is this advice right? Maybe we should be encouraging > >> Provides: mail-transport-agent >> Breaks: mail-transport-agent >> Replaces: mail-transport-agent > >> instead. [...] > newaliases programs have to match whatever MTA is actually b

Bug#504880: Disambiguate "installed" for packages

2010-07-26 Thread Jonathan Nieder
Russ Allbery wrote: [...] > (a common > situation when upgrading shared libraries and their > corresponding development packages) [...] > That moves the whole thing into a footnote and gives a more specific > example. Nice.

Bug#504880: Disambiguate "installed" for packages

2010-07-26 Thread Russ Allbery
Jonathan Nieder writes: > Russ Allbery wrote: >> I think we should hopefully be close to a final wording now. > Indeed! All I have left are copy-edits (patch below). Thanks! Applied to my copy. >> @@ -5048,7 +5132,7 @@ Provides: mail-transport-agent >> Conflicts: mail-transport-agent >> Re

Bug#504880: Disambiguate "installed" for packages

2010-07-26 Thread Jonathan Nieder
Russ Allbery wrote: > I think we should hopefully be close to a final wording now. Indeed! All I have left are copy-edits (patch below). > +++ b/policy.sgml [...] > +The unpacked files may be > + partly from the new version or partly missing, so

Bug#504880: Disambiguate "installed" for packages

2010-07-26 Thread Russ Allbery
Here is an updated version of the proposed patch, reflecting additional feedback. I think we should hopefully be close to a final wording now. diff --git a/policy.sgml b/policy.sgml index e5134ed..9e8689e 100644 --- a/policy.sgml +++ b/policy.sgml @@ -1079,10 +1079,10 @@ -

Bug#504880: Disambiguate "installed" for packages

2010-07-26 Thread Russ Allbery
Jonathan Nieder writes: > Russ Allbery wrote: >> I found the original awkward and hard to puzzle out. How about this: >> >> >>Since Depends only places requirements on the order in >>which packages are configured, packages in an installation run >>are usually all u

Bug#504880: Disambiguate "installed" for packages

2010-07-26 Thread Russ Allbery
Jonathan Nieder writes: > | Pre-dependencies will be > | at least unpacked following the same rules as above, except > | they may be only "Half-Installed" if an upgrade of the > | pre-dependency failed. > Maybe a footnote would be appropriate - s

Bug#504880: Disambiguate "installed" for packages

2010-07-26 Thread Russ Allbery
Steve Langasek writes: > I don't think it's a "whoops", but it is true that Breaks is asymmetric > and it's specifically the /broken/ package that is deconfigured when the > /breaking/ package is unpacked, and I think Policy should be clear about > this. (Yes, the fact that the package manager n

Bug#504880: Disambiguate "installed" for packages

2010-07-24 Thread Jonathan Nieder
Steve Langasek wrote: > So I think it's better to say: > > This is a stronger restriction than Breaks, which just > prevents the package listed in the Breaks field from being > configured while the package with the Breaks field is present on > the system. > > Avoids refer

Bug#504880: Disambiguate "installed" for packages

2010-07-24 Thread Steve Langasek
On Wed, Jul 21, 2010 at 01:37:28PM -0700, Russ Allbery wrote: > >> > >>When one binary package declares a conflict with another > >> using a Conflicts field, dpkg will > >> -refuse to allow them to be installed on the system at the > >> +refuse to allow them to be unpac

Bug#504880: Disambiguate "installed" for packages

2010-07-21 Thread Jonathan Nieder
Russ Allbery wrote: > Suppose that you have a package foo 1.0-1 with: > > Pre-Depends: bar > > and a package foo 2.0-1 that has no pre-dependencies. [...] > Now you run: > > dpkg -i foo_2.0-1.deb > > foo 2.0-1 has no pre-dependencies, so the pre-dependency check succeeds. > Installatio

Bug#504880: Disambiguate "installed" for packages

2010-07-21 Thread Russ Allbery
Jonathan Nieder writes: > Russ Allbery wrote: >> Jonathan Nieder writes: >>> * postrm does not get called until pre-dependencies for the new >>>version are satisfied. So I think it is impossible for >>>pre-dependencies to be half-installed here. >> I believe, from what Ian said, that

Bug#504880: Disambiguate "installed" for packages

2010-07-21 Thread Jonathan Nieder
Russ Allbery wrote: > Initial bootstrap, like udebs, feels to me like > something that's outside the intended scope of Policy. Note to self: beg Neil Williams to help edit a document based on multistrap. > Jonathan Nieder writes: >> * postrm does not get called until pre-dependencies for the

Bug#504880: Disambiguate "installed" for packages

2010-07-21 Thread Jonathan Nieder
Russ Allbery wrote: > I found the original awkward and hard to puzzle out. How about this: > > > Since Depends only places requirements on the order in > which packages are configured, packages in an installation run > are usually all unpacked first and all configu

Bug#504880: Disambiguate "installed" for packages

2010-07-21 Thread Russ Allbery
Russ Allbery writes: > Please review in detail, as this is the first documentation we'll have > of several hairy assumptions involved in maintainer script dependencies. Here is an updated patch reflecting feedback from Ben Finney and Jonathan Nieder. diff --git a/policy.sgml b/policy.sgml index

Bug#504880: Disambiguate "installed" for packages

2010-07-21 Thread Russ Allbery
Jonathan Nieder writes: >> >> - For this reason packages in an installation run are usually >> - all unpacked first and all configured later; this gives >> - later versions of packages with dependencies on later >> - versions of other packages the opportunity to have the

Bug#504880: Disambiguate "installed" for packages

2010-07-21 Thread Russ Allbery
Thank you very much for the detailed review! Jonathan Nieder writes: > Russ Allbery wrote: >> >> + What follows is a summary of all the ways in which maintainer >> + scripts may be called along with what facilities those scripts >> + may rely on being available at that time.

Bug#504880: Disambiguate "installed" for packages

2010-07-20 Thread Jonathan Nieder
Hi again, Continuing where I left off. > > Details of unpack phase of installation or upgrade [...] > @@ -4540,31 +4595,29 @@ > > > > - For this reason packages in an installation run are usually > - all unpacked first and all configured later; thi

Bug#504880: Disambiguate "installed" for packages

2010-07-20 Thread Jonathan Nieder
Hi, Russ Allbery wrote: > This adds new information to the "Summary of ways maintainer scripts are > called" section (6.5) stating exactly what maintainer scripts can depend > on when various actions are called. This is very welcome. Thanks for moving it forward. Warning: most of what I say be

Bug#504880: Disambiguate "installed" for packages

2010-07-20 Thread Russ Allbery
Colin Watson writes: > The policy manual currently uses the word "installed" in a couple of > different ways when referring to packages. Sometimes it's speaking quite > loosely, and in this sense is talking about something roughly equivalent > to 'dpkg --install'. However, in some other cases it'

Bug#504880: Disambiguate "installed" for packages

2009-02-15 Thread Ian Jackson
Russ Allbery writes ("Re: Bug#504880: Disambiguate "installed" for packages"): > The current wording does cover the cases of the other scripts. What my > current proposed wording says, summarized, is: ... This is a very helpful way of presenting it. > postr

Bug#504880: Disambiguate "installed" for packages

2009-02-14 Thread Russ Allbery
I think at this point we really need someone from the dpkg team to tell us what Policy needs to be saying here. This feels like one of those cases where the best thing to do is just document what dpkg promises to do, rather than trying to make dpkg match what Policy might be saying. I'd like to h

Bug#504880: Disambiguate "installed" for packages

2009-02-14 Thread Kurt Roeckx
On Sat, Feb 14, 2009 at 09:50:49PM +0100, Kurt Roeckx wrote: > On Sat, Feb 14, 2009 at 12:16:16PM -0800, Russ Allbery wrote: > > > > I think this is another aspect of the same point above? My understanding > > from the discussion and the clarified text that Raphael sent is that > > postrm can alw

Bug#504880: Disambiguate "installed" for packages

2009-02-14 Thread Kurt Roeckx
On Sat, Feb 14, 2009 at 12:16:16PM -0800, Russ Allbery wrote: > Kurt Roeckx writes: > > >> +If there is a circular dependency among packages being installed > >> +or removed, installation or removal order honoring the > >> +dependency order is impossible, requiring the dependency loop

Bug#504880: Disambiguate "installed" for packages

2009-02-14 Thread Russ Allbery
Kurt Roeckx writes: >> + If there is a circular dependency among packages being installed >> + or removed, installation or removal order honoring the >> + dependency order is impossible, requiring the dependency loop be >> + broken at some point and the dependency requirements

Bug#504880: Disambiguate "installed" for packages

2009-02-14 Thread Kurt Roeckx
> + If there is a circular dependency among packages being installed > + or removed, installation or removal order honoring the > + dependency order is impossible, requiring the dependency loop be > + broken at some point and the dependency requirements violated > + fo

Bug#504880: Disambiguate "installed" for packages

2009-02-13 Thread Russ Allbery
Raphael Hertzog writes: > We don't want that, feel free to reword that part to frighten people > that would like to use it just because that sentence says you can rely > on it. :) I re-read this whole section while applying your patch and decided that the wording of the whole section could be i

Bug#504880: Disambiguate "installed" for packages

2009-02-12 Thread Bill Allombert
On Wed, Feb 11, 2009 at 08:27:57PM -0800, Russ Allbery wrote: > Raphael Hertzog writes: > > > Please find a proposed patch in attachment. Feel free to reword/improve > > if needed. > > Is the reason why you can't rely on configured for the prerm case the same > reason why you can't rely on it fo

Bug#504880: Disambiguate "installed" for packages

2009-02-11 Thread Raphael Hertzog
On Wed, 11 Feb 2009, Russ Allbery wrote: > Is the reason why you can't rely on configured for the prerm case the same > reason why you can't rely on it for the postinst case: because of breaking > circular dependencies and choosing one package to deconfigure first? It No, I believe it's a design

Bug#504880: Disambiguate "installed" for packages

2009-02-11 Thread Russ Allbery
Raphael Hertzog writes: > Please find a proposed patch in attachment. Feel free to reword/improve > if needed. Is the reason why you can't rely on configured for the prerm case the same reason why you can't rely on it for the postinst case: because of breaking circular dependencies and choosing

Bug#504880: Disambiguate "installed" for packages

2009-02-11 Thread Kurt Roeckx
On Wed, Feb 11, 2009 at 11:31:34AM +0100, Raphael Hertzog wrote: > diff --git a/policy.sgml b/policy.sgml > index f5c6818..8727be1 100644 > --- a/policy.sgml > +++ b/policy.sgml > @@ -4323,10 +4323,17 @@ Build-Depends: foo [!i386] | bar [!amd64] > The Depends field should also be used

Bug#504880: Disambiguate "installed" for packages

2009-02-11 Thread Raphael Hertzog
Hi, On Sun, 01 Feb 2009, Russ Allbery wrote: > There isn't any further discussion of this in the bug log, and I don't > think there was a reply outside of the bug log. I agree with Colin that > simply changing present to unpacked is potentially confusing, but I would > like to clarify the case fo

Bug#504880: Disambiguate "installed" for packages

2009-02-01 Thread Russ Allbery
Colin's original patch had one second from Raphael and it looks good to me as well, so I think we're about ready to commit this for the next Policy release. I also added this hunk based on the bug discussion: @@ -4285,8 +4285,8 @@ Build-Depends: foo [!i386] | bar [!amd64] removal order

Bug#504880: Disambiguate "installed" for packages

2008-11-09 Thread Raphael Hertzog
On Sun, 09 Nov 2008, Colin Watson wrote: > > > There is also: > > > The `Depends' field should also be used if the `postinst', > > > `prerm' or `postrm' scripts require the package to be present in > > > order to run. Note, however, that the `postrm' cannot rely on >

Bug#504880: Disambiguate "installed" for packages

2008-11-08 Thread Colin Watson
On Sat, Nov 08, 2008 at 06:33:30PM +0100, Raphael Hertzog wrote: > On Fri, 07 Nov 2008, Colin Watson wrote: > > I've attached a patch, and am seeking seconds for this proposal. Please > > double-check it for correctness, particularly the change in the > > definition of Breaks; I have only verified

Bug#504880: Disambiguate "installed" for packages

2008-11-08 Thread Raphael Hertzog
On Fri, 07 Nov 2008, Colin Watson wrote: > I've attached a patch, and am seeking seconds for this proposal. Please > double-check it for correctness, particularly the change in the > definition of Breaks; I have only verified that against an old mail from > Ian proposing the design of this field >

Bug#504880: Disambiguate "installed" for packages

2008-11-07 Thread Colin Watson
On Fri, Nov 07, 2008 at 09:26:05PM +0100, Kurt Roeckx wrote: > On Fri, Nov 07, 2008 at 07:13:18PM +, Colin Watson wrote: > > The policy manual currently uses the word "installed" in a couple of > > different ways when referring to packages. > > Sometimes it's also using "present" while it prob

Bug#504880: Disambiguate "installed" for packages

2008-11-07 Thread Kurt Roeckx
On Fri, Nov 07, 2008 at 07:13:18PM +, Colin Watson wrote: > Package: debian-policy > Version: 3.8.0.1 > Severity: wishlist > > The policy manual currently uses the word "installed" in a couple of > different ways when referring to packages. Sometimes it's also using "present" while it probabl

Bug#504880: Disambiguate "installed" for packages

2008-11-07 Thread Colin Watson
Package: debian-policy Version: 3.8.0.1 Severity: wishlist The policy manual currently uses the word "installed" in a couple of different ways when referring to packages. Sometimes it's speaking quite loosely, and in this sense is talking about something roughly equivalent to 'dpkg --install'. How