kmods on rawhide

Ken Dreyer ktdreyer at ktdreyer.com
Mon Jan 2 23:33:30 CET 2012


On Mon, Jan 2, 2012 at 1:37 PM, Nicolas Chauvet <kwizart at gmail.com> wrote:
> 2012/1/2 Ken Dreyer <ktdreyer at ktdreyer.com>:
>> As it is, I'm just going to do a regular "rpmbuild"
>> locally, against my own kernel-devel, instead of trying to use mock to
>> automate the whole process. (I think that's what you meant by
>> referring me to the FAQ?)
> You can still pass theses options to mock.

I got the kmod to build locally with rpmbuild, but I'm interested in
knowing how to use mock for Rawhide, if I can. Here's the command I
ran, following your suggestion of adding the options to mock:

$ mock rebuild openafs/fedora-17/SRPMS/openafs-kmod-1.6.1-0.pre1.fc17.src.rpm
--define "kernels $(uname -r)" --target $(uname -m)

But mock quits with an error, and build.log has the following:
 kmodtool error: Don't know how to handle
3.2.0-0.rc7.git3.1.fc17.i686.PAE --
/lib/modules/3.2.0-0.rc7.git3.1.fc17.i686.PAE/build/Makefile not found

I can see from root.log that mock is still not pulling in
kernel-PAE-devel-3.2.0-0.rc7.git3.1.fc17.i686 (or any kernel-devel)
for some reason. When I run kmodtool manually, it appears to be
properly setting the BuildRequires:

$ kmodtool --target $(uname -m) --repo rpmfusion --kmodname openafs
--current --for-kernels $(uname -r)
%package       -n kmod-openafs-3.2.0-0.rc7.git3.1.fc17.i686.PAE
Summary:          openafs kernel module(s) for 3.2.0-0.rc7.git3.1.fc17.i686.PAE
Group:            System Environment/Kernel
Provides:         kernel-modules-for-kernel = 3.2.0-0.rc7.git3.1.fc17.i686.PAE
Provides:         openafs-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
Requires:         openafs-kmod-common >= %{?epoch:%{epoch}:}%{version}
Requires(post):   /sbin/depmod
Requires(postun): /sbin/depmod
Requires:         kernel-uname-r = 3.2.0-0.rc7.git3.1.fc17.i686.PAE
BuildRequires:	  kernel-devel-uname-r = 3.2.0-0.rc7.git3.1.fc17.i686.PAE
[ snip ]

Why doesn't mock pull in and install this kernel's -devel package?


More information about the rpmfusion-developers mailing list