Gentoo Archives: gentoo-sparc

From: Ferris McCormick <fmccor@g.o>
To: gentoo-sparc@l.g.o
Subject: RE: [gentoo-sparc] How do I recover from deleted gcc on U60
Date: Sat, 22 Jul 2006 12:16:17
In Reply to: RE: [gentoo-sparc] How do I recover from deleted gcc on U60 by "Mitchell
Hash: SHA1

On Sat, 22 Jul 2006, Mitchell, Ralph wrote:

> -----Original Message----- > From: Andrew Gaffney [mailto:agaffney@g.o] >> >> While the minimal and universal CDs *may( have a gutted gcc with minimal >> functionality, there is no /var/db/pkg, so you can't really use portage with it. >> >> You have 2 options for recovering from this: 1) find someone who has a recent >> gcc built with the same USE that you had and similar CFLAGS, or 2) reinstall. > > Couldn't he unpack a stage3 tarball, chroot into it and do just enough updates to get gcc to the level he previously had?? Then quickpkg it and drop it into the munged system. > > Or am I being terribly naive?? > > Ralph Mitchell >
If you have a stage3, there are ways to recover the compiler; the suggested approach is one. (You are really doing enough of a reinstall so that you can quickpkg gcc, and for that, all you need is to be able to point quickpkg into your unpacked stage3.) You should also be able to copy enough of gcc into your system to rebuild it (/usr/share/gcc*, /usr/lib/gcc*, the compiler itself, and /etc/env.d/05gcc), or perhaps bring in your stage3 version of /etc/env.d/05gcc, modify it to point into your unpacked stage3, env-update and go from there). Good luck, Ferris - -- Ferris McCormick (P44646, MI) <fmccor@g.o> Developer, Gentoo Linux (Devrel, Sparc) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4-ecc0.1.6 (GNU/Linux) iD8DBQFEwhbUQa6M3+I///cRApDnAJ0c58d3KXZHR5dmrx/ygPr8V/mwPwCeLCV9 7j58LSSfv45fSsfp09cm2ds= =hqxL -----END PGP SIGNATURE----- -- gentoo-sparc@g.o mailing list