[OpenAFS] funny kernel naming problem building openafs rpm in Fedora 9

Paul Johnson pauljohn32@gmail.com
Fri, 16 May 2008 13:52:53 -0500

Just a head's up. I've noticed in Fedora 9 it is necessary to specify
a kernel version when building afs rpm.

This works:

rpmbuild -ba openafs.spec --target=`uname -m` --define="kernvers"

This does not:

$ rpmbuild -ba openafs.spec --target=`uname -m`
Building target platforms: i686
Building for target i686
error: Failed build dependencies:
	kernel-devel-i686 = is needed by openafs-1.4.7-1.1.1.i686

Even though kernel-devel is installed

$ rpm -q kernel-devel

The return from uname -r is

I do have kernel-devel installed and observe:

$ ls /usr/src/kernels/

I've been staring at the spec file all morning and I'm not figuring
out where this is going wrong, but hoped you might know.

Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas