Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231705 - net-analyzer/ntop-3.2-r3 missing font
Summary: net-analyzer/ntop-3.2-r3 missing font
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-13 18:51 UTC by Benny Pedersen
Modified: 2008-10-05 13:16 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info from the host (emerge.info,3.08 KB, text/plain)
2008-07-13 18:57 UTC, Benny Pedersen
Details
segfaults olso seen here (segfaults.log,257 bytes, text/plain)
2008-07-14 13:59 UTC, Benny Pedersen
Details
adobe font will need x11 libs :/ (font-depends.log,3.34 KB, text/plain)
2008-07-14 20:12 UTC, Benny Pedersen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benny Pedersen 2008-07-13 18:51:35 UTC
/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
Comment 1 Benny Pedersen 2008-07-13 18:57:04 UTC
Created attachment 160276 [details]
emerge info from the host
Comment 2 Benny Pedersen 2008-07-13 18:59:16 UTC
net-analyzer/ntop-3.2-r3  USE="ssl tcpd zlib -ipv6 -nls -snmp"

is my use flags
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2008-07-14 07:16:36 UTC
Please try version 3.3.6.
Comment 4 Benny Pedersen 2008-07-14 13:59:03 UTC
same problem in 3.3.6 here



Comment 5 Benny Pedersen 2008-07-14 13:59:47 UTC
Created attachment 160331 [details]
segfaults olso seen here
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2008-07-14 19:15:36 UTC
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. 
Comment 7 Benny Pedersen 2008-07-14 20:12:49 UTC
Created attachment 160384 [details]
adobe font will need x11 libs :/

2 other fonts ebuilds did not help either :(
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2008-07-14 20:20:30 UTC
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.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2008-07-15 17:44:37 UTC
(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.
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2008-07-15 17:51:47 UTC
See the font-depends.log.
Comment 11 Benny Pedersen 2008-07-15 18:46:04 UTC
is this font depends not olso another bug that dont respect -x use flags and install x11 libs anyway ?
Comment 12 Alin Năstac (RETIRED) gentoo-dev 2008-07-15 19:58:57 UTC
I found another package with Helvetica fonts:
   media-fonts/gnu-gs-fonts-std
This package don't depend on anything else.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2008-07-16 19:50:09 UTC
Some of those may be avoidable, but I'm not sure yet. I'll look into the upstream dependencies a bit more.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2008-07-17 00:07:05 UTC
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.
Comment 15 Alin Năstac (RETIRED) gentoo-dev 2008-07-17 05:53:34 UTC
Thanks!

@reporter: Please test if the fonts I told you about fix the ntop segfault.
Comment 16 Philippe Brand 2008-09-11 09:49:18 UTC
(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.


Comment 17 Alin Năstac (RETIRED) gentoo-dev 2008-10-05 13:16:41 UTC
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.