Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186635 - dev-util/bdelta uses generic cc command to compile
Summary: dev-util/bdelta 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: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-26 00:11 UTC by Chris Slycord
Modified: 2007-08-29 18:02 UTC (History)
0 users

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


Attachments
diff bdelta-0.1.0.ebuild bdelta-0.1.0.ebuild.orig (the_diff,182 bytes, text/plain)
2007-07-26 20:45 UTC, Chris Slycord
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Slycord 2007-07-26 00:11:01 UTC
During the compile phase for bdetla (version 0.1.0), 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).

>>> Starting src_compile
make -j2 -j1
cc bpatch.cpp -o bpatch -O2 -lstdc++
cc -shared -fPIC -O2 libbdelta.cpp -o libbdelta.so
cc bdelta.cpp -o bdelta -O2 -L. -lbdelta -lstdc++

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 2007-07-26 18:25:23 UTC
Also, if you look at the Makefile, the package is using its own settings for stuff like CXXFLAGS.
Comment 2 Chris Slycord 2007-07-26 20:45:25 UTC
Created attachment 126095 [details]
diff bdelta-0.1.0.ebuild bdelta-0.1.0.ebuild.orig

Made it so it uses tc-getCC and respects your CXXFLAGS settings. Though, I'm not sure if it should instead modify the Makefile through some sed action (which wouldn't be too difficult either way).
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-08-29 18:02:14 UTC
jep you might want to do the makefile modification and send that upstream too, thanks. I have committed your patch for now.