-
Notifications
You must be signed in to change notification settings - Fork 233
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
Compatibility with recent menhir #1824
Comments
I think the issue is that the Merlin package should be built in release mode, not in dev move: we ship the generated parser so that the release version of Merlin does not actually depend on Menhir. You can use: |
In Debian we prefer working from the sources, so we don't use pre-generated files : we regenerate them ourselves. |
I understand that, but it is not the way Merlin is meant to be built in production environments. The parser file is promoted to the sources exactly because we don't want the package to depend on Menhir. Additionally, building in release mode is really what should be done anyway, and that for any OCaml package, since it might enable additional optimizations and build only what is necessary. It is how opam does it. |
As I said, we want to use the sources. Notice that you'll still need to enable a more recent menhir at some point. |
Absent a patch for Merlin itself to make it compatible with the latest Menhir (which would make it incompatible with older versions of it), you could disable the warning from outside the build by setting the environment variable |
@nojb: Yes, at one point merlin will need a patch, and will release a fixed version. That is what this is report is about. In the meantime I'll follow the hint of disabling the warning, thanks. @voodoos: In many projects (C-based), autotools are used, and likewise the developpers have a huge set of deps, but they ship tarballs with pre-generated files and a lower number of deps. What do we do in Debian? We build the packages with the huge set of deps, we re-generate everything from genuine sources, and we ship packages with the reduces deps... The distinction source-generated isn't based on developer declaration, but on where the file is in the written-by-hand to computer-run continuum. |
Merlin 5.1-502 doesn't compile with menhir 20240715 ; I have an error report against the Debian package here ; here is the error message for easier reference:
The text was updated successfully, but these errors were encountered: