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

Bug 467176

Summary: dev-db/redis : does not respect CC
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Johan Bergström <bugs>
Severity: QA CC: djc, lu_zero, proxy-maint, robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on: 457002    
Bug Blocks: 243502    
Attachments: redis-2.6.9:20130425-085758.log

Description Agostino Sarubbo gentoo-dev 2013-04-25 09:07:43 UTC
You receive this bug because this package does not respect my system's CC (x86_64-pc-linux-gnu-gcc) and calls directly /usr/bin/gcc(or similar)
The possible solutions to fix this issue are:
1)Fix the buildsystem, if you can;
2)inherit toolchain-funcs and use tc-export CC
3)inherit toolchain-funcs and use emake CC="$(tc-getCC)"

From the build log:

gcc -O2 -Wall -DLUA_ANSI  -pedantic -Wall -W -D__EXTENSIONS__ -D_XPG6 -march=native -O2 -g0 -pipe   -c -o lapi.o lapi.c
Comment 1 Agostino Sarubbo gentoo-dev 2013-04-25 09:10:22 UTC
Created attachment 346574 [details]

build log
Comment 2 Johan Bergström 2013-04-27 10:59:45 UTC
This is fixed in one of my test branches:

This is actually a problem with lua rather than redis, but nevertheless a bug.
Comment 3 Johan Bergström 2013-05-03 21:54:06 UTC
Fixed in redis-2.6.13.ebuild.