[OpenAFS] Re: problem installing kmod-openafs from yum repo

Natxo Asenjo natxo.asenjo@gmail.com
Fri, 17 Feb 2012 18:45:14 +0100

On Fri, Feb 17, 2012 at 4:53 PM, Andrew Deason <adeason@sinenomine.net> wro=
> On Fri, 17 Feb 2012 14:51:31 +0100
> Natxo Asenjo <natxo.asenjo@gmail.com> wrote:
>> Apparently the kmod-openafs package is not for the same version so it
>> does not install.
> That's because there apparently are no kmod packages for your kernel
> version. If you want a kmod-style RPM, you can build one yourself by
> downloading the SRPM and running something like:
> rpmbuild --rebuild -bb --define 'build_userspace 0' \
> =C2=A0 =C2=A0 =C2=A0 =C2=A0--define 'build_modules 1' openafs-1.6.0-1.src=

[root@ipaclient01 ~]# rpmbuild --rebuild -bb --define 'build_userspace
0' --define 'build_modules 1' openafs-1.6.0-1.src.rpm
Installing openafs-1.6.0-1.src.rpm
error: Failed build dependencies:
	kernel-devel-i386 =3D 2.6.32-220.4.2.el6 is needed by openafs-1.6.0-1.el6.=

[root@ipaclient01 ~]# yum install kernel-devel-i386
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.nl.leaseweb.net
 * extras: mirror.nl.leaseweb.net
 * updates: mirror.nl.leaseweb.net
Setting up Install Process
No package kernel-devel-i386 available.
Error: Nothing to do

Apparently no i386 more in rhel6 and clones.

> Or you can use DKMS, as mentioned on that page right below the step that
> mentions the kmod RPMs.

I would rather not have a compiler installed on every workstation. If
I can build a kmod rpm and distribute it with cfengine or an internal
yum repo later, that would be much preferred.