coq / coq.github.io

Source files of the coq.inria.fr website
https://coq.inria.fr/
Other
15 stars 37 forks source link

Installation instructions do not work on latest version of opam #175

Closed JasonGross closed 2 years ago

JasonGross commented 3 years ago

Description of the problem

https://coq.inria.fr/opam-using.html says

Depending on your operating system, installing Coq using opam may require you to first install some system packages. The recommended way to determine the names of required system packages is via the opam-depext tool:

opam install opam-depext
opam-depext coq

However, the first command gives

[ERROR] opam-depext unmet availability conditions, e.g. 'opam-version >= "2.0.0~beta5" & opam-version < "2.1"'
JasonGross commented 3 years ago

It seems that the step is no longer needed on newer versions of opam, so the docs should mention that this step is only required on opam < 2.1

Zimmi48 commented 3 years ago

Does opam-depext still work (without the previous step) or did the syntax change?

We have a related issue that the platform scripts are broken with opam 2.1 (coq/platform#116). It would be convenient if it could be fixed by just skipping the broken step in case opam >= 2.1 is detected.

[Transferring to the relevant repo since it's a website issue]

Zimmi48 commented 3 years ago

BTW, if you know what to change, feel free to open a PR. The relevant file is: https://github.com/coq/www/blob/master/pages/opam-using.html

JasonGross commented 3 years ago

Does opam-depext still work (without the previous step) or did the syntax change?

No, there is no opam-depext anymore, it happens automatically with opam install.

It would be convenient if it could be fixed by just skipping the broken step in case opam >= 2.1 is detected.

Yes, we can just skip the opam depext steps in this case, as long as we can pass "y" to the relevant prompt.