tech-pkg archive

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

Re: get rid of LOCALBASE



On 12/4/20 11:03 AM, Jonathan Perkin wrote:
* On 2020-12-04 at 16:46 GMT, Roland Illig wrote:

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.
And security/mozilla-rootcerts-openssl </pedant>

Those indeed seem to be the only two:

Linux centosdev.uits  bacon ~ 585: (pkgsrc): pkg-grep ^PREFIX=
security/mozilla-rootcerts-openssl/Makefile:PREFIX=            /
shells/standalone-tcsh/Makefile:PREFIX=            /
Linux centosdev.uits  bacon ~ 586: (pkgsrc):




Home | Main Index | Thread Index | Old Index