FS#78579 - [ocaml-ctypes] explicit bytes dependency causes depending packages to not build
Attached to Project:
Community Packages
Opened by Daniel Peukert (dpeukert) - Tuesday, 23 May 2023, 21:30 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:06 GMT
Opened by Daniel Peukert (dpeukert) - Tuesday, 23 May 2023, 21:30 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:06 GMT
|
Details
Not exactly sure what changed in ocaml 5.0 with regards to
this, but when building a package that depends on
`ocaml-ctypes`, the compiler now complains:
``` Running[1]: (cd src/c && /sbin/ocaml -I +compiler-libs /tmp/trizen-skaro/ocaml-luv/src/luv-0.5.12/_build/.dune/default/src/c/dune.ml) Actual targets: - recursive alias @install File "/usr/lib/ocaml/ctypes/META", line 1, characters 0-0: Error: Library "bytes" not found. -> required by library "ctypes" in /usr/lib/ocaml/ctypes -> required by _build/default/META.luv_unix -> required by _build/install/default/lib/luv_unix/META -> required by _build/default/luv_unix.install -> required by alias install ``` As `bytes` is a part of the compiler since 4.02, not requiring it explicitly should be fine and sure enough, when I apply this patch, everything seems to work: ``` --- a/META +++ b/META @@ -1,6 +1,6 @@ version = "0.20.2" description = "Combinators for binding to C libraries without writing any C." -requires = "bigarray-compat bytes integers" +requires = "bigarray-compat integers" archive(byte) = "ctypes.cma" archive(byte, plugin) = "ctypes.cma" archive(byte, toploop) = "ctypes.cma ctypes-top.cma" ``` I've also applied the same fix (https://github.com/OCamlPro/ocplib-endian/pull/26) to the `ocaml-ocplib-endian` AUR package, which had the same issue, no problems there as well. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:06 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/ocaml-ctypes/issues/1
Saturday, 25 November 2023, 20:06 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/ocaml-ctypes/issues/1