Closed marian-cingel closed 12 months ago
Hi, thanks for this! In case you weren't aware, there was an earlier attempt to port to FreeBSD that stalled: #170
Hi, thanks for this! In case you weren't aware, there was an earlier attempt to port to FreeBSD that stalled: #170
Hello, no problem, thanks for creating the Laminar in a first place. Yes, I saw the #170. Fortunately I don't have any issues with autoptr, using Clang/LLVM_17 on FreeBSD14. Maybe in week or two I will add a FBSD support for PathWatcher, so please wait with this MR. FYI: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273827
Looks good so far. Waiting in case PathWatcher comes along.
Looks good so far. Waiting in case PathWatcher comes along.
Done. It requires to just add libinotify library in CMakeLists.txt - a bridge between inotify API and FBSD kqueue. Do you want to keep "#ifndef WATCH_PATHS_UNSUPPORTED" in server.cpp ? In case someone wants to run it on more exotic systems or should I remove it completely ?
I'd prefer you remove it, it will be easy to reintroduce if we ever need it
I'd prefer you remove it, it will be easy to reintroduce if we ever need it
done. All changes are squashed as single commit.
Update CMakeList to support installation to PREFIX directory
Inotify does not exists on FBSD - disable WatchPaths for now
FreeBSD does not support anonymous socket, so explicit 'LAMINAR_BIND_RPC=IP:port' is required
/proc, required by Laminar, is usually not mounted on FBSD, so: 'mount -t procfs proc /proc'
or add into /etc/fstab: 'proc /proc procfs rw 0 0'
ld.lld requires explicit emulation for binary blobs, add a new variable LINKER_EMULATION_FLAGS for this purpose