On 09/26/2009 12:35 AM, Maxim Wexler wrote:
Hi group,

After my last -uvDN world and subsequent revdep-rebuild and emerge
--depclean I found the main Makefile under /usr/src/linux was missing.
I managed to extract it from the sources and copy it over only to find
that, naturally,  many other files were missing too. I gave up after
the third extraction/copy pass. Which leads to the following:

1) What is the approved method of re-populating that all-important
directory, just untar the sources back in or ?

No. You'll miss the patches that don't come in the tarball. To install it again, emerge it again. For example, for gentoo-sources-2.6.30-r7:

  emerge gentoo-sources:2.6.30-r7

emerge --depclean will never remove it again since you specified that the "2.6.30-r7" slot is always to be kept.


2)How can I prevent this from happening again?

By doing what I described above :)  It well never be removed unless you do:

  emerge -C gentoo-sources:2.6.30-r7


Reply via email to