Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517762 - net-analyzer/vnstat always builds vnstati, which fails without gd
Summary: net-analyzer/vnstat always builds vnstati, which fails without gd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-22 08:55 UTC by Laurent Bachelier
Modified: 2014-07-23 01:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.