tech-pkg archive

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

Re: get rid of LOCALBASE



On 03.12.2020 22:11, Jason Bacon wrote:
Under pkgsrc, help/directories.help seems to indicate the same logic as
FreeBSD ports, but there does not appear to be an alternative to
LOCALBASE underlying PREFIX, and PREFIX is not supposed to be overridden
(not the case in FreeBSD ports, PREFIX is explicitly set in rare cases):

# PREFIX
#    This is the directory where the package should install its
#    files. This is usually LOCALBASE.
#
#    Tags: read-only, system-defined, non-overridable, etc.
#
#    See also:
#        LOCALBASE.
#

# LOCALBASE
#    This is the directory where all packages are usually installed.
#    It is set by the user, and packages must not modify it.
#

Which leaves the question of specifically when the two might actually
differ.

There is a single package where they differ.  That package is
shells/standalone-tcsh, and it is excluded by all bulk builds exactly
because it overrides PREFIX to be "/".  No other package is allowed to
do this though.

If I remember correctly, I discussed this with Alistair somewhere
between 2005 and 2010, and he wanted to keep the package as-is.

If there are current or planned uses where PREFIX != LOCALBASE, then
probably we need to keep both.

1 current use, 0 planned uses (from my point of view).

Roland


Home | Main Index | Thread Index | Old Index