ocaml-ctypes icon indicating copy to clipboard operation
ocaml-ctypes copied to clipboard

bad META file

Open mobileink opened this issue 2 years ago • 1 comments

There’s something flaky about the ctypes package. The <switchprefix>/lib/ctypes/META file says package "foreign" ( directory = "foreign" version = "0.21.1" requires = "ctypes-foreign" ) But there is no /lib/ctypes/foreign directory. I've checked this for switchs 4.14.0 and 5.1.0~rc2.

The reference for META syntax says, wrt to the "directory" variable: "The base directory for subpackages is the package directory of the containing package.". So I think there's something wrong here.

Furthermore, the dune-package file says: (deprecated_library_name (old_public_name ctypes.foreign) (new_public_name ctypes-foreign))

The opam file has no relevant info. If I run ocamlfind query ctypes.foreign, the output is $HOME/.opam/5.0.0/lib/ctypes/foreign which does not exist.

mobileink avatar Sep 04 '23 22:09 mobileink

FWIW I'm having this problem too, but I suspect the problem is rather with dune's META file generation.

Workaround is to depend on ctypes-foreign.

dbuenzli avatar Sep 13 '23 09:09 dbuenzli