Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75150 - GCC ebuild to add ada as --enable-languages parameter and initial fix to gcc-config file
Summary: GCC ebuild to add ada as --enable-languages parameter and initial fix to gcc-...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-21 01:43 UTC by gentoo
Modified: 2004-12-21 01:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2004-12-21 01:43:05 UTC
Eventually, Ada will be as well integrated into GCC as are other languages such as gcj, etc. Using the gcc-config script while I am building gcc-4.0 snapshots, I found this patch useful.

Gnat has a bunch of gnat* files in addition to the regular files. This allows gcc-config/wrapper to be copied as these gnat files as well thus allowing different gnat versions to be used as easily as gcj.

PS: Its 1:42 AM

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 gentoo 2004-12-21 01:45:42 UTC
sohail ~ # diff -u `which gcc-config` gcc-config-me 
--- /usr/bin/gcc-config 2004-12-21 01:44:06.608389160 -0800
+++ gcc-config-me       2004-12-21 01:44:01.655142168 -0800
@@ -192,7 +192,8 @@
        umask 022
 
        # Update the wrappers for this profile
-       local native="gcc cpp cc c++ g++ f77 g77 gcj"
+       local gnat=`(cd ${ROOT}/${GCC_BIN_PATH}/ && ls gnat*) 2>/dev/null`
+       local native="gcc cpp cc c++ g++ f77 g77 gcj" ${gnat}
        is_cross_compiler && native=""
        for x in ${native} ${CTARGET}-{gcc,c++,g++,f77,g77,gcj}
        do
Comment 2 gentoo 2004-12-21 01:59:08 UTC
err nm, it seems that /etc/profile sets paths properly to use gnat* :)