Orlando Richards wrote:
On 25/08/2009 16:52, Troy Dawson wrote:
Orlando Richards wrote:
Hi all,

Can anyone give me instructions on how the kernel-module-openafs*.rpm
rpms are created?

Many thanks,
Orlando

SL3, SL4, or SL5 ?

Troy

Hi Troy,

SL5 mostly - but SL4 too would be very useful.

Cheers,
Orlando.


Steps are the same for SL4 and SL5

Step 1 - Download the openafs source package for that release
http://ftp.scientificlinux.org/linux/scientific/5x/SRPMS/SL/openafs.SLx-1.4.7-68.2.src.rpm
http://ftp.scientificlinux.org/linux/scientific/4x/SRPMS/openafs.SLx-1.4.7-68.2.src.rpm

Step 2 - Make sure you have the kernel and the kernel-devel for whatever kernel you are making. Remember that if you are building for something like kernel-smp you have to have kernel-smp-devel installed.

Step 3 - Actually do the rebuild.
For this, the variable KERNEL is of the format that you would see when doing a "ls /lib/modules/". So KERNEL might be 2.6.18-92.1.13.el5xen or 2.6.18-53.1.4.el5
Also for this, the variable $arch is either i686 or x86_64
These do *not* build for all of the available kernels of any version, so you would have to rerun this for both 2.6.18-128.7.1.el5 and 2.6.18-128.7.1.el5xen - That is a feature, and not a bug. :)

For kernel modules only
rpmbuild --rebuild --target $arch --define "build_userspace 0" --define "build_modules 1" --define "kernel $KERNEL" openafs.SLx-1.4.7-68.2.src.rpm

For the whole openafs, without the kernel modules
rpmbuild --rebuild --target $arch --define "build_userspace 1" --define "build_modules 0" --define "kernel $KERNEL" openafs.SLx-1.4.7-68.2.src.rpm

Troy
--
__________________________________________________
Troy Dawson  [email protected]  (630)840-6468
Fermilab  ComputingDivision/LCSI/CSI LMSS Group
__________________________________________________

Reply via email to