pkgsrc-Users archive

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

Re: Using PKG_DESTDIR_SUPPORT=user-destdir?



On Wed, 4 Mar 2009 19:57:16 +0100
Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:

> On Wed, Mar 04, 2009 at 01:19:13PM -0500, Steven M. Bellovin wrote:
> > a) If the package seems to have used automake/autoconf -- that is,
> > there are Makefile.in and Makefile.in lying around $WRKDIR after I
> > do a 'make extract'; when I run 'make configure', I see that
> > Makefile has been built -- I do nothing; it will all happen
> > automagically.  (No special uids, gids, or chowns are needed for
> > the packages I'm looking at.)
> 
> Yes, this is normally the easy case. Sometimes upstream has manual
> install rules that don't use DESTDIR correctly, in which case some
> patches is needed.
> 
> > b) If there are no such signs, write a 'do-install:' rule in the
> > pkgsrc Makefile, rather than relying on the install rule in the
> > package's own Makefile.  Alternatively, modify that to use DESTDIR.
> 
> In order of preference:
> - patch Makefile for active upstream and submit patches
> - try to override PREFIX or similiar variables at install time (via
> INSTALL_MAKE_FLAGS)
> - do-install rules
> 
> The last should only be done if you really only install a few files
> and that is unlikely to change.
> 
Thanks, especially for the first two suggestions here -- the third one
did indeed scare me for all the obvious reasons.

                --Steve Bellovin, http://www.cs.columbia.edu/~smb


Home | Main Index | Thread Index | Old Index