Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 97

Summary: gcc 3 -- install in tandem w/ gcc 2.x?
Product: Gentoo Linux Reporter: Grant Goodyear (RETIRED) <g2boojum>
Component: [OLD] DevelopmentAssignee: Grant Goodyear (RETIRED) <g2boojum>
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---

Description Grant Goodyear (RETIRED) gentoo-dev 2002-01-09 11:45:08 UTC
It seems to me that we ought to be able to have both gcc 2.x and gcc3 installed,
since other distributions manage to do it (using kgcc for the 2.x gcc, or a
similar nomenclature).
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2002-03-15 10:53:49 UTC
Okay, I think the way to accomplish this feat is to echo Mandrake:

Change all gcc ebuilds to build as gcc-${PV} using --program-suffix=${PV}
(and installing into /usr/bin).  Then have /usr/bin/gcc, /usr/bin/g++, etc
be symbolic links to the preferred (meaning most recently installed)
binaries.  I'm pretty sure this should work, although I haven't had a chance
to test it yet.

As a complete non-sequitar, need to check that our gcc ebuilds use 
--with-system-zlib to take are of the recent security debacle.
Comment 2 Grant Goodyear (RETIRED) gentoo-dev 2002-03-26 15:43:26 UTC
This turned out to be a real pain.  It's
going to be easier to patch current packages to
work w/ gcc3 instead.  Expect a gcc3.1-enabled 
version of Gentoo soon.