[Bug 225378] devel/glib20: Fix mime search path when LOCALBASE != /usr/local (honour LOCALBASE)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 22 Oct 2023 01:05:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225378

--- Comment #13 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Gleb Popov from comment #12)
I disagree. Patching is correct but suboptimal.

/usr/local in XDG is based on Linux FHS aka GNU hier(7). /usr/local should
*not* be modified by system package manager. NetBSD made PkgSrc compatible by
changing LOCALBASE default while FreeBSD takes advantage of ambiguity/mess
under POLA banner.

FreeBSD hier(7) cannot guarantee /usr/local exists outside of ports(7) context.
Nowadays, /usr/local is semi-standardized (used by base system but not
documented in hier(7) yet) as LOCABLASE environment variable with "sysctl
user.localbase" fallback.

FreeBSD equivalent of /usr/local in GNU hier(7) would be any custom
non-conflicting top-level directory like /local. Given FreeBSD already uses
"local" to denote site-local configuration (e.g., rc.conf vs. rc.conf.local)
top-level /local can be a natural extension even if not defined by hier(7). 

See also
https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s09.html
https://github.com/netbsd/pkgsrc/commit/41ed126f8745
https://wiki.freebsd.org/WarnerLosh/UsrLocal

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