Fwd: akmods for RHEL5
Josh Borke
joshborke+rpmfusion at gmail.com
Tue May 19 20:12:50 CEST 2009
I recently worked on getting an akmod package for RHEL5 for my work to
actually be useful. I know that there has been interest in getting
akmod for RHEL so I thought I would share what I had to do.
- akmods
For the akmods package I had to modify the actually akmods script to
work. This is mostly a hack but it at least builds an rpm with there
is no kmod package installed at all. It changes the value of kmodver
and akmodver to be compatible with the version of rpmdev-vercmp
provided in rhel5.3 (rpmdevtools-5.3-1.el5). Additionally it requires
only /lib/modules/<kernel version>/build/Makefile instead of requiring
both /usr/src/kernels/<kernel version>/Makefile and
/lib/modules/<kernel version>/build/Makefile. This is because (at
least on my systems), uname -r provides 2.6.18-128.1.10.el5 where as
the directories in /usr/src/kernels all include the arch. Perhaps a
better fix is to just include the arch? Not sure.
- buildsys-build-rpmfusion
I only had to change this package a little bit. I changed the name to
reflect our local repo and I updated the numbers to be for RHEL5.
- kmodtool
I tried modifying kmodtool to force kernel-headers and kernel-devel to
be required when building a kmod package but I failed miserably so now
I just include those as BuildRequires in the spec file.
I haven't had a change to test any of these changes heavily and I'll
be out of town for a few weeks but I wanted to post this to the list
to try and help anyone else who might be interested. I would love to
see this maintained and made better. I look forward to
questions/comments. You'll find the akmods patch attached.
-josh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: akmods.patch
Type: text/x-patch
Size: 2460 bytes
Desc: not available
Url : http://lists.rpmfusion.org/pipermail/rpmfusion-users/attachments/20090519/dcbabba9/akmods.bin
More information about the rpmfusion-users
mailing list