diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-09-04 08:49:39 -0400 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2023-09-05 09:05:24 +0530 |
commit | fe9af72684f85d709ce45096534aa51854a6da9b (patch) | |
tree | 0b41f1df5e985a9943bc7f3d321f47786a7e9291 /docs/markdown/snippets | |
parent | f07476a89677f5c87a62b6756b76a0e8ebc4bceb (diff) | |
download | meson-fe9af72684f85d709ce45096534aa51854a6da9b.zip meson-fe9af72684f85d709ce45096534aa51854a6da9b.tar.gz meson-fe9af72684f85d709ce45096534aa51854a6da9b.tar.bz2 |
wrap: Use MESON_PACKAGE_CACHE_DIR as default packagecache path
Allow packagecache to contain already extracted directory to match what
some distro does with Cargo source packages in /usr/share/cargo/registry.
Note that there is no need to lock the cache directory because we
download into a temporary name and atomically rename afterward. It means
we could be downloading the same file twice, but at least integrity is
guaranteed.
Fixes: #12211
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/meson_home.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/meson_home.md b/docs/markdown/snippets/meson_home.md new file mode 100644 index 0000000..2d656fc --- /dev/null +++ b/docs/markdown/snippets/meson_home.md @@ -0,0 +1,7 @@ +## New environment variable `MESON_PACKAGE_CACHE_DIR` + +If the `MESON_PACKAGE_CACHE_DIR` environment variable is set, it is used instead of the +project's `subprojects/packagecache`. This allows sharing the cache across multiple +projects. In addition it can contain an already extracted source tree as long as it +has the same directory name as the `directory` field in the wrap file. In that +case, the directory will be copied into `subprojects/` before applying patches. |