public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] re-extracting linux sources
@ 2009-09-25 21:35 Maxim Wexler
  2009-09-25 21:47 ` Volker Armin Hemmann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Maxim Wexler @ 2009-09-25 21:35 UTC (permalink / raw
  To: gentoo-user

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 ?

2)How can I prevent this from happening again? The gentoo docs just
say, after the dust settles,  to do a revdep followed by depclean. Is
that what did the deed? This was my first world upgrade and I sure
don't want to go through this again, if I can prevent it.

Maxim



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] re-extracting linux sources
  2009-09-25 21:35 [gentoo-user] re-extracting linux sources Maxim Wexler
@ 2009-09-25 21:47 ` Volker Armin Hemmann
  2009-09-25 21:55 ` [gentoo-user] " Nikos Chantziaras
  2009-09-25 22:00 ` walt
  2 siblings, 0 replies; 4+ messages in thread
From: Volker Armin Hemmann @ 2009-09-25 21:47 UTC (permalink / raw
  To: gentoo-user

On Freitag 25 September 2009, 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 ?
> 
> 2)How can I prevent this from happening again? The gentoo docs just
> say, after the dust settles,  to do a revdep followed by depclean. Is
> that what did the deed? This was my first world upgrade and I sure
> don't want to go through this again, if I can prevent it.
> 
> Maxim
> 

1) just extract the stuff in /usr/src

2) it never happened to me so I don't know.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user]  Re: re-extracting linux sources
  2009-09-25 21:35 [gentoo-user] re-extracting linux sources Maxim Wexler
  2009-09-25 21:47 ` Volker Armin Hemmann
@ 2009-09-25 21:55 ` Nikos Chantziaras
  2009-09-25 22:00 ` walt
  2 siblings, 0 replies; 4+ messages in thread
From: Nikos Chantziaras @ 2009-09-25 21:55 UTC (permalink / raw
  To: gentoo-user

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user]  Re: re-extracting linux sources
  2009-09-25 21:35 [gentoo-user] re-extracting linux sources Maxim Wexler
  2009-09-25 21:47 ` Volker Armin Hemmann
  2009-09-25 21:55 ` [gentoo-user] " Nikos Chantziaras
@ 2009-09-25 22:00 ` walt
  2 siblings, 0 replies; 4+ messages in thread
From: walt @ 2009-09-25 22:00 UTC (permalink / raw
  To: gentoo-user

On 09/25/2009 02:35 PM, 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 ?

I just re-emerge the gentoo-sources package (or whatever you use instead).
I make a point of saving a copy of the most recent version of my kernel
.config file, though, in case the real one gets deleted somehow.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-25 22:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-25 21:35 [gentoo-user] re-extracting linux sources Maxim Wexler
2009-09-25 21:47 ` Volker Armin Hemmann
2009-09-25 21:55 ` [gentoo-user] " Nikos Chantziaras
2009-09-25 22:00 ` walt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox