Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12816 - env-update doenst update working environment
Summary: env-update doenst update working environment
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-27 20:37 UTC by Bernardo S. A. Silva
Modified: 2002-12-29 20:54 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 Bernardo S. A. Silva 2002-12-27 20:37:00 UTC
Hi folks,

 Your work with the gcc-config tool is wonderfull. Thanks a lot! But here is my
problem:

 I want to have the gcc2 and 3 on my gentoo. So I install the gcc-3.2.1-r6 and
the gcc-2.95.3-r8 and unmerge gcc-3.2.1 (stable). Everything works fine but some
bugs are really anoying:

 1- When I make the command: gcc-config "--use-portage-chost X" I have to exit
from the terminal (logout) and enter again. Why? Why the env-update doesn't
updates the source env. variables?

 2- Everytime I made the command "emerge -up world" he says me that I need to
downgrade the gcc to gcc-3.2.1. This is 'cause I don't like to live the ~arch
flag on. So, I just ignore it. But is VERY anoying.

 So, I doesn't like to live the ~arch on but I wan't to have gcc2 and 3 with
gcc-config working without make some changes (like remove the ~arch and put arch
on the gcc-3.2.1-r6 ebuild, ugly but works). 
 I have a suggestion. Put the arch flag instead of the ~arch flag on the
gcc-3.2.1-r6 ebuild and put the gcc-3.2.1-r6 on the packages.mask. It is just a
suggestion and I don't know if is gonna work.

   Thanx a lot. Your work are reaching the perfection. Bernardo S. A. Silva
Comment 1 SpanKY gentoo-dev 2002-12-28 19:17:30 UTC
part #1 is valid, part #2 is a bug thats already open
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2002-12-29 06:06:06 UTC
A program cannot modify it's parent environment. Apps cannot update the
variables auotmatically that way. You can always '. /etc/profile' or
'source /etc/profile' when you or portage runs env-update.
Comment 3 Bernardo S. A. Silva 2002-12-29 20:28:03 UTC
Part #2 is a bug thats already open... ok, but what his number?

Part #1: Why the gcc-config doesn't make the source automatic?

   Thanx... Bernardo S. A. Silva
Comment 4 Bernardo S. A. Silva 2002-12-29 20:29:03 UTC
So... I will reopen it...
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2002-12-29 20:54:02 UTC
A program cannot modify it's parent environment. Therefore... It
can't cause the new variables to propagate up to the parents, and
thus cannot, due to unix system implimentations, be automatic as
you'd like.

There are a couple bugs floating around on that other topic. It's
coming... 'Sticky.'