[Bug 280458] lang/perl5*: fix 'pkg -r' installation

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 Jul 2024 14:15:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280458

--- Comment #4 from Siva Mahadevan <me@svmhdvn.name> ---
(In reply to Mathieu Arnold from comment #3)

I have a use case where I don't want 'pkg' to be installed in my chroot/jail
guest directory, but I want to use 'pkg' from the host to
install/upgrade/maintain packages. If I use 'pkg -c install', then similar to
'pkg -j install', my package repositories need to be correctly configured
inside the chroot. I neither want to install 'pkg' itself to the chroot, nor
any repositories (since I build custom local repositories from a separate host
using Poudriere).

Ideally, I just want a simple way to redirect DESTDIR to /some/root and make
everything work cleanly from the host. 'pkg -r' is documented as:

pkg will install all packages within the specified <root directory>.

This seems correct since it will use 'pkg' configuration from the host.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.