public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How does Portage prioritze emerges in emerge world?
@ 2005-11-26 13:06 Holly Bostick
  2005-11-26 15:58 ` Ciaran McCreesh
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Holly Bostick @ 2005-11-26 13:06 UTC (permalink / raw
  To: gentoo-user

OK, I take it back.

I said that the situation of upgrading a kernel with the 'symlink' USE
flag active occurring at the same time as a (particular) program needing
to compile against a configured kernel was not likely to occur all that
often, but I was wrong. It's happened again today, but with a different
program than the ones I normally keep an eye on.

The good thing is that I (think I) see what the problem is.

The problem is that Portage emerges the new kernel before (almost)
everything else, without regard for whether the 'symlink' USE flag is
active, and whether or not any of the other programs proposed to emerge
need to compile against a configured kernel source-- or rather, the
currently-running kernel, which the symlink most likely pointed to
before Portage changed it via a previous emerge.

Honestly, there's really no reason (that I can see) to emerge a kernel
source before everything else, since the kernel source is useless until
at the very least configured, and preferably compiled and installed, and
since you're in the middle of an emerge -uwhatever world, you can't
reasonably configure and compile the new source until the entire
operation is finished. Yeah, OK, technically you can, but it's not
really something that an ordinary person would do, I think.

And if the 'symlink' USE flag is active, emerging the kernel sources
before everything else-- which may include packages that must compile
against a configured kernel, with the assumption that the
/usr/src/symlink points to such a kernel, which it no longer does
because the symlink has been changed during a previous emerge and you
have not had time to configure the newly-emerged kernel-- is a real
problem. I just had to open another term, su to root, run MC to change
the symlink-- and got it wrong because I had a second unconfigured
kernel  (2.6.14-r2; 2.6.14-r3 was being installed) that I forgot I had
not yet upgraded to), so had to change the link again to the *real*
running kernel (2.6.14) and emerge --resume. And of course I'll have to
eventually change the symlink back manually in order to actually manage
the new kernel. Which means I have to remember to do that-- which is not
the point of having the 'symlink' USE flag active.

It seems to me that this could all be avoided if Portage emerged a new
kernel *last* in the list if the 'symlink' USE flag is active for kernel
emerges-- then everything in the list that needed a configured kernel
would have one (the currently-running kernel), the emerge would complete
normally, and the symlink would be changed at the end of the procedure
so that my next operation could be to upgrade the kernel, which seems to
me a reasonable and ordinary order of operation (emerge -u** world, then
configure and compile new kernel and run module-rebuild).

Am I doing things wrong, or is this a valid enhancement request for b.g.o?

Holly
-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2005-11-28 18:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-26 13:06 [gentoo-user] How does Portage prioritze emerges in emerge world? Holly Bostick
2005-11-26 15:58 ` Ciaran McCreesh
2005-11-26 16:01 ` Zac Medico
2005-11-26 16:42   ` Holly Bostick
2005-11-26 17:20     ` Zac Medico
2005-11-26 17:47       ` Holly Bostick
2005-11-26 20:48         ` Glenn Enright
2005-11-27 22:14         ` Neil Bothwick
2005-11-27 21:42     ` Abhay Kedia
2005-11-28  6:57       ` Graham Murray
2005-11-28 16:26 ` [gentoo-user] " James
2005-11-28 16:51   ` Neil Bothwick
2005-11-28 17:20     ` Francesco R.
2005-11-28 17:42       ` Neil Bothwick
2005-11-28 18:33         ` Scott Stoddard
2005-11-28 18:44           ` Richard Fish

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