Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202704 - app-misc/color-1.1 fails to compile
Summary: app-misc/color-1.1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-18 15:42 UTC by Thomas Anderson (tanderson) (RETIRED)
Modified: 2008-02-10 14:01 UTC (History)
0 users

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


Attachments
Fix cc->gcc stuff (color-1.1-fix-cc-gcc.patch,318 bytes, patch)
2007-12-18 15:45 UTC, Thomas Anderson (tanderson) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-12-18 15:42:30 UTC
When trying to compile app-misc/color-1.1 I hit an error. After looking arounda bit I narrowed it down to the sed statement in src_unpack(). The problem is that it does s/cc/$(tc-getCC)/g where the original thing in the Makefile is 'gcc'. Thus the sed statement replaces 'cc' with your compiler name and you get 

gx86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe    -c -o color.o color.c

instead of 

x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe    -c -o color.o color.c


I'm attaching a patch.

Reproducible: Always
Comment 1 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-12-18 15:45:41 UTC
Created attachment 138834 [details, diff]
Fix cc->gcc stuff

I should also mention that the problem is not in color-1.2 because in 1.2 upstream changed from gcc->cc and the bug is therefore not reproducable on that version.
Comment 2 Sven Wegener gentoo-dev 2008-02-10 14:01:53 UTC
Thanks. As discussed on IRC I've changed the ebuild to

        emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"

Overriding the values this way is much saner than messing around with sed.