Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280847 - sys-apps/slocate uses generic cc command to compile
Summary: sys-apps/slocate uses generic cc command to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-09 04:14 UTC by Chris Slycord
Modified: 2009-08-15 23:47 UTC (History)
0 users

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


Attachments
diff between original and fixed ebuild (the_diff,269 bytes, text/plain)
2009-08-09 04:18 UTC, Chris Slycord
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Slycord 2009-08-09 04:14:07 UTC
+++ This bug was initially created as a clone of Bug #186635 +++

During the compile phase for slocate (version 3.1-r2), cc is invoked instead of a CHOST-specific command (like i686-pc-linux-gnu-gcc). This could cause troubles if trying to do, say, a cross-compile and the system cc gets called (since normally it would use the CHOST for the cross compiler).

>>> Compiling source in /var/tmp/portage/sys-apps/slocate-3.1-r2/work/slocate-3.1 ...
make -C src 
make: Entering directory `/var/tmp/portage/sys-apps/slocate-3.1-r2/work/slocate-3.1/src'
cc -c -march=core2 -mtune=generic -O2 -pipe -fomit-frame-pointer -Wall -Wshadow -o slocate.o slocate.c
cc -c -march=core2 -mtune=generic -O2 -pipe -fomit-frame-pointer -Wall -Wshadow -o cmds.o cmds.c
cc -c -march=core2 -mtune=generic -O2 -pipe -fomit-frame-pointer -Wall -Wshadow -o conf.o conf.c
cc -c -march=core2 -mtune=generic -O2 -pipe -fomit-frame-pointer -Wall -Wshadow -o utils.o utils.c
cc -march=core2 -mtune=generic -O2 -pipe -fomit-frame-pointer -Wall -Wshadow -Wl,-O1 -o slocate slocate.o cmds.o conf.o utils.o 
Reproducible: Always

Steps to Reproduce:
1. Install bdelta
2. Look at output during compile phase
3.

Actual Results:  
cc is invoked

Expected Results:  
A CHOST-specific compiler name to be invoked
Comment 1 Chris Slycord 2009-08-09 04:18:20 UTC
Created attachment 200656 [details]
diff between original and fixed ebuild