View previous topic :: View next topic |
Author |
Message |
chene_vert n00b
Joined: 09 Feb 2005 Posts: 3
|
Posted: Wed Feb 09, 2005 10:02 am Post subject: I would like to be able to switch to gcc-2.95 compiler |
|
|
Gi,
I would like to use gcc-2.95 compiler for an "old" program and switch with gcc-config between 3.4 and 2.95 depending on what I need.
Problem :
profile masked gcc version inferior to 3.2
The use of packages.unmask or packages.keywords does not seems to help in this case.
Am I right ?
So I edit /etc/make.profile/packages and comment one line:
Code: | # Copyright 2001-2004 Gentoo Foundation.
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/x86/2004.0/packages,v 1.7 2004/10/16 21:24:29 vapier Exp $
# For instructions on how this file works (as an inclusion mask, primarily),
# please refer to ${PORTDIR}/profiles/base/packages
# Use this file to lock down specific versions of packages ONLY TO THIS
# SPECIFIC PROFILE!
# You can also add files to the base system itself if you prefix them with a
# *
>dev-lang/gpc-2.1
>=sys-apps/baselayout-1.7.9-r1
>=sys-devel/binutils-2.13.90.0.4
#>=sys-devel/gcc-3.2
>=sys-libs/glibc-2.2.5
>=app-admin/sysklogd-1.4.1
|
It seems to work but I was wondering if it was the proper way to do it.
Thanks. |
|
Back to top |
|
|
transient l33t
Joined: 13 Jan 2005 Posts: 759
|
Posted: Wed Feb 09, 2005 10:56 am Post subject: |
|
|
It does work, but youre right, its not the correct way to do it. The reason for this is that when you again, that file will be overwritten with the new one.
Im not sure of the priority for package masking, but if you have unmasked older GCC versions in your /etc/portage/package.unmask, that should work.
You have got the following in the package.unmask file? Code: | <=sys-devel/gcc-3.2 |
|
|
Back to top |
|
|
chene_vert n00b
Joined: 09 Feb 2005 Posts: 3
|
Posted: Wed Feb 09, 2005 11:20 am Post subject: |
|
|
Quote: | Im not sure of the priority for package masking, but if you have unmasked older GCC versions in your /etc/portage/package.unmask, that should work.
You have got the following in the package.unmask file?
Code:
<=sys-devel/gcc-3.2 |
Yes I have tried this (and try again after your post)
but it does not work unless I make some change in /etc/make.profile/packages |
|
Back to top |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Sat Feb 26, 2005 11:03 pm Post subject: |
|
|
I just had the same problem. The only way I could get gcc-2.95 to emerge was to edit "/usr/make.profile/packages". Did you figure out if this was the "proper" way to do this? Why is gcc-2.95 masked anyways?? |
|
Back to top |
|
|
transient l33t
Joined: 13 Jan 2005 Posts: 759
|
Posted: Sun Feb 27, 2005 1:17 am Post subject: |
|
|
Its probably very close to being deprecated.
There is a specific profile for gcc2, which has a packages file that is correct for using it.
But it would be much better to figure out why the app relies on a very old version of gcc to compile.
What application is it, and do you know what exactly it needs that isnt in the later versions, or what later feature breaks it? |
|
Back to top |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Mon Feb 28, 2005 10:00 am Post subject: |
|
|
transient wrote: | Its probably very close to being deprecated.
There is a specific profile for gcc2, which has a packages file that is correct for using it.
But it would be much better to figure out why the app relies on a very old version of gcc to compile.
What application is it, and do you know what exactly it needs that isnt in the later versions, or what later feature breaks it? |
I need gcc-2.95 to compile some libraries used for embedded development that only work with gcc-2.95. It's handy for me to be able to install gcc-2.95 in it's own slot for that reason. |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
|
Back to top |
|
|
|