[kernel-xen] SPEC Patch for Building Xen 4.3 RPMs

Gordan Bobic gordan at bobich.net
Wed Jul 24 00:33:15 EST 2013


 Here is a patch I wrote to go from 4.2.2-8 to
 4.3.0-1, in case anyone is interested:

 rpm -ivh xen-4.2.2-8.el6.src.rpm
 Apply the spec file patch.
 Drop xen-4.3.0.tar.gz in SOURCES
 rpmbuild -ba xen.spec

 This builds cleanly for me. Not had a chance
 to test it yet - the main reason why I need
 it is large-BAR (e.g. GPU) passthrough
 with > 2GB of domU RAM.


 --- xen.spec	2013-06-21 05:27:58.000000000 +0100
 +++ xen.spec.4.3	2013-07-23 15:27:21.959820608 +0100
 @@ -15,12 +15,12 @@
  %define build_efi 0
 
  # Hypervisor ABI
 -%define hv_abi  4.2
 +%define hv_abi  4.3
 
  Summary: Xen is a virtual machine monitor
  Name:    xen
 -Version: 4.2.2
 -Release: 8%{?dist}
 +Version: 4.3.0
 +Release: 1%{?dist}
  Group:   Development/Libraries
  License: GPLv2+ and LGPLv2+ and BSD
  URL:     http://xen.org/
 @@ -54,17 +54,6 @@
  Patch35: xend-pci-loop.patch
  Patch48: qemu-xen.tradonly.patch
 
 -Patch50: xsa45-4.2.patch
 -Patch51: xsa49-4.2.patch
 -Patch52: xsa56.patch
 -Patch53: xsa46-fix.patch
 -Patch54: xsa52-4.2.patch
 -Patch55: xsa53-4.2.patch
 -Patch56: xsa54-4.2.patch
 -Patch57: xsa55-4.2.patch
 -Patch58: xsa57-4.2.patch
 -Patch59: xsa58-4.2.patch
 -
  Patch100: xen-configure-xend.patch
 
  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 @@ -245,17 +234,6 @@
  %patch35 -p1
  %patch48 -p1
 
 -%patch50 -p1
 -%patch51 -p1
 -%patch52 -p1
 -%patch53 -p1
 -%patch54 -p1
 -%patch55 -p1
 -%patch56 -p1
 -%patch57 -p1
 -%patch58 -p1
 -%patch59 -p1
 -
  %patch100 -p1
 
  # stubdom sources
 @@ -564,6 +542,8 @@
  # HVM loader is always in /usr/lib regardless of multilib
  /usr/lib/xen/boot/hvmloader
  /usr/lib/xen/boot/ioemu-stubdom.gz
 +/usr/lib/xen/boot/vtpm-stubdom.gz
 +/usr/lib/xen/boot/vtpmmgr-stubdom.gz
  /usr/lib/xen/boot/xenstore-stubdom.gz
  /usr/lib/xen/boot/pv-grub*.gz
  %endif
 @@ -597,6 +577,7 @@
  %{_sbindir}/img2qcow
  # Misc stuff
  %{_bindir}/xen-detect
 +%{_bindir}/xencov_split
  %{_sbindir}/gdbsx
  %{_sbindir}/gtrace*
  %{_sbindir}/kdd
 @@ -610,6 +591,7 @@
  %{_sbindir}/xen-hvmctx
  %{_sbindir}/xen-tmem-list-parse
  %{_sbindir}/xenconsoled
 +%{_sbindir}/xencov
  %{_sbindir}/xenlockprof
  %{_sbindir}/xenmon.py*
  %{_sbindir}/xentop
 @@ -635,6 +617,7 @@
  /boot/xen-syms-*
  /boot/xen-*.gz
  /boot/xen.gz
 +/boot/xenpolicy.24
  %if %build_efi
  /boot/efi/EFI/fedora/*.efi
  %endif
 @@ -643,7 +626,6 @@
  %defattr(-,root,root)
  %doc docs/misc/
  %doc dist/install/usr/share/doc/xen/html
 -%doc dist/install/usr/share/doc/xen/pdf/*.pdf
 
  %files devel
  %defattr(-,root,root)



More information about the kernel-xen mailing list