[CentOS] OT: rebuild kmod rpm package from src.rpm

Nicolas Thierry-Mieg Nicolas.Thierry-Mieg at imag.fr
Thu Jun 11 09:22:07 UTC 2009



carlopmart wrote:
> Hi all,
> 
>   I would like to rebuild a kmod.src.rpm package for a specific kernel. 
> When I try to do it, this message appears:
> 
> Building target platforms: i686
> Building for target i686
> error: Failed build dependencies:
>           kernel-xen-devel-i686 = 2.6.18-98.el5 is needed by 
> mymodule-kmod-0.1.5-2.i686
>          kernel-PAE-devel-i686 = 2.6.18-98.el5 is needed by 
> mymodule-kmod-0.1.5-2.i686.
> 
>   Is it possible to rebuild kmod.src.package only for certain kernel?? i 
> don't need to rebuild this module for kernel-xen or kernel-PAE only for 
> kernel-i686 ...
> 

Never done this for kmods, but I would try rpm -ivh the srpm, then edit 
the SPEC file to keep only the i686 stuff.
then rpmbuild -ba your new specfile.
This should be done as a regular user, see
http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment


HTH



More information about the CentOS mailing list