From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GBxzv-0002xl-5b for garchives@archives.gentoo.org; Sat, 12 Aug 2006 18:14:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7CIBuhp032060; Sat, 12 Aug 2006 18:11:56 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7CI9qbB004265 for ; Sat, 12 Aug 2006 18:09:52 GMT Received: by nf-out-0910.google.com with SMTP id a25so1300479nfc for ; Sat, 12 Aug 2006 11:09:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=PanbtS0anWzJwuYKUudDihRu58HmIZz0J2FAC0EdU7hDSES+lcBKsHezF9v2gUSM0iaQ/dyDNHydEY7zfVSUKxfYa53k9rysE96TO34iMDJWJ5LD1SWxX/NZFfe/c7ua+x03z6kyqF/SrfFXeXgHup3KBvyZhSoTL41rM4nMlgo= Received: by 10.78.142.14 with SMTP id p14mr2642275hud; Sat, 12 Aug 2006 11:09:51 -0700 (PDT) Received: by 10.78.16.17 with HTTP; Sat, 12 Aug 2006 11:09:51 -0700 (PDT) Message-ID: <7573e9640608121109jea0fbc4k2ab7d2dc61663bde@mail.gmail.com> Date: Sat, 12 Aug 2006 11:09:51 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] gcc upgrade: what's safest option? In-Reply-To: <44DDF3F4.6090401@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44DDF3F4.6090401@gmail.com> X-Google-Sender-Auth: 5eabed7c981e621b X-Archives-Salt: c63270f4-5160-41ac-b728-09d2ad6f90e4 X-Archives-Hash: 45719039c7bd955dbe7afb3348ec5603 On 8/12/06, b.n. wrote: > I have a couple of questions: > - Is it safe to upgrade with a full desktop > (Xorg+Xfce+Thunderbird+Firefox...) system running, or will I get > everything crashing on me? If you start things up beforehand and leave them running, this should be safe. Just be sure to follow section 3 of the gcc upgrade guide here: http://www.gentoo.org/doc/en/gcc-upgrading.xml You will only need the sys-libs/libstdc++-v3 package if you have old binary stuff installed. I would actually recommend a slightly modified version of those instructions though: emerge -uv gcc gcc-config ... # or eselect compiler set source /etc/profile emerge --oneshot libtool revdep-rebuild --library=libstdc++.so.5 emerge -C =sys-devel/gcc-3.3* emerge -e world The revdep-rebuild step is a "fast" way of rebuilding all C++ packages. During this phase, you may have some programs fail to start, but once it completes, your system should be fine again. The final emerge -e world is optional....used mostly to get any new optimizations that are available. Of course if there are any problems left over by revdep-rebuild, the emerge -e world should fix them. > - If not, is it safe to upgrade using Knoppix and doing the upgrade in a > chroot? are there side effects? This wouldn't make any difference at all. The risk of the gcc upgrade comes from the upgrading libstdc++.so.5 to libstdc++.so.6, which has an incompatible binary interface. What you really do *not* want is to have some programs that link against both .5 and .6 at the same time. This could happen for example if you rebuild qt, qt will get linked against .6, but kdelibs may still be linked against .5. So when you start a KDE app (which link against both qt and kdelibs), it may crash due to the two incompatible versions of libstdc++. This is why I say some things may fail during the revdep-rebuild step above. So since you would chrooting into your system, and using the compilers and libraries from your system, the knoppix kernel buys you nothing here as far as safety. It should be noted that python links against libstdc++, and since portage relies on a working python, it would be a very good idea to quickpkg python and gcc before beginning. Then should something go catastrophically wrong, you should be able to untar python and/or gcc to get back to a working environment... Good Luck, -Richard -- gentoo-user@gentoo.org mailing list