[OpenAFS-devel] openafs spec-file kernel-detection

Derek Atkins warlord@MIT.EDU
Wed, 17 May 2006 11:31:57 -0400


Alexander Bergolth <leo@strike.wu-wien.ac.at> writes:

> Instead of using "Requires: kernel" we could use a file dependency on 
> /boot/vmlinuz-<version> on that platforms, as suggested by Jeff Johnson, 
> the RPM-maintainer: 
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112825
>
> This will always work, so maybe this could be a general solution?

Okay, I've changed the

  Requires: kernel = ..

to

  Requires: /boot/vmlinuz-%{kernvers}

I think the question you were asking (and I don't know the answer)
is whether we should just use this ALL the time instead of trying to
use Requires: kernel-<cpu> = %{kversion}

I don't have a strong opinion on that.  If I do just use the
file-requirement everywhere I can remove the extra code and
complexity, so there's certainly something to say for taking that
approach.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available