Bug 255600 - Mk/bsd.port.mk: Set XDG_CACHE_HOME in CONFIGURE_ENV and MAKE_ENV
Summary: Mk/bsd.port.mk: Set XDG_CACHE_HOME in CONFIGURE_ENV and MAKE_ENV
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-04 21:57 UTC by Yuri Victorovich
Modified: 2021-06-08 13:11 UTC (History)
2 users (show)

See Also:
tobik: exp-run?


Attachments
XDG_CACHE_HOME.patch (1.16 KB, patch)
2021-05-04 21:57 UTC, Yuri Victorovich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 2021-05-04 21:57:05 UTC
Created attachment 224670 [details]
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.
Comment 1 Tobias Kortkamp freebsd_committer 2021-06-08 13:11:56 UTC
So is an exp-run the next step here?