Bug 233482 - net-mgmt/unifi5: does not build on 12.0 (mongodb34 not available)
Summary: net-mgmt/unifi5: does not build on 12.0 (mongodb34 not available)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Mark Felder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-24 22:57 UTC by Ronald Klop
Modified: 2018-11-25 18:35 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (feld)


Attachments
fix: make mongodb version conditional on OSVERSION (602 bytes, patch)
2018-11-24 22:57 UTC, Ronald Klop
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Klop 2018-11-24 22:57:41 UTC
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
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2018-11-25 10:23:17 UTC
I tested unifi5 with mongodb36 on 11.2, looks ok.
Comment 2 Mark Felder freebsd_committer freebsd_triage 2018-11-25 18:05:52 UTC
I think this is reasonable.
Comment 3 Mark Felder freebsd_committer freebsd_triage 2018-11-25 18:30:38 UTC
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...
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-11-25 18:32:22 UTC
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
Comment 5 commit-hook freebsd_committer freebsd_triage 2018-11-25 18:34:25 UTC
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