I'm filing this bug (from a template, mind you) because the ebuild I'm reporting it against failed to build once I removed my /usr/bin/{gcc,cc,c++,c99} binaries. This means that the ebuild is relying on gcc or cc as compiler, while it should use "$(tc-getCC)" so that user choices are respected, and cross-compiling works as intended. This usually comes down to one of these tasks: - use emake CC="$(tc-getCC)" for building, to ovewrite make's CC variable (defaults to "cc", some upstream rewrites it); - the above plus replacing explicit "gcc" (or similar) calls with $(CC) so that the variable is actually respected; - tc-export CC in src_compile before eventual econf. For C++, you'd have to replace CC with CXX everywhere above, of course. If your package is a special case on this, please let me know. Thanks, Diego
Created attachment 187388 [details, diff] Update ebuild It seems the ebuild is calling ./configure instead of econf, and switching that seems to fix it. --- delay-1.6.ebuild 2008-03-26 12:05:23.000000000 -0700 +++ delay-1.6-r1.ebuild 2009-04-05 11:14:54.000000000 -0700 @@ -15,7 +15,7 @@ src_compile() { sed -i -e "s/#include <stdio.h>/&\n#include <stdlib.h>/" delay.c - ./configure \ + econf \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \
Created attachment 187624 [details, diff] Ebuild Patch Actually, I didn't really understand the problem. This should fix it for real, so it uses i686-pc-linux-gnu-gcc --- delay-1.6.ebuild 2008-03-26 12:05:23.000000000 -0700 +++ delay-1.6-r1.ebuild 2009-04-07 11:10:33.000000000 -0700 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/delay/delay-1.6.ebuild,v 1.16 2008/03/26 18:47:31 armin76 Exp $ +inherit toolchain-funcs + DESCRIPTION="sleeplike program that counts down the number of seconds specified" HOMEPAGE="http://onegeek.org/~tom/software/delay/" SRC_URI="http://onegeek.org/~tom/software/delay/dl/${P}.tar.gz" @@ -15,7 +17,8 @@ src_compile() { sed -i -e "s/#include <stdio.h>/&\n#include <stdlib.h>/" delay.c - ./configure \ + tc-export CC + econf \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \
thx, applied. no version bump.