tech-pkg archive

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

Re: destdir in pkg_add(1)/pkg_delete(1)



On Wed, Aug 16, 2017 at 12:57:36AM +0000, Johnny C. Lam wrote:
> Can anyone please explain how the "-P destdir" support in pkg_add(1)
> and pkg_delete(1) is meant to work?  I couldn't find any existing
> usage of that option in pkgsrc/mk.
> 
> Even the cross-compile logic in pkgsrc/mk uses the "-p prefix"
> option to directly set the installation prefix to the full path of
> "cross-destdir + prefix" and then does an additional hacky step of
> directly modifying the files in ${PKG_DBDIR} to remove references
> to the cross-destdir.
> 
> I suspect the destdir support was added to try to support
> installing and deleting packages for the cross-destdir case, but
> it doesn't seem like it's used at all within pkgsrc.

Correct, the logic for cross-compiling is older than the
pkginstall_renovation branch. It just was never updated to use it.

Joerg


Home | Main Index | Thread Index | Old Index