Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127013 - net-analyzer/vnstat fails on cross-compilation
Summary: net-analyzer/vnstat fails on cross-compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 14:34 UTC by Josu López Fernández
Modified: 2006-03-26 15:25 UTC (History)
0 users

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


Attachments
vnstat-1.4.ebuild.patch (vnstat-1.4.ebuild.patch,867 bytes, patch)
2006-03-20 14:35 UTC, Josu López Fernández
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Josu López Fernández 2006-03-20 14:34:12 UTC
Hello!
net-analyzer/vnstat fails on cross-compilation, because it assumes in the Makefile that the compiler (CC) is simply gcc. To fix the problem is only needed to change CC variable to CHOST-gcc, with this compiles ok in a cross-compilation (I have tested between x86 and amd64). I attach a patch for vnstat-1.4.ebuild that fixes the problem. In vnstat-1.4-r1.ebuild the fix is the same. The patch changes CC variable on the Makefile and also changes CFLAGS variable there.

Good bye!
Comment 1 Josu López Fernández 2006-03-20 14:35:16 UTC
Created attachment 82717 [details, diff]
vnstat-1.4.ebuild.patch
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2006-03-26 15:25:46 UTC
Fixed for 1.4-r1 in cvs, thanks.
Keep up the good work :)