Gentoo Archives: gentoo-dev

From: George Shapovalov <george@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] using specific gcc-version in ebuild
Date: Sat, 17 Jun 2006 17:43:59
Message-Id: 200606171932.16905.george@gentoo.org
In Reply to: [gentoo-dev] using specific gcc-version in ebuild by "Sven Köhler"
1 Hi Sven
2
3 п'ятниця, 16. червень 2006 21:10, Sven Köhler Ви написали:
4 > i just wanted to ask, if the is an eclass or something else, that
5 > enables me to temporarly select a certain gcc-version? or perhaps just
6 > finding the path to the gcc and g++ executables of a specific
7 > gcc-versions (like gcc-3.*)?
8 Please take a look at gnat.eclass (you will need to check eselect-gnat too
9 and, possibly, gnatbuild.eclass as well). These do not do anything about gcc
10 or any system-wide changes at all, but do something resembling with gnat, as
11 far as its libs are concerned.
12
13 However please note, it is better to avoid this unless you absolutely must. In
14 your case it is porbably best (at present state of portage) to just check for
15 the active version of gcc in pkg_setup and abort if it is not the one you
16 need. You definitely cannot run gcc-config from within scr_* funcs and it is
17 better not tu switch gcc behind user's back, even though you technically can
18 in pkg_* (but as portage people do not expect you to do so, it may start
19 failing in weird ways in the future)..
20
21 George
22
23 --
24 gentoo-dev@g.o mailing list