Subject: Re: "make install" owerwrites files without asking
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: tech-pkg
Date: 06/26/2005 15:02:05
On Sun, Jun 26, 2005 at 02:55:41PM +0200, Manuel Bouyer wrote:
> On Sun, Jun 26, 2005 at 02:20:34PM +0200, Pavel Cahyna wrote:
> > Hello,
> > 
> > I installed libxen from pkgsrc-wip and at the end, the following was
> > printed:
> > 
> > ===> Registering installation for libxen-2.0.6
> > pkg_create: Overwriting /usr/pkg/include/xc.h - pkg xentools12-040418 bogus/conflicting?
> > pkg_create: Overwriting /usr/pkg/lib/libxc.so - pkg xentools12-040418 bogus/conflicting?
> > 
> > This warning was not very useful, because those files belonging to
> > xentools12 were already overwritten when it was printed.
> > 
> > Shouldn't the check for conflicting files be performed before the actual
> > installation, instead of after it? Currently, a package without explicit
> > conflict can damage other installed packages, which seems wrong to me.
> 
> The bug here is that libxen should conflict with xentools{12,20}.

True, this should be fixed, but the point is that even without such
conflict, pkgsrc (IMHO) should not damage packages by blindly overwriting
files, even if that packages to be installed have such bugs. 

(IIRC rpm and dpkg have such check.)

Bye	Pavel