Bug 1078180 - colorgcc compatibility with Debian
Summary: colorgcc compatibility with Debian
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: colorgcc
Version: 20
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Martin Cermak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-19 10:53 UTC by dozedoffagain
Modified: 2014-04-26 09:16 UTC (History)
3 users (show)

Fixed In Version: colorgcc-1.3.2-8.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-26 09:16:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.