pkgsrc-Users archive

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

Re: Ham/TNT Bootstrap Help



Chris Maness <christopher.maness%gmail.com@localhost> writes:

> I am running successfully, TNT in Debian bootstrapped with pkgsrc.  TFKISS
> works as expected.  But TNT fails to install. It does not seem to know how
> to do an unprivileged install.  I had to go make a bunch of directories and
> install config files by hand.  Some in the pkg tree, but some in the host
> system above the $HOME/pkg directory.  These locations would be where they

This sounds off.

The basic idea is that pkgsrc passes DESTDIR as the root under which the
installation should happen.    The package should then make directories
under DESTDIR, and install under DESTDIR.  It has to use the install
wrappers which save -u -g metadata.   The install step may not write
outside of DESTDIR.

typical step in an upstream makefile (as an example)

   mkdir -p $destdir/$prefix/bin
   install -u root src/foo $destdir/$prefix/bin

that's probably off a bit, but it illustrates the point.    Support for
setting prefix and passing destdir is normal now, and upstream packages
that don't support it are deficient.   That needs patching, but it's not
about pkgsrc, it's about expectations since maybe 2010.


Home | Main Index | Thread Index | Old Index