-
Notifications
You must be signed in to change notification settings - Fork 368
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
depext: opam tries to be intelligent but fails; permit to choose the system package manager #5026
Comments
I just found I.e
|
Seems that opam fails to check that emacs defined package is installed. It doesn't check is the binary exists, but according to what is defined in the
What is your distribution? Did you installed emacs via your distribution package manager? It will help us to see why opam didn't find that package. On the bypass, it's better to use the |
I use ubuntu 18.04.6 LTS. Emacs is installed as:
In general, it feels weird to to ask the default package manager what software is available. apt is only one way to install softwre. Compiling from source is another. Using snap is yet another option. Using alternative ppa:s with different builds and version (as I did) is also common. |
In most common cases (from all distro point of view), users use their system package manager. It is a good feature to permit user to choose its system package manager between handled ones: snap versus apt for example ; and store it in the config. |
We definitely need to improve the prompts, you're not the first one stumbling here:
You just had to answer
Maybe something like |
A possibility would be to "flatten" all these embedded y/n questions, resulting in a menu like:
It's a little bit of reading but at least everything is on the table... |
Please, just keep it simple. If a requirement is missing on the host, just tell the user. Don't try to be smart and assume a specific package manager etc. When checking for a requirement, check the actual requirement and do not assume or guess how a host requirement is registered in the system. If emacs is a requirement, just run "emacs --version" or similar to check the existence of emacs. The worst solution is when one package manager invokes another package manager to install requirements. |
Thoughts from today's dev meeting:
Possible UI issues to look at for 2.3, therefore. |
Fixed by #5053 |
How to bypass the failing check of host dependencies in opam?
The text was updated successfully, but these errors were encountered: