ocaml-multicore / ocaml-uring

Bindings to io_uring for OCaml
ISC License
61 stars 17 forks source link

remove dlluring.so from install file list #111

Open olafhering opened 10 months ago

olafhering commented 10 months ago

It is unclear what the purpose of dlluring.so is. It is an ELF file with an SONAME (liburing.so.2). Nothing appears to link to this SONAME. Nothing appears to dlopen this SONAME. Nothing appears to open the dll name.

The presence of this ELF file causes the rpm package check to emit a Provides: liburing.so.2()(64bit). This conflicts with the system liburing package. The system package resolver is undecided which of the two provides are supposed to be used. Clearly the lib provided by OCaml can not be used by binaries which link to liburing.so.2 via ELF NEEDED.

talex5 commented 10 months ago

I believe it's used for building bytecode. https://dune.readthedocs.io/en/latest/dune-files.html#linking-modes says:

By default, Dune builds and installs dynamically-linked foreign archives (usually named dll*.so). It’s possible to disable this by setting by including (disable_dynamically_linked_foreign_archives true) in the workspace file, so bytecode executables will be built with all foreign archives statically linked into the runtime system.