This commit is contained in:
committed by
Git OBS Bridge
parent
241ee9df04
commit
d7002a96b9
655
xen.spec
655
xen.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package xen (Version 3.0.3_11774)
|
||||
# spec file for package xen (Version 3.0.4_13138)
|
||||
#
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
@@ -11,119 +11,178 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: xen
|
||||
BuildRequires: LibVNCServer SDL-devel autoconf automake bin86 dev86 glibc-devel-32bit latex2html libjpeg-devel libreiserfs-devel openssl openssl-devel python-devel te_ams te_latex tetex transfig
|
||||
%define xvers 3.0
|
||||
%define xvermaj 3
|
||||
%define changeset 11774
|
||||
%define with_pvfb 0
|
||||
%define xen_build_dir xen-3.0.3-testing
|
||||
Version: 3.0.3_11774
|
||||
Release: 31
|
||||
%define changeset 13138
|
||||
%define xen_build_dir xen-3.0.4-testing
|
||||
%define with_install 1
|
||||
%if %sles_version
|
||||
%define with_kmp 1
|
||||
%else
|
||||
# openSUSE 10.3 kernel is not yet ready...
|
||||
%define with_kmp 0
|
||||
%endif
|
||||
BuildRequires: LibVNCServer SDL-devel autoconf automake bin86 curl-devel dev86 latex2html libjpeg-devel libxml2-devel openssl openssl-devel python-devel te_ams te_latex tetex transfig
|
||||
%ifarch x86_64
|
||||
BuildRequires: glibc-32bit glibc-devel-32bit
|
||||
%endif
|
||||
%if %{?with_kmp}0
|
||||
BuildRequires: kernel-source kernel-syms xorg-x11
|
||||
%endif
|
||||
Version: 3.0.4_13138
|
||||
Release: 1
|
||||
License: GNU General Public License (GPL)
|
||||
Group: System/Kernel
|
||||
Autoreqprov: on
|
||||
PreReq: %insserv_prereq %fillup_prereq
|
||||
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
|
||||
Source: xen-3.0.3-testing-src.tar.bz2
|
||||
Source0: xen-3.0.4-testing-src.tar.bz2
|
||||
Source1: xen-vm-install.tar.bz2
|
||||
Source2: README.SuSE
|
||||
Source3: boot.xen
|
||||
Source4: boot.local.xenU
|
||||
Source5: mk-xen-rescue-img.sh
|
||||
Source6: init.xend
|
||||
Source7: init.xendomains
|
||||
Source8: logrotate.xend.conf
|
||||
Source9: domUloader.py
|
||||
Source10: xmexample.domUloader
|
||||
Source11: xmexample.rescue
|
||||
Source12: block-nbd
|
||||
Source13: xmexample.nbd
|
||||
Source14: block-iscsi
|
||||
Source15: xmexample.iscsi
|
||||
Patch1: xen-destdir.diff
|
||||
Patch2: serial-split.patch
|
||||
Patch3: xen-warnings.diff
|
||||
Source5: init.xend
|
||||
Source6: init.xendomains
|
||||
Source7: logrotate.xend.conf
|
||||
Source8: domUloader.py
|
||||
Source9: xmexample.domUloader
|
||||
Source10: block-nbd
|
||||
Source11: xmexample.nbd
|
||||
Source12: block-iscsi
|
||||
Source13: xmexample.iscsi
|
||||
Source14: xmclone.sh
|
||||
Patch0: xen-config.diff
|
||||
Patch1: xend-config.diff
|
||||
Patch2: xen-destdir.diff
|
||||
Patch3: xen-vm-install.diff
|
||||
Patch4: xen-rpmoptflags.diff
|
||||
Patch5: xen-docs.diff
|
||||
Patch6: xen-xmexample.diff
|
||||
Patch7: xen-xmexample-nbd.diff
|
||||
Patch8: xen-changeset.diff
|
||||
Patch9: xen-domUloader.diff
|
||||
Patch10: xen-domUloader-pygrub.diff
|
||||
Patch11: xen-messages.diff
|
||||
Patch12: xen-network-bridge.diff
|
||||
Patch13: xen-no-dummy-nfs-ip.diff
|
||||
Patch14: xen-config-defaults.diff
|
||||
Patch15: xen-xm-top-needs-root.diff
|
||||
Patch16: xen-tightvnc-args.diff
|
||||
Patch17: xen-max-free-mem.diff
|
||||
Patch18: xen-bonding.diff
|
||||
Patch19: xen-ioapic-ack-default.diff
|
||||
Patch20: xen-lost-mouse.diff
|
||||
Patch21: xen-paths.diff
|
||||
Patch22: xen-lowmem-emergency-pool.diff
|
||||
Patch23: xen-console.diff
|
||||
Patch24: block-losetup-retry.diff
|
||||
Patch25: block-sync.diff
|
||||
Patch26: xen-io-register-context.diff
|
||||
Patch27: xen-keymap.diff
|
||||
Patch28: xen-man-permissions.patch
|
||||
Patch29: xen-man-xm-bad-char.diff
|
||||
Patch30: xen-python25-warnings.diff
|
||||
Patch5: xen-warnings.diff
|
||||
Patch6: xen-changeset.diff
|
||||
Patch7: xen-paths.diff
|
||||
Patch8: xen-xmexample.diff
|
||||
Patch9: xen-xmexample-nbd.diff
|
||||
Patch10: xen-bootloader-nohang.diff
|
||||
Patch11: xen-bootloader-dryrun.diff
|
||||
Patch12: xen-bootloader-tidy.diff
|
||||
Patch13: xen-domUloader.diff
|
||||
Patch14: xen-messages.diff
|
||||
Patch15: xen-network-bridge.diff
|
||||
Patch16: xen-no-dummy-nfs-ip.diff
|
||||
Patch17: serial-split.patch
|
||||
Patch18: xen-xm-top-needs-root.diff
|
||||
Patch19: xen-tightvnc-args.diff
|
||||
Patch20: xen-max-free-mem.diff
|
||||
Patch21: xen-bonding.diff
|
||||
Patch22: xen-ioapic-ack-default.diff
|
||||
Patch23: xen-lost-mouse.diff
|
||||
Patch24: xen-lowmem-emergency-pool.diff
|
||||
Patch26: block-losetup-retry.diff
|
||||
Patch27: block-sync.diff
|
||||
Patch29: xen-man-permissions.patch
|
||||
Patch30: xen-man-xm-bad-char.diff
|
||||
Patch31: xen-hvm-default-bridge.diff
|
||||
Patch32: xen-hvm-netfront.diff
|
||||
Patch33: xend-xmlrpc-large-ints.diff
|
||||
Patch34: xen-hvm-default-pae.diff
|
||||
Patch35: non-flat-pm.patch
|
||||
## Upstream (or upstream soon):
|
||||
Patch100: xen-pvfb-2.patch
|
||||
Patch101: xen-pvfb-3.patch
|
||||
Patch102: xu-11841-svm-interrupt-delivery.diff
|
||||
Patch103: xu-11842-svm-interrupt-delivery.diff
|
||||
Patch104: xu-11843-svm-no-double-nmi.diff
|
||||
Patch105: xu-11847-pv-hvm.diff
|
||||
Patch106: xu-11888-pv-hvm.diff
|
||||
Patch107: xu-11896-pv-hvm.diff
|
||||
Patch108: xu-11897-pv-hvm.diff
|
||||
Patch109: xu-11898-pv-hvm.diff
|
||||
Patch110: xu-11899-pv-hvm.diff
|
||||
Patch111: xu-11900-pv-hvm.diff
|
||||
Patch112: xu-11901-pv-hvm.diff
|
||||
Patch113: xu-11902-pv-hvm.diff
|
||||
Patch114: xu-11903-pv-hvm.diff
|
||||
Patch115: xu-11904-pv-hvm.diff
|
||||
Patch116: xu-11905-pv-hvm.diff
|
||||
Patch117: xu-11906-pv-hvm.diff
|
||||
Patch118: xu-11907-pv-hvm.diff
|
||||
Patch119: xu-11908-pv-hvm.diff
|
||||
Patch120: xu-11909-pv-hvm.diff
|
||||
Patch121: xu-11910-pv-hvm.diff
|
||||
Patch122: xu-11911-pv-hvm.diff
|
||||
Patch123: xu-11912-pv-hvm.diff
|
||||
Patch124: xu-11913-pv-hvm.diff
|
||||
Patch125: xu-11914-pv-hvm.diff
|
||||
Patch126: xu-11915-pv-hvm.diff
|
||||
Patch127: xu-11916-pv-hvm.diff
|
||||
Patch128: xu-11917-pv-hvm.diff
|
||||
Patch129: xu-11918-pv-hvm.diff
|
||||
Patch130: xu-11974-pv-hvm.diff
|
||||
Patch131: xu-12012-hvm-smp-timer.diff
|
||||
Patch132: xu-12013-hvm-ioapic.diff
|
||||
Patch133: xu-12030-pv-hvm.diff
|
||||
Patch134: xu-12031-pv-hvm.diff
|
||||
Patch135: xu-12032-pv-hvm.diff
|
||||
Patch136: xu-12040-pv-spurious-interrupt.diff
|
||||
Patch137: xu-12205-pv-hvm.diff
|
||||
Patch138: xu-12278-hvm-interrupt-race.diff
|
||||
## Debugging:
|
||||
Patch200: xen-enable-hvm-debug.diff
|
||||
## Future / need to be re-ported:
|
||||
Patch300: xen-poweroff.diff
|
||||
Patch35: xend-config-devname.patch
|
||||
Patch36: xend-config-ramdisk.patch
|
||||
Patch37: xm-test-cleanup.diff
|
||||
## Jan's patches begin here
|
||||
Patch100: x86-extra-trap-info.patch
|
||||
Patch101: x86_emulate.patch
|
||||
# 32on64 patches
|
||||
Patch102: 32on64-base.patch
|
||||
Patch103: 32on64-hypercall.patch
|
||||
Patch104: 32on64-interface.patch
|
||||
Patch105: 32on64-startup.patch
|
||||
Patch106: 32on64-shared.patch
|
||||
Patch107: 32on64-m2p.patch
|
||||
Patch108: 32on64-emul.patch
|
||||
Patch109: 32on64-memop.patch
|
||||
Patch110: 32on64-mmuop.patch
|
||||
Patch111: 32on64-physdevop.patch
|
||||
Patch112: 32on64-vcpuop.patch
|
||||
Patch113: 32on64-settrap.patch
|
||||
Patch114: 32on64-multicall.patch
|
||||
Patch115: 32on64-schedop.patch
|
||||
Patch116: 32on64-gnttabop.patch
|
||||
Patch117: 32on64-pltop.patch
|
||||
Patch118: 32on64-acmop.patch
|
||||
Patch119: 32on64-xenoprof.patch
|
||||
Patch120: 32on64-sysctl.patch
|
||||
Patch121: 32on64-domctl.patch
|
||||
Patch122: 32on64-trace.patch
|
||||
Patch123: 32on64-kexec.patch
|
||||
Patch124: 32on64-hvm.patch
|
||||
Patch125: 32on64-shadow.patch
|
||||
# Additional patches
|
||||
Patch130: xxx_heap_pages-static.patch
|
||||
Patch131: mem-zones.patch
|
||||
Patch132: domheap-no-dma.patch
|
||||
Patch133: 32on64-per-domain-pa-bits.patch
|
||||
Patch134: 32on64-fixes.patch
|
||||
Patch135: 32on64-call-gates.patch
|
||||
Patch136: emul-privop-lock.patch
|
||||
Patch137: hide-asm-labels.patch
|
||||
Patch138: bug.patch
|
||||
Patch139: x86-mm-simplify.patch
|
||||
Patch140: vgacon-50-lines.patch
|
||||
Patch141: vgacon-keep.patch
|
||||
Patch142: x86-ptwr_emulate.patch
|
||||
Patch143: pae-guest-linear-pgtable.patch
|
||||
Patch144: suppress-rdtscp.patch
|
||||
## Gerd's patches begin here
|
||||
# fix cross-build for tools
|
||||
Patch150: cross-build-fix.diff
|
||||
# network script fixup
|
||||
Patch151: bridge-hostonly.diff
|
||||
# foreign arch headers
|
||||
Patch152: xen-generate-foreign-headers.diff
|
||||
# common ELF parser code
|
||||
Patch153: libelf-add-to-xenkernel.diff
|
||||
Patch154: libelf-use-xen-dom0.diff
|
||||
Patch155: libelf-symlink-to-libxc.diff
|
||||
Patch156: libelf-use-hvm-build.diff
|
||||
Patch157: libelf-use-readnotes.diff
|
||||
# domain builder rewrite
|
||||
Patch158: tools-add-errors.diff
|
||||
Patch159: tools-domain-builder-header-libxc.diff
|
||||
Patch160: tools-domain-builder-core.diff
|
||||
Patch161: tools-domain-builder-linux.diff
|
||||
Patch162: tools-readnotes-gunzip.diff
|
||||
# bimodal driver bits
|
||||
Patch163: protocol-bimodal.diff
|
||||
Patch164: fbback-bimodal.diff
|
||||
Patch165: blktools-bimodal.diff
|
||||
# libxc debugging bits
|
||||
Patch166: tools-debug-oldbuilder.diff
|
||||
Patch167: libxc-logging.diff
|
||||
# guest kexec, kboot
|
||||
Patch168: tools-xc_kexec.diff
|
||||
Patch169: tools-kboot.diff
|
||||
# AMD nested page table patches
|
||||
Patch200: npt_part1.patch
|
||||
Patch201: npt_part2.patch
|
||||
Patch202: npt-windows-bug.patch
|
||||
Patch203: npt-fpu-bug.patch
|
||||
# Upstream bug fixes
|
||||
Patch210: microcode-xen-13079.diff
|
||||
Patch211: xen-localtime.patch
|
||||
Patch212: svm-update-v_tpr-on-mmio.patch
|
||||
Patch213: svm_cpuid_ffxsr_13743.patch
|
||||
# pv driver building
|
||||
Patch250: pv-driver-build.patch
|
||||
# Misc unused patches / need to be re-ported:
|
||||
Patch300: xen-enable-hvm-debug.diff
|
||||
Patch301: xen-removable.diff
|
||||
URL: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/
|
||||
Prefix: /usr
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExclusiveArch: %ix86 x86_64 ia64
|
||||
%define pysite %(python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib()")
|
||||
%if %{?with_kmp}0
|
||||
%suse_kernel_module_package -n xen um xen xenpae
|
||||
%endif
|
||||
|
||||
%description
|
||||
Xen is a virtual machine monitor for x86 that supports execution of
|
||||
@@ -182,7 +241,7 @@ Authors:
|
||||
%package libs
|
||||
Summary: Xen Virtualization: Libraries
|
||||
Group: System/Kernel
|
||||
Requires: xen >= 3.0.3_10000
|
||||
Requires: xen >= 3.0.4_10000
|
||||
AutoReqProv: on
|
||||
|
||||
%description libs
|
||||
@@ -231,8 +290,11 @@ Authors:
|
||||
%package tools
|
||||
Summary: Xen Virtualization: Control tools for domain 0
|
||||
Group: System/Kernel
|
||||
Requires: xen-libs >= 3.0.3_10000
|
||||
Requires: python python-xml bridge-utils multipath-tools
|
||||
Requires: xen-libs >= 3.0.4_10000
|
||||
Requires: bridge-utils multipath-tools python python-xml
|
||||
%if %{?with_install}0
|
||||
Requires: python-urlgrabber
|
||||
%endif
|
||||
AutoReqProv: on
|
||||
|
||||
%description tools
|
||||
@@ -284,7 +346,7 @@ Authors:
|
||||
%package tools-ioemu
|
||||
Summary: Xen Virtualization: BIOS and device emulation for unmodified guests
|
||||
Group: System/Kernel
|
||||
Requires: xen-tools >= 3.0.3_10000
|
||||
Requires: xen-tools >= 3.0.4_10000
|
||||
AutoReqProv: on
|
||||
|
||||
%description tools-ioemu
|
||||
@@ -382,6 +444,53 @@ Authors:
|
||||
--------
|
||||
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
||||
|
||||
%if %{?with_kmp}0
|
||||
%package KMP
|
||||
Group: System/Kernel
|
||||
Summary: Xen para-virtual device drivers for fully virtualized guests
|
||||
|
||||
%description KMP
|
||||
Xen para-virtual device drivers for fully virtualized guests
|
||||
|
||||
Xen is a virtual machine monitor for x86 that supports execution of
|
||||
multiple guest operating systems with unprecedented levels of
|
||||
performance and resource isolation.
|
||||
|
||||
This package contains the libraries and header files needed to create
|
||||
tools to control virtual machines.
|
||||
|
||||
Modern computers are sufficiently powerful to use virtualization to
|
||||
present the illusion of many smaller virtual machines (VMs), each
|
||||
running a separate operating system instance. Successful partitioning
|
||||
of a machine to support the concurrent execution of multiple operating
|
||||
systems poses several challenges. Firstly, virtual machines must be
|
||||
isolated from one another: It is not acceptable for the execution of
|
||||
one to adversely affect the performance of another. This is
|
||||
particularly true when virtual machines are owned by mutually
|
||||
untrusting users. Secondly, it is necessary to support a variety of
|
||||
different operating systems to accommodate the heterogeneity of popular
|
||||
applications. Thirdly, the performance overhead introduced by
|
||||
virtualization should be small.
|
||||
|
||||
Xen uses a technique called paravirtualization: The guest OS is
|
||||
modified, mainly to enhance performance.
|
||||
|
||||
The Xen hypervisor (microkernel) does not provide device drivers for
|
||||
your hardware (except for CPU and memory). This job is left to the
|
||||
kernel that's running in domain 0. Thus the domain 0 kernel is
|
||||
privileged; it has full hardware access. It's started immediately after
|
||||
Xen starts up. Other domains have no access to the hardware; instead
|
||||
they use virtual interfaces that are provided by Xen (with the help of
|
||||
the domain 0 kernel).
|
||||
|
||||
Xen does support booting other Operating Systems; ports of NetBSD
|
||||
(Christian Limpach), FreeBSD (Kip Macy), and Plan 9 (Ron Minnich)
|
||||
exist. A port of Windows XP was developed for an earlier version of
|
||||
Xen, but is not available for release due to license restrictions.
|
||||
|
||||
|
||||
|
||||
%endif
|
||||
%package doc-html
|
||||
Summary: Xen Virtualization: HTML documentation
|
||||
Group: Documentation/HTML
|
||||
@@ -439,11 +548,48 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q -n %xen_build_dir
|
||||
# Apply upstream patches first...
|
||||
%if %{?with_pvfb}0
|
||||
%setup -q -c -n %xen_build_dir/tools -D -T -a 1
|
||||
cd ..
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%if %{?with_install}0
|
||||
%patch3 -p1
|
||||
%endif
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
%patch12 -p1
|
||||
%patch13 -p1
|
||||
%patch14 -p1
|
||||
%patch15 -p1
|
||||
%patch16 -p1
|
||||
%patch17 -p1
|
||||
%patch18 -p1
|
||||
%patch19 -p1
|
||||
%patch20 -p1
|
||||
%patch21 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
%patch24 -p1
|
||||
%patch26 -p1
|
||||
%patch27 -p1
|
||||
%patch29 -p1
|
||||
%patch30 -p1
|
||||
%patch31 -p1
|
||||
%patch32 -p1
|
||||
%patch33 -p1
|
||||
%patch34 -p1
|
||||
%patch35 -p1
|
||||
%patch36 -p1
|
||||
%patch37 -p1
|
||||
%patch100 -p1
|
||||
%patch101 -p1
|
||||
%endif
|
||||
%patch102 -p1
|
||||
%patch103 -p1
|
||||
%patch104 -p1
|
||||
@@ -468,10 +614,6 @@ Authors:
|
||||
%patch123 -p1
|
||||
%patch124 -p1
|
||||
%patch125 -p1
|
||||
%patch126 -p1
|
||||
%patch127 -p1
|
||||
%patch128 -p1
|
||||
%patch129 -p1
|
||||
%patch130 -p1
|
||||
%patch131 -p1
|
||||
%patch132 -p1
|
||||
@@ -481,57 +623,68 @@ Authors:
|
||||
%patch136 -p1
|
||||
%patch137 -p1
|
||||
%patch138 -p1
|
||||
# Now our patches...
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
#%patch10 -p1
|
||||
%patch11 -p1
|
||||
%patch12 -p1
|
||||
%patch13 -p1
|
||||
%patch14 -p1
|
||||
%patch15 -p1
|
||||
%patch16 -p1
|
||||
%patch17 -p1
|
||||
%patch18 -p1
|
||||
%patch19 -p1
|
||||
%patch20 -p1
|
||||
%patch21 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
%patch24 -p1
|
||||
%patch25 -p1
|
||||
%patch26 -p1
|
||||
%patch27 -p1
|
||||
%patch28 -p1
|
||||
%patch29 -p1
|
||||
%patch30 -p1
|
||||
%patch31 -p1
|
||||
%patch32 -p1
|
||||
%patch33 -p1
|
||||
%patch34 -p1
|
||||
%patch35 -p1
|
||||
%patch139 -p1
|
||||
%patch140 -p1
|
||||
%patch141 -p1
|
||||
%patch142 -p1
|
||||
%patch143 -p1
|
||||
%patch144 -p1
|
||||
%patch150 -p1
|
||||
%patch151 -p1
|
||||
%patch152 -p1
|
||||
%patch153 -p1
|
||||
%patch154 -p1
|
||||
%patch155 -p1
|
||||
%patch156 -p1
|
||||
%patch157 -p1
|
||||
%patch158 -p1
|
||||
%patch159 -p1
|
||||
%patch160 -p1
|
||||
%patch161 -p1
|
||||
%patch162 -p1
|
||||
%patch163 -p1
|
||||
%patch164 -p1
|
||||
%patch165 -p1
|
||||
%patch166 -p1
|
||||
%patch167 -p1
|
||||
%patch168 -p1
|
||||
%patch169 -p1
|
||||
%patch200 -p1
|
||||
%patch201 -p1
|
||||
%patch202 -p1
|
||||
%patch203 -p1
|
||||
%patch210 -p1
|
||||
%patch211 -p1
|
||||
%patch212 -p1
|
||||
%patch213 -p1
|
||||
%patch250 -p1
|
||||
XEN_EXTRAVERSION=%version-%release
|
||||
XEN_EXTRAVERSION=${XEN_EXTRAVERSION#%{xvers}}
|
||||
sed -i "s/XEN_EXTRAVERSION[ ]*.=.*\$/XEN_EXTRAVERSION = $XEN_EXTRAVERSION/" xen/Makefile
|
||||
sed -i "s/XEN_CHANGESET[ ]*=.*\$/XEN_CHANGESET = %{changeset}/" xen/Makefile
|
||||
# Unmaintained; remove to avoid spurious Python PEP353 warnings
|
||||
rm -rf tools/pygrub
|
||||
|
||||
%build
|
||||
test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-stack-protector"
|
||||
cd ..
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export RPM_OPT_FLAGS
|
||||
make -C xen/include/public/foreign
|
||||
make tools docs
|
||||
%if %{?with_kmp}0
|
||||
# pv driver modules
|
||||
mkdir -p obj
|
||||
for flavor in %flavors_to_build; do
|
||||
rm -rf obj/$flavor
|
||||
cp -r unmodified_drivers/linux-2.6 obj/$flavor
|
||||
obj/$flavor/mkbuildtree
|
||||
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
|
||||
M=$PWD/obj/$flavor
|
||||
done
|
||||
%endif
|
||||
|
||||
%install
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-stack-protector"
|
||||
test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
|
||||
cd ..
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export RPM_OPT_FLAGS
|
||||
install_xen()
|
||||
{
|
||||
@@ -566,65 +719,78 @@ make -C xen clean
|
||||
make -C xen install pae=n debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT
|
||||
install_xen
|
||||
make -C xen clean
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export RPM_OPT_FLAGS
|
||||
make -C xen/include/public/foreign
|
||||
# tools
|
||||
export XEN_PYTHON_NATIVE_INSTALL=1
|
||||
export PYTHONOPTIMIZE=1
|
||||
mkdir -p $RPM_BUILD_ROOT/%pysite/xen
|
||||
#export PYTHONOPTIMIZE=1
|
||||
make -C tools install \
|
||||
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
|
||||
%if %{?with_install}0
|
||||
ln -s /usr/bin/vm-install $RPM_BUILD_ROOT/usr/sbin/xen-vm-install
|
||||
%endif
|
||||
make -C tools/misc/serial-split install \
|
||||
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
|
||||
%ifarch x86_64
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/xen/bin/
|
||||
ln -s %{_libdir}/xen/bin/qemu-dm $RPM_BUILD_ROOT/usr/lib/xen/bin/qemu-dm
|
||||
%if %{?with_pvfb}0
|
||||
ln -s %{_libdir}/xen/bin/xen-sdlfb $RPM_BUILD_ROOT/usr/lib/xen/bin/xen-sdlfb
|
||||
ln -s %{_libdir}/xen/bin/xen-vncfb $RPM_BUILD_ROOT/usr/lib/xen/bin/xen-vncfb
|
||||
%endif
|
||||
%if %{?with_kmp}0
|
||||
# pv driver modules
|
||||
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
|
||||
export INSTALL_MOD_DIR=updates
|
||||
for flavor in %flavors_to_build; do
|
||||
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
|
||||
M=$PWD/obj/$flavor
|
||||
done
|
||||
%endif
|
||||
# docs
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/xen
|
||||
sh ./docs/check_pkgs \
|
||||
&& make -C docs install \
|
||||
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} \
|
||||
DOCDIR=%{_defaultdocdir}/xen \
|
||||
|| true
|
||||
make -C docs install \
|
||||
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} \
|
||||
DOCDIR=%{_defaultdocdir}/xen
|
||||
for name in COPYING %SOURCE2 %SOURCE3; do
|
||||
cp -p $name $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/
|
||||
install -m 644 $name $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/
|
||||
done
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/misc
|
||||
for name in vtpm.txt crashdb.txt sedf_scheduler_mini-HOWTO.txt; do
|
||||
cp -p docs/misc/$name $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/misc/
|
||||
install -m 644 docs/misc/$name $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/misc/
|
||||
done
|
||||
# init scripts
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
||||
install %SOURCE6 $RPM_BUILD_ROOT/etc/init.d/xend
|
||||
install %SOURCE5 $RPM_BUILD_ROOT/etc/init.d/xend
|
||||
ln -s /etc/init.d/xend $RPM_BUILD_ROOT/usr/sbin/rcxend
|
||||
install %SOURCE7 $RPM_BUILD_ROOT/etc/init.d/xendomains
|
||||
install %SOURCE6 $RPM_BUILD_ROOT/etc/init.d/xendomains
|
||||
ln -s /etc/init.d/xendomains $RPM_BUILD_ROOT/usr/sbin/rcxendomains
|
||||
# example config
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/xen/{vm,examples}
|
||||
mv $RPM_BUILD_ROOT/etc/xen/xmexample* $RPM_BUILD_ROOT/etc/xen/examples
|
||||
rm $RPM_BUILD_ROOT/etc/xen/examples/*nbd
|
||||
install -m644 %SOURCE10 %SOURCE11 %SOURCE13 %SOURCE15 $RPM_BUILD_ROOT/etc/xen/examples/
|
||||
# scripts
|
||||
install -m755 %SOURCE4 %SOURCE5 $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/
|
||||
install -m644 %SOURCE9 %SOURCE11 %SOURCE13 $RPM_BUILD_ROOT/etc/xen/examples/
|
||||
# sample scripts
|
||||
install -m755 %SOURCE4 %SOURCE14 $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/
|
||||
rm $RPM_BUILD_ROOT/etc/xen/scripts/block-*nbd
|
||||
install -m755 %SOURCE12 %SOURCE14 $RPM_BUILD_ROOT/etc/xen/scripts/
|
||||
install -m755 %SOURCE10 %SOURCE12 $RPM_BUILD_ROOT/etc/xen/scripts/
|
||||
# logrotate
|
||||
install -m644 -D %SOURCE8 $RPM_BUILD_ROOT/etc/logrotate.d/xend
|
||||
install -m644 -D %SOURCE7 $RPM_BUILD_ROOT/etc/logrotate.d/xend
|
||||
# directories
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/xenstored
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/images
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/jobs
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/save
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/xend-db/domain
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/xend-db/migrate
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/xend-db/vnet
|
||||
%if %{?with_install}0
|
||||
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/vm-install
|
||||
%endif
|
||||
mkdir -p $RPM_BUILD_ROOT/var/log/xen
|
||||
mkdir -p $RPM_BUILD_ROOT/var/run/xenstored
|
||||
ln -s /var/lib/xen/images $RPM_BUILD_ROOT/etc/xen/images
|
||||
# Bootloader
|
||||
install -m755 %SOURCE9 $RPM_BUILD_ROOT/usr/lib/xen/boot/
|
||||
install -m755 %SOURCE8 $RPM_BUILD_ROOT/usr/lib/xen/boot/
|
||||
# udev support
|
||||
mv $RPM_BUILD_ROOT/etc/udev/rules.d/xen-backend.rules $RPM_BUILD_ROOT/etc/udev/rules.d/40-xen.rules
|
||||
# Clean up unpackaged files
|
||||
@@ -666,8 +832,9 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/fs/
|
||||
%{_libdir}/libfsimage*
|
||||
%{_libdir}/libxen*.so.*
|
||||
%{_libdir}/libxenstore.so
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root)
|
||||
@@ -684,6 +851,13 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
/usr/sbin/rcxendomains
|
||||
/usr/sbin/xen*
|
||||
/usr/sbin/xm
|
||||
%if %{?with_install}0
|
||||
/usr/bin/vm-install*
|
||||
%{_datadir}/xen/install
|
||||
%dir /var/lib/xen/vm-install
|
||||
%dir %{_datadir}/applications/YaST2
|
||||
%{_datadir}/applications/YaST2/xen-vm-install.desktop
|
||||
%endif
|
||||
%dir %{_libdir}/xen
|
||||
%dir %{_libdir}/xen/bin
|
||||
%ifarch x86_64
|
||||
@@ -693,11 +867,8 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
%dir /usr/lib/xen/boot
|
||||
%{_libdir}/libblktap.so*
|
||||
%{_libdir}/xen/bin/readnotes
|
||||
%if %{?with_pvfb}0
|
||||
%{_libdir}/xen/bin/xen-sdlfb
|
||||
%{_libdir}/xen/bin/xen-vncfb
|
||||
%endif
|
||||
#%{_libdir}/xen/bin/xc_kexec
|
||||
%{_libdir}/xen/bin/xc_restore
|
||||
%{_libdir}/xen/bin/xc_save
|
||||
%{_libdir}/xen/bin/xenconsole
|
||||
@@ -719,18 +890,18 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
%config /etc/init.d/xend
|
||||
%config /etc/logrotate.d/xend
|
||||
/var/adm/fillup-templates/sysconfig.xendomains
|
||||
%dir /etc/xen
|
||||
%dir %attr(700,root,root) /etc/xen
|
||||
%config /etc/xen/*
|
||||
%dir /etc/udev
|
||||
%dir /etc/udev/rules.d
|
||||
/etc/udev/rules.d/40-xen.rules
|
||||
%dir %{_defaultdocdir}/xen
|
||||
%{_defaultdocdir}/xen/COPYING
|
||||
%attr(644,root,root) %{_defaultdocdir}/xen/README.SuSE
|
||||
%{_defaultdocdir}/xen/mk-xen-rescue-img.sh
|
||||
%attr(644,root,root) %{_defaultdocdir}/xen/boot.xen
|
||||
%attr(644,root,root) %{_defaultdocdir}/xen/boot.local.xenU
|
||||
%{_defaultdocdir}/xen/README.SuSE
|
||||
%{_defaultdocdir}/xen/boot.xen
|
||||
%{_defaultdocdir}/xen/boot.local.xenU
|
||||
%{_defaultdocdir}/xen/misc
|
||||
%{_defaultdocdir}/xen/xmclone.sh
|
||||
%dir %pysite/xen
|
||||
|
||||
%pysite/xen/*
|
||||
@@ -745,10 +916,11 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
%{_libdir}/xen/bin/qemu-dm
|
||||
%ifarch x86_64
|
||||
/usr/lib/xen/bin/qemu-dm
|
||||
%if %{?with_pvfb}0
|
||||
/usr/lib/xen/bin/xen-sdlfb
|
||||
/usr/lib/xen/bin/xen-vncfb
|
||||
%endif
|
||||
/usr/lib64/xen/bin/xc_kexec
|
||||
%else
|
||||
/usr/lib/xen/bin/xc_kexec
|
||||
%endif
|
||||
/usr/lib/xen/boot/hvmloader
|
||||
|
||||
@@ -756,21 +928,13 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libblktap.a
|
||||
%{_libdir}/libxen*.a
|
||||
%{_libdir}/libxenc*.so
|
||||
%{_libdir}/libxeng*.so
|
||||
%dir /usr/include/xen
|
||||
%dir /usr/include/xen/io
|
||||
%dir /usr/include/xen/hvm
|
||||
%dir /usr/include/xen/linux
|
||||
%{_libdir}/libxen*.so
|
||||
/usr/include/xen/
|
||||
/usr/include/blktaplib.h
|
||||
/usr/include/fsimage*
|
||||
/usr/include/xen*.h
|
||||
/usr/include/xs.h
|
||||
/usr/include/xs_lib.h
|
||||
/usr/include/xen/COPYING
|
||||
/usr/include/xen/*.h
|
||||
/usr/include/xen/io/*.h
|
||||
/usr/include/xen/hvm/*.h
|
||||
/usr/include/xen/linux/*.h
|
||||
/usr/bin/serial-split
|
||||
/usr/bin/xenperf
|
||||
|
||||
@@ -804,14 +968,119 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
%{insserv_cleanup}
|
||||
|
||||
%changelog -n xen
|
||||
* Fri Feb 02 2007 - ro@suse.de
|
||||
- added -fno-stack-protector to CFLAGS for now, link fails
|
||||
* Thu Feb 08 2007 - ccoffing@novell.com
|
||||
- Update vm-install:
|
||||
+ Allow specifing disk (and disk size) vs. cdrom from CLI
|
||||
+ Add missing -M/--max-memory parameter to CLI to match GUI
|
||||
+ #241528: Display error if user selects FV OS but hw lacks VT
|
||||
+ Move all consistency checks out of Options class, since CLI
|
||||
options may be processed in a "bad" order
|
||||
+ Fix infinite loops when info is missing from background jobs
|
||||
+ --background implies --no-auto-console
|
||||
+ Don't let user close progress window
|
||||
+ Fix bug in qemu slowness work-around, reported by Jan Albrecht
|
||||
+ Do disk.validate() when clicking "OK" on disks page
|
||||
+ #238959: Probe for removable media via /sys/block
|
||||
+ Output VNC info for backgrounded job
|
||||
+ Fix method of waiting for VM to exit when --no-autoconsole
|
||||
+ #239582: Use extracted kernel-xen/initrd-xen if present
|
||||
* Tue Feb 06 2007 - ro@suse.de
|
||||
- disable commented out buildreq for kernel for the moment
|
||||
to workaround endless rebuild
|
||||
* Tue Feb 06 2007 - ccoffing@novell.com
|
||||
- xm-test should clean up xenstore better (#180138)
|
||||
* Thu Feb 01 2007 - ccoffing@novell.com
|
||||
- Implement better job support for CIM (#241197)
|
||||
- Temporary fix to allow PV VMs to reboot (#237414)
|
||||
- Delete PYTHONOPTIMIZE for good; callers don't set it.
|
||||
* Wed Jan 31 2007 - ccoffing@novell.com
|
||||
- Update xen-3.0.4 (changeset 13138); includes migration bugfix.
|
||||
* Tue Jan 30 2007 - ccoffing@novell.com
|
||||
- Enable building KMP.
|
||||
- Fix xendomains to work with managed domains. (#238781)
|
||||
* Thu Jan 25 2007 - ccoffing@novell.com
|
||||
- Various bug fixes of 32on64, from Jan and Keir.
|
||||
- Gerd's fix for domain builder with > 4 GB RAM (#233761)
|
||||
- Update xen-vm-install:
|
||||
[#234331], #239007: CD/DVDs should always be marked read-only
|
||||
[#238458]: Work-around qemu slowness bug
|
||||
[#239196]: Support SLED
|
||||
[#239275]: Fix .desktop file
|
||||
[#240064]: Clean up VMs better after failed install
|
||||
* Tue Jan 23 2007 - ccoffing@novell.com
|
||||
- Update xen-vm-install:
|
||||
[#237370]: Can now install 32pae SLES 10 on x86_64 hypervisor
|
||||
[#237396]: Be able to use an existing disk, bypass OS installation
|
||||
Fix handling of user's extra_args
|
||||
- Patch from Jan to enable building PV drivers KMP for FV SUSE.
|
||||
Currently conditionalized.
|
||||
- Drop unused patches xen-io-register-context.diff and
|
||||
xen-console.diff
|
||||
* Sat Jan 20 2007 - brogers@novell.com
|
||||
- Fix handling of localtime config file parameter for PV guests
|
||||
(#234376)
|
||||
* Fri Jan 19 2007 - ccoffing@novell.com
|
||||
- Update xen-vm-install (NIC UI work; do not require tcp port bz
|
||||
[#236517]; integrate with virt-manager)
|
||||
* Wed Jan 17 2007 - ccoffing@novell.com
|
||||
- Update xen-vm-install (more disk UI work; support NetWare
|
||||
response files and licenses)
|
||||
* Tue Jan 16 2007 - ccoffing@novell.com
|
||||
- Major fixes to xen-vm-install (adding disks in the UI now works,
|
||||
and fixed several CLI exceptions)
|
||||
- Microcode does not need to be exactly 2048 bytes (changeset
|
||||
13079; Kurt)
|
||||
* Fri Jan 12 2007 - ccoffing@novell.com
|
||||
- Include script to clone SLES 10 domU, from coolsolutions (fate
|
||||
[#301742])
|
||||
- Updated patches from Gerd and Jan, including PAE > 4 gig fix,
|
||||
updated VGA console patch.
|
||||
- Updated xen-vm-install with finalized strings and desktop file.
|
||||
* Thu Jan 11 2007 - ccoffing@novell.com
|
||||
- Include xen-unstable patches for HVM save/restore and 32-on-64
|
||||
HVM.
|
||||
- Update to xen-3.0.4-1 (changeset 13132).
|
||||
* Wed Jan 10 2007 - ccoffing@novell.com
|
||||
- Update xen-vm-install and domUloader to support NetWare.
|
||||
- Include AMD's nested page table patches.
|
||||
* Mon Jan 08 2007 - ccoffing@novell.com
|
||||
- Update to xen-3.0.4 (changeset 13129).
|
||||
- Fix from upstream for mis-emulation of x86-64 pop.
|
||||
* Fri Jan 05 2007 - carnold@novell.com
|
||||
- Many patches from Jan Beulich and Gerd Hoffmann in support of
|
||||
32 on 64 pv guests. These patches apply to both the hypervisor
|
||||
and the tools.
|
||||
* Fri Dec 22 2006 - ccoffing@novell.com
|
||||
- Do not require authentication on XenAPI socket, since CIMOM does
|
||||
not support authentication. Socket is only accessible to root.
|
||||
* Wed Dec 20 2006 - ccoffing@novell.com
|
||||
- Update to xen-3.0.4 (changeset 13100).
|
||||
- Update xen-vm-install tools.
|
||||
- Include Jim's 2 xen-tools patches for CIM provider issues.
|
||||
* Mon Dec 18 2006 - ccoffing@novell.com
|
||||
- Update to xen-3.0.4-rc3 (changeset 13087).
|
||||
- Fix line terminators in block-iscsi (#228864)
|
||||
- Make domUloader work with blktap support in xend.
|
||||
* Fri Dec 15 2006 - ccoffing@novell.com
|
||||
- Update to xen-3.0.4-rc2 (changeset 13067).
|
||||
* Thu Dec 14 2006 - ccoffing@novell.com
|
||||
- Update to xen-3.0.4-rc1 (changeset 12901).
|
||||
* Wed Dec 13 2006 - brogers@novell.com
|
||||
- Patch for loading bimodal PAE kernel to suuport NetWare
|
||||
* Thu Dec 07 2006 - ccoffing@novell.com
|
||||
- Update to xen-unstable (changeset 12757).
|
||||
- Enable LIBXENAPI_BINDINGS and XENFB_TOOLS.
|
||||
- Enable unix domain socket for xend; needed by tools.
|
||||
* Tue Dec 05 2006 - ccoffing@novell.com
|
||||
- Update to xen-unstable (changeset 12734; feature freeze for
|
||||
3.0.4)
|
||||
- Make /etc/xen mode 0700 to protect vnc passwords.
|
||||
* Mon Nov 27 2006 - ccoffing@novell.com
|
||||
- Fix how bootloader is called by the xend during restarts.
|
||||
(#223850)
|
||||
* Wed Nov 22 2006 - ccoffing@novell.com
|
||||
- Include Jan's patch, which accounts for selectors in protected
|
||||
mode with a non-zero base. Fixes some HVM crashes. (#214568)
|
||||
- Series of patches from Jan to address selectors with non-zero-
|
||||
bases and other related issues in HVM. (#214568)
|
||||
- Default pae=1, otherwise 64 bit HVM does not work at all.
|
||||
(#217160)
|
||||
* Fri Nov 17 2006 - ccoffing@novell.com
|
||||
@@ -820,7 +1089,7 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
- Fix some problems in the xen-hvm-default-bridge patch. (#219092)
|
||||
- xmlrpc isn't 64-bit clean, causing xend to get exceptions when
|
||||
PFN is > 2 GB. (#220418)
|
||||
* Tue Nov 14 2006 - kallan@novell.com
|
||||
* Mon Nov 13 2006 - kallan@novell.com
|
||||
- Backport changesets 11847, 11888, 1189[6-9], 119[00-18], 11974,
|
||||
1203[0-2], and 12205 from xen-unstable so that the PV drivers
|
||||
can compile on older kernels such as sles9 and rhel4
|
||||
@@ -828,11 +1097,11 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
type device. This allows both PV and FV drivers to exist at
|
||||
same time in the FV guest.
|
||||
* Thu Nov 09 2006 - ccoffing@novell.com
|
||||
- Add xen-vm-install.
|
||||
- Default bridge correctly for HVM guests. (#219092)
|
||||
* Wed Nov 08 2006 - aj@suse.de
|
||||
- Set correct permissions on man files.
|
||||
* Tue Nov 07 2006 - ccoffing@novell.com
|
||||
- Fix some 64 bit issues in Python 2.5 introduced by PEP353.
|
||||
- Update name of blktap.ko in xend init script. (#215384)
|
||||
- Remove some extraneous bad chars in xm manpage. (#218440)
|
||||
- Update logrotate.conf.
|
||||
@@ -851,6 +1120,8 @@ rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
||||
- Fix several possible type errors when running domUloader.
|
||||
- Remove pygrub. Was broken on reiserfs and never had ext2
|
||||
support, so it is useless. (#173384)
|
||||
- First attempt at moving domUloader to blktap. Still disabled
|
||||
due to block-detach failing.
|
||||
* Fri Oct 13 2006 - ccoffing@novell.com
|
||||
- Update to xen-3.0.3-testing changeset 11760 (rc4).
|
||||
* Tue Oct 10 2006 - ccoffing@novell.com
|
||||
|
Reference in New Issue
Block a user