ocaml / opam-repository

Main public package repository for opam, the source package manager of OCaml.
https://opam.ocaml.org
Creative Commons Zero v1.0 Universal
509 stars 1.1k forks source link

async_ssl needs a lower bound on ctypes-foreign #26180

Closed mseri closed 3 days ago

mseri commented 3 days ago

Needed to avoid the error ctypes.foreign not found where a too old version of ctypes-foreign is installed alongside a new version of ctypes

mseri commented 3 days ago

Failure


#=== ERROR while compiling async_ssl.v0.17.0 ==================================#
# context              2.2.0~rc1~dev | linux/x86_64 | ocaml-base-compiler.5.2.0 | file:///home/opam/opam-repository
# path                 ~/.opam/5.2/.opam-switch/build/async_ssl.v0.17.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p async_ssl -j 39
# exit-code            1
# env-file             ~/.opam/log/async_ssl-7-69e05b.env
# output-file          ~/.opam/log/async_ssl-7-69e05b.out
### output ###
# File "bindings/dune", line 39, characters 32-46:
# 39 |  (libraries ctypes.stubs ctypes ctypes.foreign base)
#                                      ^^^^^^^^^^^^^^
# Error: Library "ctypes.foreign" not found.
# -> required by library "async_ssl.bindings" in _build/default/bindings
# -> required by _build/default/META.async_ssl
# -> required by _build/install/default/lib/async_ssl/META
# -> required by _build/default/async_ssl.install
# -> required by alias install