Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

detect libinotify on FreeBSD - #40202

Merged
wfurt merged 1 commit into
dotnet:masterfrom
wfurt:inotify
Aug 26, 2019
Merged

wfurt merged 1 commit into
dotnet:masterfrom
wfurt:inotify

Conversation

@wfurt

@wfurt wfurt commented Aug 9, 2019

Copy link
Copy Markdown
Member

this is follow-up on discussion in #39680
This change allows to detect if libinotify is present and if so use it. I did not run tests (yet) but this sets HAVE_INOTIFY appropriately and links with library:

[furt@FreeBSD-11 ~/git/wfurt-corefx]$ ldd artifacts/bin/native/FreeBSD-x64-Debug/System.Native.so
artifacts/bin/native/FreeBSD-x64-Debug/System.Native.so:
	libthr.so.3 => /lib/libthr.so.3 (0x801000000)
	libinotify.so.0 => /usr/local/lib/libinotify.so.0 (0x801228000)
	libc.so.7 => /lib/libc.so.7 (0x800825000)

I also verify that detection still works and HAVE_INOTIFY is set.

cc: @rootwyrm @joperator

@wfurt wfurt added the os-freebsd FreeBSD OS label Aug 9, 2019
@wfurt
wfurt requested a review from janvorli August 9, 2019 23:11
@wfurt wfurt self-assigned this Aug 9, 2019
@rootwyrm

Copy link
Copy Markdown

I get the gist of this one, but the patches aren't applying cleanly against what Mono 6.0.0.313 has. I need to tweak the patches to confirm they work there as well.

@stephentoub

Copy link
Copy Markdown
Member

@wfurt, can this be merged?

@wfurt
wfurt merged commit 29e4b76 into dotnet:master Aug 26, 2019
@karelz karelz added this to the 5.0 milestone Dec 19, 2019
@wfurt
wfurt deleted the inotify branch June 15, 2020 18:20
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

os-freebsd FreeBSD OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants