From owner-freebsd-ports@FreeBSD.ORG Mon Dec 15 17:41:25 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E24E106564A for ; Mon, 15 Dec 2008 17:41:25 +0000 (UTC) (envelope-from daniel@roe.ch) Received: from calvin.ustdmz.roe.ch (calvin.ustdmz.roe.ch [IPv6:2001:41e0:ff17:face::26]) by mx1.freebsd.org (Postfix) with ESMTP id D2E478FC1A for ; Mon, 15 Dec 2008 17:41:24 +0000 (UTC) (envelope-from daniel@roe.ch) Received: from roe (ssh-from [212.254.178.176]) by calvin.ustdmz.roe.ch (envelope-from ) with LOCAL id 1LCHOW-000BPG-J7 ; Mon, 15 Dec 2008 18:38:12 +0100 Date: Mon, 15 Dec 2008 18:38:12 +0100 From: Daniel Roethlisberger To: Guido Falsi Message-ID: <20081215173812.GA42598@hobbes.ustdmz.roe.ch> Mail-Followup-To: Guido Falsi , freebsd-ports@freebsd.org, bg1tpt@gmail.com References: <20081215152824.GA18862@megatron.madpilot.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081215152824.GA18862@megatron.madpilot.net> User-Agent: Mutt/1.4.2.3i Cc: bg1tpt@gmail.com, freebsd-ports@freebsd.org Subject: Re: rrdtool 1.3.3 and dejavu dependency X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 17:41:25 -0000 Guido Falsi 2008-12-15: > I have noted that the dependency in the subject has been added > to the rrdtool port. > > This has the unfortunate effect of sucking in a libX11 > dependency(others too...) which was not before. > > Maybe I'm an extremist, but I don't like having X11 pieces on > headless server machines, I really don't see a reson for > that(it also triggers some more ports on depending on them, > since the configures find them...This is annoying at least). Even as the submitter of the PR in question, I fully agree. > I don't want to look demanding, but I'd like to spell my > thought, if anybody cares to listen. > > What is the reson for this added dependency? rrdtool requires a suitable font for it's graphing features. It used to ship with dejavu, but since the update to 1.3.0 it relies on fonts installed on the system (which the dependency on dejavu is providing). > I read the PR but don't really see such effects.. I'm using > mrtg and smokeping, with mrtg.cgi [1] and mailgraph.cgi. They > all work fine, mailgraph at least seems to use the > functionality described in the PR. > > Are we sure it isn't something else which is depending on > dejavu? Yes, pretty much. Note that rrdtool can fall back to other fonts, such as Bitstream Vera, but if no fonts are found, using `rrdtool graph` or language bindings such as RRDs::graph will fail. I just used Tobi's tutorial [2] to verify this again. Can you try to reproduce this with no fonts installed under /usr/local/lib/X11/fonts and using the tutorial [2] as a test? If it works for you, can you try to find out where it takes the font from? I guess it might be possible to make `rrdtool graph` work without the full install of x11-fonts/dejavu and all it's dependencies by either creating a lightweight dejavu font port without X11, or by adding dejavu to the rrdtool port somehow. I'm all open to better ideas than the current run-time dependency on x11-fonts/dejavu. I kind of hoped that the maintainer would be able to find a better solution, but unfortunately, there was no reaction from the maintainer. > Thank you for listening. > > [1] http://www.fi.muni.cz/~kas/mrtg-rrd/ [2] http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html -- Daniel Roethlisberger http://daniel.roe.ch/