|Summary:||lang/mono: fix kevent-based file system monitor on FreeBSD|
|Product:||Ports & Packages||Reporter:||Daniel Becker <razzfazz>|
|Component:||Individual Port(s)||Assignee:||freebsd-mono (Nobody) <mono>|
|Severity:||Affects Some People||CC:||dbn, driesm.michiels, joshruehlig, razzfazz, romain|
Description Daniel Becker 2016-01-25 03:21:06 UTC
Created attachment 166079 [details] patch with fixes to make kevent-based file system monitor work on FreeBSD Attached patch includes several fixes that are needed to make the kevent-based file system monitor work on FreeBSD (vs. Darwin). The patch should apply cleanly against the current version of the port. Also available on Github: https://github.com/mono/mono/compare/mono-126.96.36.199...razzfazz:mono-188.8.131.52-freebsd_port_patch
Comment 1 Kubilay Kocak 2016-01-25 05:59:10 UTC
Thanks Daniel! Could you confirm this change passes QA (portlint, poudriere) please
Comment 2 Daniel Becker 2016-01-25 06:07:47 UTC
Sorry, I haven't tried (nor am I familiar with) either of these.
Comment 3 Daniel Becker 2016-01-26 03:22:04 UTC
These changes are probably redundant with the ones in bug #198727.
Comment 4 Romain Tartière 2016-02-15 08:23:57 UTC
Hi Daniel, kqueue has been fixed and broken again quite many times. I would prefer an upstream fix rather than another local hack. Can you please consider refactoring the code in order to extend mono's ability to work with FreeBSD's kevent instead of replacing MacOS's kevent support? That way, both implementations would be able to exist side by side, and a new Factory would permit to choose the correct implementation at runtime? A pull request could then be created on GitHub. Feel free to notify me (@smortex) on GitHub in case I can help make this happen! Many thanks!
Comment 5 Daniel Becker 2016-08-19 21:36:57 UTC
Created attachment 173875 [details] updated patch for version 184.108.40.206 Adding updated patch for current port version 220.127.116.11; this is also available at <https://github.com/razzfazz/mono/tree/mono-18.104.22.168-freebsd_port_patch>.
Comment 6 Daniel Becker 2016-08-19 21:38:24 UTC
Comment 7 joshruehlig 2016-09-27 16:15:13 UTC
Is this planned to be added to upstream mono?
Comment 8 Daniel Becker 2016-11-04 07:04:03 UTC
Created attachment 176608 [details] updated patch for version 22.214.171.124 Attaching updated patch for current port version 126.96.36.199; this is also available at <https://github.com/mono/mono/compare/mono-188.8.131.52...razzfazz:mono-184.108.40.206-freebsd_port_patch>.
Comment 9 David Naylor 2016-11-06 08:07:37 UTC
I'm currently AFK, but I'll look at this on my return (21 November). In the interim would you please report the results of `make test`.
Comment 10 joshruehlig 2017-05-31 16:06:29 UTC
Daniel, Did you have a PR for this with mono? That would be nice if this could get upstreamed so there would not need to be a patch maintained. Also, is there an updated patch for mono v4.8.1? Thanks
Comment 11 Daniel Becker 2018-01-12 17:11:40 UTC
I did submit pull requests for these changes upstream; let me check whether all of them have been merged by now.
Comment 12 Daniel Becker 2018-01-20 08:09:41 UTC
Some parts of the patch are still not in upstream, and likely never will be (since they don't apply to and might break things on OSX); I didn't actually submit pull requests for those. That being said, it looks like the existing patch still applies cleanly to the mono version currently in the ports tree (220.127.116.11).