I emerged gcc 4.4.0 and want to use it instead of gcc-4.3.3. But when I set sudo gcc-config 2 (2 being 4.4.0) it doesn't save it when I open a new instance of Konsole. Reproducible: Always Steps to Reproduce: 1. sudo layman -a dirtyepic 2. emerge =gcc-4.4.0_pre9999 3. sudo gcc-config 2 4. source /etc/profile 5. open a new term etc Actual Results: GCC keeps going back to GCC-4.3.3 Portage 2.2_rc23 (default/linux/amd64/2008.0, gcc-4.4.0-pre9999, glibc-2.9_p20081201-r1, 2.6.29-rc2-zen1 x86_64) ================================================================= System uname: Linux-2.6.29-rc2-zen1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5 Timestamp of tree: Wed, 04 Feb 2009 03:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.2 sys-apps/sandbox: 1.3.3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en_GB en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/zen-overlay /usr/local/portage/layman/kde-testing /usr/local/portage/layman/dirtyepic /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 64bit 7zip X X509 a52 aac aalib accessibility acl acpi aften aim aio akode alsa amarok amazon amd64 animgif audio audioscrobbler avahi bash-completion bidi big-tables binary-drivers bjam blas boost branding bzip2 calendar cangjie5 canna caps ccache cdda cddb cdio cdparanoia cdr cdrom cdsound charconv chardet chasen chm chroot cjk cli cmake colordiff colors corefonts cracklib crypt cscope css ctype curl cxx dbus dhclient dhcp dhcpcd double-precision dri dvd dvdarchive dvdchapjump dvdnav dvdr dvdread embedded epydoc fam fame fat fbcon fbcondecor fbdev fbsplash ffmpeg firefox3 flac flash fortran fuse gd gdbm geoip gif git gpm grub gzip hddtemp i18n icon iconv icu id3 id3tag innodb int64 ipv6 irc isdnlog java java6 javascript jbig jfs jpeg jpeg2k kde4 kdepim kross lame latex libass libv4l2 live logviewer lyrics lyrics-screen lzma lzo m17n-lib mdnsresponder-compat mediaplayer messenger midi mmap mmx mmxext mng moc mp2 mp3 mp3rtp mp3tunes mp4 mp4live mpeg mpeg2 mplayer msn mudflap multilib musepack music musicbrainz ncurses nls nopie nptl nptlonly nsplugin nss ntfs nvidia nvram nvtv ogg ogg123 opengl openmp openssl oscar pam pcre pdf perl phonon plasma png pppd python q32 q8 qa qt-dbus qt-webkit qt3support qt4 qtdesigner rar readline recode reflection reiser4 reiserfs rss scrobbler session sha1 sha512 shorten soap sockets socks5spell spl sse sse2 sse3 ssl submenu subtitles subversion svg svgz symlink sysfs tcpd themes tiff timezone tk unicode usb v4l v4l2 valgrind vim vim-pager vim-syntax vorbis wav wavpack webkit x264 x86emu xcomposite xforms xfs xine xml xmlpatterns xmlrpc xorg xorgmodule xpm xsl xslt xterm xterm-color xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
what happens when you run source /etc/profile in the new term?
(In reply to comment #0) I can't reproduce your problem: share linux # gcc-config -V gcc-config-1.4.1 (r1.8 @ 2009/01/28 02:32:50) share linux # gcc-config -l [1] i686-pc-linux-gnu-4.3.3 [2] i686-pc-linux-gnu-4.4.0-pre9999 * It continues to stay selected even when new terminals and sessions are open. I'm not sure this is a gcc-config issue, it's probably a configuration issue.
most likely when you launch a new konsole shell, it starts a new rc shell, not a login shell, and so the PATH is inherited from your original login shell