-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache path in packages #3970
Comments
Good catch. I’m also voting for |
But that's only for liquidsoap user, all other users should use their own home dir. I'm currently experimenting with the following set of changes:
|
Thanks for reporting. I initially used https://github.com/ocamlpro/directories but then switched to The code for cache dir, though, is: (** $XDG_CACHE_HOME or $HOME/.cache *)
let cache_dir =
match getenvdir "XDG_CACHE_HOME" with
| None -> option_map (fun dir -> dir / ".cache") home_dir
| Some _dir as dir -> dir So, not much help either. I think that the right logic shouold be to include the cache dir in the posix build target the same way we do for other paths. For those builds, we expect a system-wide install and will use |
If the user is not
I think debian and ubuntu packages should have a prebuilt stdlib cache, but I'm not sure about the alpine package. I'd prefer a separate package with cache, like it's done with python packages in alpine official repos. |
Yes, there are two caches indeed, on for stdlib that should be shared and one for user scripts. I'll work on cleaning that up. Also, feel free to expand for the PR I started if you want. |
Describe the bug
By default, the Ubuntu package sets the home directory for the liquidsoap user to
/usr/share/liquidsoap
, but theliquidsoap
user does not have write access to the home directory, so it generatesError while loading cache: Sys_error("/usr/share/liquidsoap/.cache: Permission denied")
error.To Reproduce
/tmp/main.liq
sudo -u liquidsoap liquidsoap /tmp/main.liq
Expected behavior
/var/cache/liquidsoap
with ownerliquidsoap:liquidsoap
and permissions0755
.Version details
Install method
Package from the github ci pipeline artifacts.
Common issues
#3949
The text was updated successfully, but these errors were encountered: