Bug 185432

Summary: dlm-kernel SRPM fails to build with "%define buildxen=1"
Product: [Fedora] Fedora Reporter: Phillip Sorensen <pas37>
Component: dlm-kernelAssignee: Chris Feist <cfeist>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: FC5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-26 23:00:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patched for spec file none

Description Phillip Sorensen 2006-03-14 19:32:36 UTC
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
built.

Version-Release number of selected component (if applicable):
dlm-kernel-2.5.15.1-0.FC5.11

How reproducible:
Always

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
  
Actual results:
Build fails

Expected results:
RPMS for up, smp, xen0, and xenU kernels

Additional info:

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.

Comment 1 Phillip Sorensen 2006-03-14 19:32:36 UTC
Created attachment 126118 [details]
Patched for spec file

Comment 2 Chris Feist 2006-03-14 23:35:37 UTC
This should be fixed in the latest GFS/CS packages which now include xen. 
(built for kernel version 2.6.15-1.2054_FC5).