Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 231705
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Alin Năstac <mrness@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Benny Pedersen <me@junc.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
emerge.info emerge info from the host text/plain Benny Pedersen 2008-07-13 18:57 0000 3.08 KB Details
segfaults.log segfaults olso seen here text/plain Benny Pedersen 2008-07-14 13:59 0000 257 bytes Details
font-depends.log adobe font will need x11 libs :/ text/plain Benny Pedersen 2008-07-14 20:12 0000 3.34 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 231705 depends on: Show dependency tree
Bug 231705 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-07-13 18:51 0000
/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 From Benny Pedersen 2008-07-13 18:57:04 0000 -------
Created an attachment (id=160276) [details]
emerge info from the host

------- Comment #2 From Benny Pedersen 2008-07-13 18:59:16 0000 -------
net-analyzer/ntop-3.2-r3  USE="ssl tcpd zlib -ipv6 -nls -snmp"

is my use flags

------- Comment #3 From Alin Năstac 2008-07-14 07:16:36 0000 -------
Please try version 3.3.6.

------- Comment #4 From Benny Pedersen 2008-07-14 13:59:03 0000 -------
same problem in 3.3.6 here

------- Comment #5 From Benny Pedersen 2008-07-14 13:59:47 0000 -------
Created an attachment (id=160331) [details]
segfaults olso seen here

------- Comment #6 From Alin Năstac 2008-07-14 19:15:36 0000 -------
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 From Benny Pedersen 2008-07-14 20:12:49 0000 -------
Created an attachment (id=160384) [details]
adobe font will need x11 libs :/

2 other fonts ebuilds did not help either :(

------- Comment #8 From Alin Năstac 2008-07-14 20:20:30 0000 -------
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 From Donnie Berkholz 2008-07-15 17:44:37 0000 -------
(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 From Alin Năstac 2008-07-15 17:51:47 0000 -------
See the font-depends.log.

------- Comment #11 From Benny Pedersen 2008-07-15 18:46:04 0000 -------
is this font depends not olso another bug that dont respect -x use flags and
install x11 libs anyway ?

------- Comment #12 From Alin Năstac 2008-07-15 19:58:57 0000 -------
I found another package with Helvetica fonts:
   media-fonts/gnu-gs-fonts-std
This package don't depend on anything else.

------- Comment #13 From Donnie Berkholz 2008-07-16 19:50:09 0000 -------
Some of those may be avoidable, but I'm not sure yet. I'll look into the
upstream dependencies a bit more.

------- Comment #14 From Donnie Berkholz 2008-07-17 00:07:05 0000 -------
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 From Alin Năstac 2008-07-17 05:53:34 0000 -------
Thanks!

@reporter: Please test if the fonts I told you about fix the ntop segfault.

------- Comment #16 From Philippe Brand 2008-09-11 09:49:18 0000 -------
(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 From Alin Năstac 2008-10-05 13:16:41 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug