fdopen / opam-repository-mingw

windows package repository for OPAM (mingw and msvc)
https://fdopen.github.io/opam-repository-mingw/
Creative Commons Zero v1.0 Universal
96 stars 34 forks source link

Cherry-picked from ocaml/opam-repository#13797 #55

Closed yakobowski closed 5 years ago

yakobowski commented 5 years ago

This version is Windows compatible.

fdopen commented 5 years ago

You only need to create pull request for packages that require special patches or install instructions for windows. Otherwise the repo is synced with the main repo automatically.

The merge scripts run basics checks for windows compatibility. The scripts will for example detect that your Makefile still calls cpp (instead of i686-w64-mingw32-cpp / x86_64-w64-mingw32-cpp). plain cpp might not be installed and could include the wrong headers, macros, etc. ( 4558d8793600e221b03dfac3c8bbc0935c989b68 )

yakobowski commented 5 years ago

Interesting, thanks for the precision. Can I download the merge scripts somewhere, to run them locally? I'm wiling to patch the various packages I need until they are considered buildable, but it would be more efficient for everyone involved to avoid back-and-forth.

fdopen commented 5 years ago

No, the scripts depend on non-public libraries. But you can track external calls like in the current case with:

opam config set depext-cygwinports-install-wrappers true
opam (re)install depext-cygwinports
eval $(ocaml-env cygwin)
export DEPEXT_WRAPPER_LOG="$(cygpath -m /tmp/call.log)"
opam install <your packages> # calls to unprefixed tools will be logged to '/tmp/call.log'