SCIENTIFIC-LINUX-USERS Archives

August 2009

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Troy Dawson <[log in to unmask]>
Reply To:
Troy Dawson <[log in to unmask]>
Date:
Wed, 26 Aug 2009 10:01:42 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
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  [log in to unmask]  (630)840-6468
Fermilab  ComputingDivision/LCSI/CSI LMSS Group
__________________________________________________

ATOM RSS1 RSS2