Subject: Re: "make install" owerwrites files without asking
To: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-pkg
Date: 06/29/2005 14:49:56
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.

A solution for this could be based on FAKE installs, like OpenBSD Ports
have.  The packages own "make install" is done to a temporary directory,
then a package is created, and this package is pkg_add'ed on the system 
(in NetBSD make package needs a make install first, which is sometimes 
not desirable).  

Marc Espie, an OpenBSD Ports developer, recently explained this a bit 
in an interview: http://mongers.org/openbsd/interview-espie-ports

I think it would be very nice if pkgsrc had this feature too.  

GH

-- 
:wq