After struggling to build x11-toolkits/libgdiplus (bug #213973) I finally succeeded, but I think it isn't needed , since sonarr version 184.108.40.20626 ran fine with mono 4.6.1 before installing libgdiplus and 220.127.116.1174 runs fine with mono 4.6.1 on my system after force-removing the automatically pulled in libgdiplus package. I didn't test 18.104.22.16870 though.
FreeBSD 199-SERVER 11.0-STABLE FreeBSD 11.0-STABLE #3 r308338: Sat Nov 5 14:00:11 CET 2016 root@199-SERVER:/usr/obj/usr/src/sys/MASK amd64
Here's some info from the sonarr webinterface:
4.6.1 (Stable 22.214.171.124/ef43c15 Sat Nov 5 10:14:47 UTC 2016)
~# mono -V
Mono JIT compiler version 4.6.1 (Stable 126.96.36.199/ef43c15 Sat Nov 5 10:14:47 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
If somebody could confirm so it can be removed from the dependencies? it really pulls in a looot of stuff I can live without.
Sorry for the noise, it really does crash when running maintenance tasks (series refresh, etc), didn't notice it the first few hours. Maybe upstream (https://github.com/Sonarr/Sonarr/issues/1529, https://forums.sonarr.tv/t/sonarr-on-linux-now-crashing-after-a-few-secs/12254) will do something about it.
As of master v188.8.131.5289 sonarr has an additional check for the presence of libgdiplus and no longer crashes when it's not there. So the libgdiplus dependency can be made optional (maybe with a hint, that cairo needs to be built with X11 support to build libgdiplus successfully at the moment). It's needed for image resizing.
Please see https://github.com/Sonarr/Sonarr/issues/1529 and https://github.com/Sonarr/Sonarr/commit/b093be3f4e16ebd2dcbb286f57aca4ec74be0b6f
A commit references this bug:
Date: Sat Nov 12 19:13:08 UTC 2016
New revision: 425985
net-p2p/sonarr: Make X11 optional
X11 dependencies were added to resolve a crashing issue in newer
versions of sonarr. This has been resolved upstream and is now optional.
The role of X11 (libgdiplus) is to enable image file resizing.
X11 in libgdiplus is now optional (see #213973) so it can now be added as a standard dependency again without the need to have cairo or anything else built with X11.