Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 517762

Summary: net-analyzer/vnstat always builds vnstati, which fails without gd
Product: Gentoo Linux Reporter: Laurent Bachelier <laurent>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: mrueg
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Laurent Bachelier 2014-07-22 08:55:24 UTC
net-analyzer/vnstat has a "gd" USE flag so it can be build without gd, and without vnstati which is the only gd user.

However, emerging it with USE="-gd" fails with "vnstati.h:5:47: fatal error: gd.h: No such file or directory"

To build with gd/vnstati, you have to call "make all", otherwise just "make".

However, the ebuild always calls make all, and it looks like a mistake. Here is the line:

emake all CC="$(tc-getCC)" CFLAGS="${CFLAGS}" $(usex gd all '')

Here we see the test on the gd USE flag, and calling it with "all" or ""; however... there is also a "all" at the start of the command!

Fix (tested), replace that line by:

emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" $(usex gd all '')
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2014-07-23 01:04:51 UTC
Unbreak stable tree.


  23 Jul 2014; Manuel Rüger <mrueg@gentoo.org> vnstat-1.11-r2.ebuild:
  Fix compilation target for emake. See bug #517762.