[Bug 255600] Mk/bsd.port.mk: Set XDG_CACHE_HOME in CONFIGURE_ENV and MAKE_ENV
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue May 4 21:57:05 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255600
Bug ID: 255600
Summary: Mk/bsd.port.mk: Set XDG_CACHE_HOME in CONFIGURE_ENV
and MAKE_ENV
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Ports Framework
Assignee: portmgr at FreeBSD.org
Reporter: yuri at freebsd.org
CC: ports-bugs at FreeBSD.org
Created attachment 224670
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=224670&action=edit
XDG_CACHE_HOME.patch
Currently XDG_DATA_HOME and XDG_CONFIG_HOME are set in CONFIGURE_ENV and
MAKE_ENV.
The attached patch also sets XDG_CACHE_HOME.
Without XDG_CACHE_HOME some software (for ex.
https://github.com/coursier/coursier) still writes into /home/{user}/.cache. My
guess is that they compute the string /home/{user}/.cache based on the current
user name, because it isn't mentioned anywhere else in the environment.
XDG_CACHE_HOME is described in the XDG Base Directory Specification
(https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).
Setting XDG_CACHE_HOME along with CONFIGURE_ENV and MAKE_ENV is a natural thing
to do.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list