Compiling realtime kernel from RHEL 6 MRG sources on CentOS 6

Posted by Sashka B on Server Fault See other posts from Server Fault or by Sashka B
Published on 2011-11-16T02:45:21Z Indexed on 2011/11/16 9:59 UTC
Read the original article Hit count: 700

Filed under:
|
|

I'm trying to compile kernel-rt-2.6.33.9-rt31.75.el6rt.src.rpm from RHEL6 MRG source RPMs on Centos 6 x86_64 system.

It's first time I'm doing this, so I did research on how to do this properly. From what I found, I did:

rpm -ihv kernel-rt-2.6.33.9-rt31.75.el6rt.src.rpm 
cd ~/rpmbuild/SPECS
nano kernel-rt.spec 
rpmbuild -bb kernel-rt.spec 2> build-err.log | tee build-out.log

in kernel-rt.spec I've disbleed compilation of variants I don' need - ie compile only rt and firmware. Also defined not to build debuginfo.

After compilation finished, I've got in ~/rpmbuild/RPMS/x86_64/ two files:

kernel-rt-2.6.33.9-rt31.75.el6rt.x86_64.rpm
kernel-rt-devel-2.6.33.9-rt31.75.el6rt.x86_64.rpm

but when I tried to install kernel, I got error message: $ sudo rpm -ihv kernel-rt-2.6.33.9-rt31.75.el6rt.x86_64.rpm error: Failed dependencies: kernel-rt-firmware >= 2.6.33.9-rt31.75.el6rt is needed by kernel-rt-2.6.33.9-rt31.75.el6rt.x86_64

There was no folder ~/rpmbuild/RPMS/noarch - where I would expect it to show up.

Also, I've tried rpmbuild --rebuild kernel-rt-2.6.33.9-rt31.75.el6rt.src.rpm, but got same results...

What am I doing wrong? I've seen this question, but it suggests what I tried already and I want to build kernel myself, not use pre-built from SLC.

© Server Fault or respective owner

Related posts about kernel

Related posts about centos6