Created attachment 199526 [details] fix: make mongodb version conditional on OSVERSION Mongodb34 does not build with openssl 1.1.x in 12.0. (See PR 230698) So unifi5 does not work anymore also. Fixing mongodb34 does not seam so trivial. Running unifi5 on mongodb36 would be the easy route forward. Any objections? I am aware Ubiquity advises mongodb 3.4 in their release notes. I have one report of a user using 3.6: https://lists.freebsd.org/pipermail/freebsd-ports/2018-November/114878.html
I tested unifi5 with mongodb36 on 11.2, looks ok.
I think this is reasonable.
I have never taken time to investigate this fully until now. I can say I understand the situation and we should not be afraid of MongoDB 3.6: The issue with MongoDB 3.6 on Linux seems to be that UniFi tries to pass the command line argument "--nohttpinterface" to mongod which fails on Linux because this argument does not exist in some versions of MongoDB 3.6. It appears it is a valid argument in the latest release, so whichever version was pinned for the affected Linux distro(s) is causing the headaches so they just tell everyone to use 3.4 https://community.ubnt.com/t5/UniFi-Routing-Switching/MongoDB-3-6/m-p/2322445#M86254 I have no idea why Ubiquiti cannot take 5 minutes to fix this issue...
A commit references this bug: Author: feld Date: Sun Nov 25 18:31:44 UTC 2018 New revision: 485888 URL: https://svnweb.freebsd.org/changeset/ports/485888 Log: net-mgmt/unifi5: Change dependency to mongodb36 This fixes package builds on FreeBSD 12 PR: 233482 MFH: 2018Q4 Changes: head/net-mgmt/unifi5/Makefile
A commit references this bug: Author: feld Date: Sun Nov 25 18:33:50 UTC 2018 New revision: 485889 URL: https://svnweb.freebsd.org/changeset/ports/485889 Log: MFH: r485888 net-mgmt/unifi5: Change dependency to mongodb36 This fixes package builds on FreeBSD 12 PR: 233482 Changes: _U branches/2018Q4/ branches/2018Q4/net-mgmt/unifi5/Makefile