Just a little Gentoo adventure...

At the weekend I updated my system. This is normally, I think. Sometimes I clean my system with emerge --depclean && revdep-rebuild command to repair the libs. Now I did this. The portage unmerged more than 10 packages and started the revdep-rebuild but couldn't emerge anything because gcc is gone. Faithfully gcc-4.1.2 is gone, but I had gcc-4.3.2. My gcc profile was 4.1.2 and the system couldn't use another gcc. This is the point when you can decide that you will reinstall your system or do something hack. I did some hack... ;) because I didn't have time to reinstall my little gentoo. It can be more than 3 days.

I did an chroot (stage3 and portage snapshot) on another partition and I emerged inside the chroot a gcc-4.1.2 package. After I have emerged the package, I copied into the broken system and I reinstalled the package. After this my broken desktop could emerge. :)

The point. No panic and think a little bit, and know your system.