Bug 1078180

Summary: colorgcc compatibility with Debian
Product: [Fedora] Fedora Reporter: dozedoffagain
Component: colorgccAssignee: Martin Cermak <mcermak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 20CC: dozedoffagain, hdegoede, mcermak
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: colorgcc-1.3.2-8.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-26 09:16:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dozedoffagain 2014-03-19 10:53:08 UTC
Description of problem:
With colorgcc on fedora, the script is named color-gcc, however on Debian it is named colorgcc. This makes sharing makefiles between fedora and Debian a bit tricky.

Version-Release number of selected component (if applicable):
Version     : 1.3.2
Release     : 7.fc20

How reproducible:
Always.

Steps to Reproduce:
1. Create a script / makefile that compiles using color-gcc on fedora
2. Copy created script to Debian
3. Run the script / makefile on Debian

Actual results:
Script / makefile will fail with "color-gcc not found".

Expected results:
Script / makefile runs without issues.

Additional info:

It is easy to fix this:
Add a additional symlink
sudo ln -s /usr/bin/color-gcc /usr/bin/colorgcc

and adding the following line to color-gcc after line 96:

$compilerPaths{"colorgcc"} = "gcc";

Comment 1 Martin Cermak 2014-04-11 10:23:43 UTC
That is doable and shouldn't break anything. Would [1] work for you?

By the way, gcc-4.8.2-7.fc20 apparently has similar output colorizing feature already built in and turned on by default.

--------------
[1] http://mcermak.fedorapeople.org/scratchbuild/colorgcc-1.3.2-11.fc21.noarch.rpm

Comment 2 dozedoffagain 2014-04-11 16:03:17 UTC
- removed colorgcc
- deleted manually created symlink
- installed linked colorgcc-1.3.2-11.fc21.noarch.rpm from Comment 1

Works fine for me.

The reason I'm using colorgcc is because gcc 4.8.2-16 in Debian testing (jessie) does not seem to support the -fdiagnostics-color option (I'm assuming this is coloring option you were referring to?).

Comment 3 Fedora Update System 2014-04-17 12:33:40 UTC
colorgcc-1.3.2-8.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/colorgcc-1.3.2-8.fc20

Comment 4 Martin Cermak 2014-04-17 12:48:16 UTC
(In reply to dozedoffagain from comment #2)
> Works fine for me.

Thanks for checking! Fixed in colorgcc-1.3.2-11.fc21 and colorgcc-1.3.2-8.fc20.
See http://koji.fedoraproject.org/koji/packageinfo?packageID=11962

Comment 5 Fedora Update System 2014-04-18 15:43:15 UTC
Package colorgcc-1.3.2-8.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing colorgcc-1.3.2-8.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-5350/colorgcc-1.3.2-8.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-04-26 09:16:43 UTC
colorgcc-1.3.2-8.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.