Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf-fswatch needs update #22256

Open
mseri opened this issue Oct 13, 2022 · 2 comments
Open

conf-fswatch needs update #22256

mseri opened this issue Oct 13, 2022 · 2 comments

Comments

@mseri
Copy link
Member

mseri commented Oct 13, 2022

Ubuntu is shipping the library libfswatch inside the binary fswatch package since after 2018

@kandu
Copy link
Contributor

kandu commented Oct 14, 2022

Hi, @mseri,

This is a known issue. The new version of fswatch packaged in debian/ubuntu is currently of broken status in my opinion.

The previous libfswatch-dev package placed the shared object in the right place while the new one didn't.

I don't understand why they made such an unnecessary broken change, not to mention the debian policy of packaging(runtime/develop/source).

Even if it means something which I don't understand, then in the deb package, either would help:

  1. update ld.conf.d in the post-installation phase.
  2. add some cmake or pkg-config file to help developers find the right path to link, so we can hard code the RPATH(another bad idea)

But fswatch packagers did neither.

Since debian is the upstream distribution of ubuntu, we can take a look after a new debian version is released.

@kandu
Copy link
Contributor

kandu commented Mar 24, 2023

Quoted from kandu/ocaml-fswatch#2 (comment), a way to workaround this issue.

But we can complement the broken debian package on our own.

1. Suppose we are in a debian x86-64 system: add a file named `fswatch.conf` to `/etc/ld.so.conf.d` . and the content of it is `/usr/lib/x86_64-linux-gnu/libfswatch`  then invoke `ldconfig`

2. `LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libfswatch opam install fswatch_async fswatch_lwt`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants