explicit bytes dependency causes depending packages to not build
Task Info (Flyspray) | |
---|---|
Opened By | Daniel Peukert (dpeukert) |
Task ID | 78579 |
Type | Bug Report |
Project | Community Packages |
Category | Packages |
Version | None |
OS | All |
Opened | 2023-05-23 21:30:20 UTC |
Status | Assigned |
Assignee | Jürgen Hötzel (juergen) |
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.