Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery] on_cast linux cast_self

Please Wait...

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Wolfgang Scheicher <worf AT sbox.tu-graz.ac.at>
  • To: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery] on_cast linux cast_self
  • Date: Mon, 2 Feb 2004 10:58:13 +0100

Am Sonntag, 1. Februar 2004 17:32 schrieb Treeve Jelbert:
> We know that 'on_cast linux cast_self' does not always give the required
> results.
>
> Most linux dependent spells use `uname -r` to determine the relevant
> kernel, but this gives the running kernel, not the newly built version.

That's true - unfortunately.

> Would it be feasible to modify sorcery so that the on-cast logic trapped
> the uname command and returned the version of the newly built kernel?
> This would then enable spells such as alsa-driver to be built against the
> new kernel. before rebooting.

Well - some spells got sometimes fixed (by adding configure parameters, by
modifying Makefiles, etc...) to build for the newly built kernel, but since
things always changed and each spell needed special attention, and sometimes
each release, this has been something which was rarely done.

If it's possible to trap uname and return the version the user wants to build
for, things would be way easier, so i like the idea. It will solve quite some
problems with a lot spells at once.

However - it has potential to create new problems. Especially if the user
actually wants to build for some other kernel version. Sorcery would need to
be very verbose about what it's doing and provide a way to set the version.

I'd say: let's try!

Worf




Archive powered by MHonArc 2.6.24.

Top of Page