Red Hat Bugzilla – Bug 185432
dlm-kernel SRPM fails to build with "%define buildxen=1"
Last modified: 2008-02-26 18:00:55 EST
Description of problem:
To try clustering and xen together I needed to rebuild the dlm-kernel package
to get the kernel modules for xen0 and xenU kernels. They are not currently
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install needed packages: kernel, kernel-devel, cman-kernheaders, and
cman-kernel for up, smp, xen0, xenU
2. rpmbuild -bb --target=i686 dlm-kernel.spec
RPMS for up, smp, xen0, and xenU kernels
Like Bugzilla #185430, this is related to the new Xen kernel patches that have
Xen as a variation of arch/i386. The ARCH=xen part of the command causes the
problem. Removing it make thing work. I am attaching a patch for the spec
file. The build dependencies will need to be fixed for buildxen=1.
NOTE: I have not tried but GFS-kernel and gnbd-kernel may have the same problem.
Created attachment 126118 [details]
Patched for spec file
This should be fixed in the latest GFS/CS packages which now include xen.
(built for kernel version 2.6.15-1.2054_FC5).