Subject: Re: "make install" owerwrites files without asking
To: Antoine Reilles <Antoine.Reilles@loria.fr>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-pkg
Date: 06/29/2005 15:40:37
On Wed, Jun 29, 2005 at 03:21:14PM +0200, Antoine Reilles wrote:
> This looks like the way darwinports do installs package. They use the  
> destroot functionality packages using autotools support, to install  
> the package in a fake root directory under work.
> this fake root directory is  populated with a directory hierarchy  
> matching the actual one.
> This approach makes a little less easy to create packages for tools  
> not using autotools and which do not support this destroot  
> functionality, but there are some benefits. It is very easy then to  
> check if PLIST is respected, to compress manpages, or check all  
> manpages are installed in the correct directory ( PKGDIR/man or  
> PKGDIR/share/man ). Also this make possible (maybe not always) to do  
> the full build including make install under normal user rights, and  
> use root user only for pkgsrc stuff: moving/copying files, setting  
> rights, and so on.
> I love this idea of using the root accound only to do things checked  
> by the pkgsrc infrastructure, so i'm sure whatever the package  
> makefile contains, nothing really wrong can happen.

Yes, that would be really good.  But I guess some packages will complain
when doing "make install" as an unprivileged user if they can't set suid
permissions for example.  

GH

-- 
:wq