/usr/bin/dot -Tpng -Goverlap=false /var/lib/ntop/ntop.dot -o /var/lib/ntop/network_map.png 2>&1 Error: Could not find/open font Reproducible: Always Steps to Reproduce: 1. goto http://localhost:3000/ 2. select ip > local > network trafic map 3. will give the above error here
Created attachment 160276 [details] emerge info from the host
net-analyzer/ntop-3.2-r3 USE="ssl tcpd zlib -ipv6 -nls -snmp" is my use flags
Please try version 3.3.6.
same problem in 3.3.6 here
Created attachment 160331 [details] segfaults olso seen here
It works in my case. The /var/lib/ntop/ntop.dot file begins with: digraph ntop { node [shape = polygon, sides=4, fontsize=9, style=filled, fontname="Helvetica"]; Install one of the following fonts and see if it fixes your problem: media-fonts/liberation-fonts-ttf media-fonts/urw-fonts media-fonts/font-adobe-75dpi media-fonts/font-adobe-100dpi Please try all of them, one by one. If all/part of them work, I will add the proper dependency atom to RDEPEND.
Created attachment 160384 [details] adobe font will need x11 libs :/ 2 other fonts ebuilds did not help either :(
I'm open to suggestions... Folks in fonts & x11 team, do you have a lightweight solution to this problem? In short, I need Helvetica font family, but want to keep dependencies as lightweight as possible.
(In reply to comment #8) > Folks in fonts & x11 team, do you have a lightweight solution to this problem? > In short, I need Helvetica font family, but want to keep dependencies as > lightweight as possible. What exactly is getting pulled in? Whatever it is, I doubt it will shrink any.
See the font-depends.log.
is this font depends not olso another bug that dont respect -x use flags and install x11 libs anyway ?
I found another package with Helvetica fonts: media-fonts/gnu-gs-fonts-std This package don't depend on anything else.
Some of those may be avoidable, but I'm not sure yet. I'll look into the upstream dependencies a bit more.
I was able to remove the libX11 dep in mkfontscale, which will also remove anything below that if it isn't in another part of the tree. That's all I can do.
Thanks! @reporter: Please test if the fonts I told you about fix the ntop segfault.
(In reply to comment #15) > @reporter: Please test if the fonts I told you about fix the ntop segfault. Installing gnu-gs-fonts did resolved graph creation, at least for me.
Fixed in ntop-3.3.8 by adding media-fonts/corefonts to run-time dependencies and setting env var GDFONTPATH to /usr/share/fonts/corefonts before starting the daemon. I've tested several other fonts (including gnu-gs-fonts-std) but this was the only one that worked. Closed as FIXED.