-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Edward Catmur wrote:

> On Sun, 2005-07-03 at 15:19 +0200, Philip Lawatsch wrote:
>
>> Hi,
>>
>> another problem I've just run into:
>>
>> I'd like to have gcc 3.4.x, 4.0.1_pre* and 4.1.* installed at the
>> same time. However all gcc-4.* versions do not seem to use
>> different slots (eg one 4.0.* and one 4.1.* slot).
>>
>> Is there any way I can force slots without creating my own
>> ebuilds in the overlay? (which would force me to update them
>> everytime a new version is available.)
>
>
> Well, you can hack this sort of thing in /etc/portage/bashrc:
>
> if [[ "$CATEGORY/$PF" == "sys-devel/gcc-4.1.0_beta20050702" ]];
> then declare -r SLOT=4.1.0 fi
>
> (because bashrcs are sourced before the ebuild, you have to make
> SLOT readonly to prevent the ebuild being able to set it)
>
> Note you would have to regenerate metadata after this (emerge
> regen, I think) - and be careful!
>
> Actually, looking at your question again, I think gcc 3.4.x,
> 4.0.1_pre* and 4.1.* have different SLOTs anyway (3.4, 4.0, 4.1
> resp.) - so you should be able to have them installed together
> anyway?
>
> Ed
>
portage alrealy support this behavior. you can install multi version
of gcc simultaneously by adding multislot key word to your USE flags.
enjoy!

regards
sunmoon1997

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCx/XnuOtwLijeKbwRAvb0AKCYecGMZ83wmPNMogK6cz0Atkj+XQCeKVM6
FKJCdspQgrVgdDZUJ26wWTo=
=+mfz
-----END PGP SIGNATURE-----

-- 
[email protected] mailing list

Reply via email to