-
Notifications
You must be signed in to change notification settings - Fork 359
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
opam install ocamlmod fails on Cygwin32 #2253
Comments
I looked at a few other packages that do install successfully, e.g.:
|
Unless we ask for all packages to dynamically generate their Not sure if it's worth the trouble as |
I would also be rather against this. |
Fair enough. What are you proposing as an alternative? Some random thoughts:
|
Le vendredi, 17 juillet 2015 à 10:08, Luke Dunstan a écrit :
Why not ? Patch (all the needed functionality is already in opam, see patches: field) and report upstream.
If oasis generates broken windows installs this should certainly be reported there. But rereading your initial issue it seems to me that it's the package description itself that is broken. It should not have a .install file since oasis is in charge of (correctly it seems) installing it. Best, Daniel |
OK, thanks. I did wonder about whether there was a good reason for |
See ocaml/opam#2253 for the motivation
See ocaml/opam#2253 for the motivation
@Infidel I updated BTW, it would be nice to have a test script for Appveyor. Would you have some code ready? |
Works for my test. Appveyor in progress https://ci.appveyor.com/project/infidel/ocamlmod-appveyor (it's just the opam appveyor.yml plus a few steps) |
I felt like giving OCaml and OPAM on Windows a try and had a lot of issues, but the latest one looks like a portability problem in OPAM. The error is:
The problem is that "ocaml setup.ml -install" correctly copies ocamlmod.byte to ~/.opam/system/bin/ocamlmod.exe, but the install command above specifies the destination without the ".exe" extension, and Cygwin's "install" doesn't permit such ambiguity. The contents of "ocamlmod.install" are:
Purely as a test I tried changing this (which seems to be impossible using pinning alone?) to
bin: ["_build/src/ocamlmod.byte" {"ocamlmod.exe"}
and this fixes the problem, but obviously is only appropriate on Windows, so do you agree that OPAM should append ".exe" automatically somehow? I also triedbin: ["_build/src/ocamlmod.byte"]
and it results in installation of the file using both names ("ocamlmod.exe", "ocamlmod.byte").Alternatively, is there some clean way to fix this in the opam file for ocamlmod?
P.S. I did notice the existence of #246
The text was updated successfully, but these errors were encountered: