opam-repository-mingw icon indicating copy to clipboard operation
opam-repository-mingw copied to clipboard

depext-cygwinports and cygwin32

Open msprotz opened this issue 9 years ago • 4 comments

Hi there,

protz.github.io/ocaml-installer/ distributes an opam that I compiled (based on dra27's fork) ; the installer sets up this opam to point to your repository by default. The OCaml binaries are compiled by myself and installed by the installer; they're from the stock x86_64-mingw32-w64 port of OCaml.

depext-cygwinports works fine when the cygwin is 64-bit ; however, in a cygwin that's 32-bit, @markulf reports the following:

$ # Detecting depexts using flags: x86 mswindows win32
# The following system packages are needed:
#  -
opam-depext: internal error, uncaught exception:
             Failure("Sorry, don't know how to install packages on your system")

any idea what may be happening?

Thanks,

Jonathan

msprotz avatar Jan 05 '16 10:01 msprotz

Sorry, this repository is not intended to work with dra27's fork at the moment. If it works for 64-bit cygwin, it's just luck. The provided opam binaries (linked at https://github.com/fdopen/opam-repository-mingw/blob/master/README.md ) are based on opam's main repository (from november) - with some dirty patches, so that the package descriptions (intended for unix) require as little changes as possible and will work with cygwin only. A cleaner solution, which dra27 probably intends, would require additonal changes to the package descriptions (e.g. regarding exe suffixes, etc.).

Better link to dra27's mingw-repository ( https://github.com/dra27/opam-repository/tree/opam-windows ?) for his fork.

fdopen avatar Jan 05 '16 13:01 fdopen

Alright, but the reason I'm making my opam point to your repository is to take advantage of cygwinports and depext-cygwinports. dra27's OPAM repository doesn't have that, does it?

Any chance you could submit a pull request for depext-cygwinports to the main OPAM repository?

msprotz avatar Jan 05 '16 13:01 msprotz

It's awkward to test and to push upstream. In order to be useful, you have to make sure that dra27's fork and upstream opam-depext will support it. And you have to modify all packages descriptions that require external dependencies. Perhaps I will look into it later, but at the moment I'm too busy.

fdopen avatar Jan 05 '16 13:01 fdopen

and upstream opam-depext will support it. And you have to modify all packages descriptions that require external dependencies.

I think that's a very good idea. We started to add support for much more distibs in opam-depext and the main repo already, patches to better support cygwin are welcome too!

samoht avatar Apr 10 '16 20:04 samoht