[OpenAFS-devel] openafs spec-file kernel-detection
Alexander Bergolth
leo@strike.wu-wien.ac.at
Tue, 16 May 2006 12:24:37 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
On 05/16/2006 12:51 AM, Derek Atkins wrote:
> Thanks. I applied this to my tree; it'll make it into the next
> set of RPMs.
Thanks.
Another issue that I noticed is the way how the kernel-depencency is
specified in the spec-file:
Requires: kernel = %{kversion}
Current kernels provide the kernel capability for both only <version>
and <version>-<release>:
$ rpm -qp --provides kernel-2.6.16-1.2111_FC5.i686.rpm
kernel = 2.6.16
kernel-drm = 4.3.0
kernel-i686 = 2.6.16-1.2111_FC5
kernel = 2.6.16-1.2111_FC5
Unfortunately the first capability causes rpm to register a general
capability for 2.6.16 regardless of the exact release and renders the
last capability (kernel = 2.6.16-1.2111_FC5, including the
release-string) effectless. See
http://distro.conectiva.com.br/pipermail/apt-rpm/2003-August/001951.html
The Fedora Extras kernel module guidelines suggest that kernel modules
should require "kernel-%{_target_cpu} = ${verrel}${variant}", like
Requires: kernel-i686 = 2.6.14-1.1776_FC4
See http://www.fedoraproject.org/wiki/Packaging/KernelModules for details.
Since the kernels provide only the exact "<version>-<release>" string
for "kernel-%{_target_cpu}" (see above), dependency checks should work
using this approach.
Cheers,
- --leo
- --
- -----------------------------------------------------------------------
Alexander.Bergolth@wu-wien.ac.at Fax: +43-1-31336-906050
Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFEaahlsYaksEkoAQMRApnzAJ4gpylBSdTfcn1wgahv7jfP25UKWQCghRhn
YMpGKEBm3vVkjwUKglHsXbw=
=oaH9
-----END PGP SIGNATURE-----