Is NO_PKG_REGISTER still supposed to work?
kpaasial at gmail.com
Sat Feb 7 12:52:44 UTC 2015
On Sat, Feb 7, 2015 at 10:56 AM, Matthew Seaman <matthew at freebsd.org> wrote:
> On 2015/02/07 01:31, Kimmo Paasiala wrote:
>> From bsd.port.mk:
>> # NO_PKG_REGISTER
>> # - Don't register a port installation as a package.
>> However, testing this with a port results in the port installation
>> performing the staging part only and the final installation from the
>> stage directory on to the system being skipped when NO_PKG_REGISTER is
>> set. Is this still supposed to work?
> I doubt it. pkg(8) doesn't have the capability to install a package
> without updating the package database. Plus why would you even want to
> do that nowadays? As I recall NO_PKG_REGISTER was a work-around for not
> having staging or tools like poudriere where you can build a package
> without scribbling on your live system.
Would it be a good idea to remove it completely from bsd.port.mk for
clarity and simplifying the code? I can see a few places in the file
where it it's used in conditions and those look like no-ops now
assuming NO_PKG_REGISTER is not used by anyone anymore.
More information about the freebsd-ports