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 '')
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.