[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#4471: isp-ppp needs conflicts:ppp



You (Christoph Lameter) wrote:
> Ok. Section 8.3 of the manual regarding Replace:
> 
> If one package is to be installed, the other must be removed first - if
> the package being installed is marked as replacing (Replaces - overwriting
> files and replacing packages, section 8.5)
> the one on the system, or the one on the system is marked as deselected,
> or both packages are marked Essential, then dpkg will automatically remove
> the package which is causing
              ^^^^^^^^^^^^^^^^
> the conflict, otherwise it will halt the installation of the new package
  ^^^^^^^^^^^^
> with an error.
> 
> Somewhat cryptic but I think it supports my view of Replaces:

I don't think so, see the underlined stuff. It is really a bit weird,
but Ian Jackson went through great lengths to explain it to me.
Unfortunately he's almost unreachable for the next couple of weeks..

An example is in the control file for sysvinit-2.65. Around sysvinit-2.60,
it was decided that sysvinit should replace "last" entirely.

It would _only_ work with this in the control file:

Conflicts: last
Replaces: last, bsdutils (<=2.0-2)

The replaces: thing for bsdutils is because sysvinit only replaced 1 file
from bsdutils (mesg). So bsdutils stays installed, only that one conflicting
file is moved to sysvinit. "last" however is removed entirely.

I don't think this is really logical but oh well it works.. It would
have been more logical to have "Replaces-parts-of: " and "Replaces".

> > > > > I thought the "Replaces:" implied the removal of the package before
> > > > > installation?
> > > > 
> > > > No, that's Conflicts:. Replaces: says that the package will replace some  
> > > > files of the other package, and that dpkg is not to complain.
> > > That is a rather weird interpretation.
> > > Replaces: causes the automatic removal of a package
> > 
> > ... When used together with Conflicts:. Otherwise Kai is right.
> 

Mike.
-- 
   Miquel van      | Cistron Internet Services   --    Alphen aan den Rijn.
   Smoorenburg,    | mailto:info@cistron.nl          http://www.cistron.nl/
miquels@cistron.nl |           The truth is out there. 42.



Reply to: