When grabbing the dependencies of crates which depend on a system package, like libgmp
, it will try to install the appropriate dependency with your system's package manager. By default this appears to be done by using sudo
.
If however you're running as root, without the sudo
command installed this will fail. An example in which this situation might come up is if you're building a docker container, as by default this will normally be done as root.
This is not a blocking issue as you can just manually install the system dependency first, and then Alire will not attempt to install it, though would be a nice quality of life improvement. Maybe Alire could check to see if the sudo
command is available, if the current user has permissions to use sudo
, or something similar?
This could also help make a more descriptive error message. Currently it is not clear from just the error message what the issue was:
ERROR: Deployment of system package from platform software manager: libgmp-dev from system packages failed
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too