-
Notifications
You must be signed in to change notification settings - Fork 353
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: supporting other tools #5666
Comments
Cygwin support in opam is already present in the latest 2.2.0~alpha2 release, however we only support its builtin |
No, as far as I can see, there is no sign of the "separate" Cygwin installer. They install files in Looking at the CHANGES file from opam 2.2, I see something that seems relevant:
But I don't see a Anyway, thanks for the reply, I'll do a pull request for the depexts using |
By the way, there's something that's not entirely clear to me, about opam 2.2.0~alpha2:
From that phrase, I had the impression that I could get an opam binary and use it to install its own embedded Cygwin. However, the next section says that "This alpha requires a preexisting Cygwin installation for compiling opam", and I couldn't find any Windows binaries. Are such binaries intended to be released in the nearby future? Or did I misunderstand the instructions, and it will still be necessary to install Cygwin, and then compile opam? |
For the moment there is no Windows binaries, we are working on it. We plan to first have available Windows binaries, and in the end, an installer. |
On your previous comments, you talk about In opam 2.2, there is Cygwin support and depext Cygwin support, but as mentioned @kit-ty-kate, only using Cygwin installer On MobaXTerm, one way to add its support in opam is to add its detection, and its depext support.
You can take a look at |
Thank you very much for all these details. I'll see if our end-users (who actually use MobaXterm) will want to sponsor its support. Good to know it's possible and how to start doing it. Also thanks for the clarifications concerning the secondary questions. I compiled the opam 2.2 alpha release and I'm currently testing it. |
I just learned about the existence of MobaXterm. It's a Windows-based terminal, non-open-source but including a "free tier", that ships Cygwin and allows some of our users to install opam and our tool, based on its opam package.
Now, currently the major hurdle when using it, is that external dependencies are not handled by depext: if I run
opam depext <our tool>
, for instance, it will say "nothing to do", in part due to the fact that none of the relevantconf-
packages have thecygwin
package name in theiropam
file.However, MobaXterm offers a "MobApt package manager", which includes an
apt get
command that, despite the name, is not exactly the one from Debian; it installs the package from the Cygwin repository. For instance, I can typeapt install libgmp-devel
and get it installed. Then, if I runopam install conf-gmp
, installation will succeed.I'd like to help our users by adding such package names in the
depexts
of these packages, but since this tool is not currently supported by opam, I'm afraid that would be useless.For information,
opam config list
shows:And the package names are the ones we see when running the Cygwin graphical installer. So I could add
["libgmp-devel"] {os = "cygwin"}
to theopam
file ofconf-gmp
, and hope that in the future it will be taken into account, and opam will know to runapt install <package>
(or, more probably,apt -y install <package>
, to avoid prompting).Thus my question: is it useful to add such
depext
s? Or should support for MobApt be added to opam beforehand? Or is this never going to happen, since MobaXterm is not open source?By the way, I just tested with
conf-libfontconfig
(one of the only packages which has adepext
withos = "cygwin"
but not& os-distribution = "cygwinports"
), and it does say "Sorry, don't know how to install packages on your windows system". So indeed my question is two-sided:depext
s foros = cygwin
, will they be accepted for merging? Or should I wait for e.g. this system to be added asos-version = "mobapt"
or something like that, and then use it for thedepext
s, to avoid false positives? (Given that the package names are those from Cygwin, it would seem useful to me to keep the depexts as broad as possible)The text was updated successfully, but these errors were encountered: