[OpenAFS] Building openafs.ko for latest FC5 kernel

Derek Atkins warlord@MIT.EDU
Tue, 24 Oct 2006 20:09:26 -0400


Yes, this has already been discussed.  Known bug.  Patch is in RT
waiting for Derrick to return to the country.

-derek

Quoting Mike Polek <mike@pictage.com>:

> Hi, all,
>   I recently installed the latest FC5 kernel on one of
> my Linux boxes. There appears to be a discrepancy between
> what the kernel package provides and what the 1.4.2
> openafs-kernel-smp package requires.
>
> We built the openafs kernel module rpm as follows:
>
> # rpmbuild --rebuild --target=i686 --define "kernvers `uname -r`" 
> openafs-1.4.2-fc5.1.src.rpm < /dev/null >& 
> /tmp/openafs.buildmodules.log &
>
> # uname -r
> 2.6.18-1.2200.fc5smp
>
> When attempting to install, the following error occurs:
>
> # rpm -ivh openafs-kernel-smp-1.4.2-2.6.18_1.2200.fc5smp_1.i686.rpm --test
> error: Failed dependencies:
>         kernel-smp-i686 = 2.6.18-1.2200.fc5 is needed by 
> openafs-kernel-smp-1.4.2-2.6.18_1.2200.fc5smp_1.i686
>
>
> The kernel rpm provides two related things: kernel-i686 and kernel-smp:
>
> # rpm -qp kernel-smp-2.6.18-1.2200.fc5.i686.rpm --provides
> warning: kernel-smp-2.6.18-1.2200.fc5.i686.rpm: Header V3 DSA 
> signature: NOKEY, key ID 4f2a6fd2
> kernel = 2.6.18
> kernel-drm = 4.3.0
> kernel-i686 = 2.6.18-1.2200.fc5smp
> kernel-smp = 2.6.18-1.2200.fc5
>
> openafs wants kernel-smp-i686:
>
> # rpm -qp openafs-kernel-smp-1.4.2-2.6.18_1.2200.fc5smp_1.i686.rpm --requires
> /bin/sh
> /bin/sh
> kernel-smp-i686 = 2.6.18-1.2200.fc5
> rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> rpmlib(VersionedDependencies) <= 3.0.3-1
>
>
> Previously, openafs required kernel-smp
>
> # rpm -q openafs-kernel-smp --requires
> /bin/sh
> /bin/sh
> kernel-smp = 2.6.16-1.2122_FC5
> rpmlib(CompressedFileNames) <= 3.0.4-1
> rpmlib(PayloadFilesHavePrefix) <= 4.0-1
> rpmlib(VersionedDependencies) <= 3.0.3-1
>
> Should I modify the Requires: line from
>
> Requires: kernel-smp-%{_target_cpu} = %{kversion}
>
> do
>
> Requires: kernel-smp = %{kversion}
>
> Or is there some other solution? Am I building the module rpm
> incorrectly?  If this is a bona fide bug, where should I report it?
>
> Thanks in advance,
>
> -- 
> Michael Polek
> Director of System Operations
> Pictage, Inc.
> 1580 Francisco Street, Ste. 101
> Torrance, CA 90501
> (310) 525-1600 ext. 628
> mike@pictage.com
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>



-- 
       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