SHA256
1
0
forked from pool/xen

- Enable blktapctrl when qemu-traditional is required to satisfy

build dependencies.  Remove binaries after build if xend is
  disabled

- update ifarch usage in xen.spec to cover also arm
- blktapctrl is used only by xend
- fix xend-tools-xend sub pkg handling 
- default to gcc47 for sles11sp3 builds
- remove all latex packages from BuildRequires
- aarch64-rename-PSR_MODE_ELxx-to-match-linux-headers.patch

- add arch dependent install suffix for /boot/xen files

- Set max_cpus==4 for non-x86_64 builds

- Update to Xen 4.4.0 RC3 c/s 28321

- Add flex and bison to BuildRequires, needed by previous patch

- fate#316071: add discard support for file backed storage (qdisk)
  libxl.add-option-for-discard-support-to-xl-disk-conf.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=296
This commit is contained in:
Charles Arnold
2014-02-03 23:53:57 +00:00
committed by Git OBS Bridge
parent 5eed528ac8
commit af6dcd473d
14 changed files with 363 additions and 193 deletions

229
xen.spec
View File

@@ -20,39 +20,57 @@ Name: xen
ExclusiveArch: %ix86 x86_64 %arm aarch64
%define xvers 4.4
%define xvermaj 4
%define changeset 28287
%define changeset 28321
%define xen_build_dir xen-4.4.0-testing
%ifarch %arm aarch64
#
%define with_kmp 0
%define with_xend 0
%define with_xend_tools_pkg 0
%define with_debug 0
%define with_stubdom 0
%define with_dom0_support 1
%else
%define with_gdbsx 0
%define with_dom0_support 0
%define with_qemu_traditional 0
#
%ifarch x86_64
%define with_kmp 1
%define with_debug 1
%define with_stubdom 1
%define with_gdbsx 1
%define with_dom0_support 1
%define with_qemu_traditional 1
%define with_xend_tools_pkg 0
%if %suse_version > 1230
%define with_xend_tools_pkg 1
%endif
%if %suse_version > 1230
%define with_xend 1
%else
%define with_xend 1
%endif
%else
%define with_xend 0
%define with_stubdom 0
%define with_dom0_support 0
%define with_qemu_traditional 0
%endif
#
%ifarch %arm aarch64
%define with_dom0_support 1
%endif
# EFI requires gcc46 or newer
# its available in 12.1 or >= sles11sp2
%if %suse_version == 1210 || %suse_version == 1110
%define with_gcc46 1
#
%define max_cpus 4
%ifarch x86_64
%define max_cpus 512
%endif
#
%define xen_install_suffix %{nil}
%ifarch x86_64
%define xen_install_suffix .gz
%endif
# EFI requires gcc 4.6 or newer
# gcc46 is available in 12.1 or sles11sp2
# gcc47 is available in sles11sp3
# 12.2+ have gcc 4.7 as default compiler
%if %suse_version == 1110
%define with_gcc47 1
%else
%define with_gcc46 0
%define with_gcc47 0
%endif
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
%if %suse_version >= 1230
@@ -66,40 +84,31 @@ BuildRequires: libfdt1-devel
%ifarch %ix86 x86_64
BuildRequires: dev86
%endif
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: glib2-devel
BuildRequires: libaio-devel
BuildRequires: libbz2-devel
BuildRequires: libpixman-1-0-devel
BuildRequires: libuuid-devel
BuildRequires: libxml2-devel
BuildRequires: libyajl-devel
BuildRequires: libpixman-1-0-devel
%if %{?with_qemu_traditional}0
BuildRequires: libSDL-devel
BuildRequires: pciutils-devel
%endif
%if %{?with_stubdom}0
%if 0%{?suse_version} < 1230
BuildRequires: texinfo
%else
BuildRequires: makeinfo
%endif
%endif
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: python-devel
BuildRequires: transfig
%if %suse_version >= 1030
BuildRequires: texinfo
BuildRequires: texlive
%if %suse_version > 1220
BuildRequires: texlive-latex
BuildRequires: texlive-courier
BuildRequires: texlive-dvips
BuildRequires: texlive-helvetic
BuildRequires: texlive-psnfss
BuildRequires: texlive-times
BuildRequires: tex(a4.sty)
BuildRequires: tex(a4wide.sty)
BuildRequires: tex(fancyhdr.sty)
BuildRequires: tex(parskip.sty)
BuildRequires: tex(setspace.sty)
%endif
%else
BuildRequires: te_ams
BuildRequires: te_latex
BuildRequires: tetex
%endif
%if %suse_version >= 1230
%if %{?with_systemd}0
BuildRequires: systemd
%endif
%if %suse_version >= 1120
@@ -113,15 +122,11 @@ BuildRequires: acpica
%endif
%endif
%ifarch x86_64
%if %{?with_gcc46}0
BuildRequires: gcc46
BuildRequires: libgcc46
BuildRequires: libgcc46-32bit
%if %{?with_gcc47}0
BuildRequires: gcc47
%endif
BuildRequires: glibc-32bit
BuildRequires: glibc-devel-32bit
%define max_cpus 512
%define pae_enabled n
%endif
%if %{?with_kmp}0
BuildRequires: kernel-source
@@ -134,7 +139,7 @@ BuildRequires: xorg-x11-util-devel
%endif
%endif
Version: 4.4.0_02
Version: 4.4.0_03
Release: 0
PreReq: %insserv_prereq %fillup_prereq
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
@@ -307,6 +312,8 @@ Patch461: blktapctrl-default-to-ioemu.patch
Patch462: blktapctrl-disable-debug-printf.patch
Patch463: blktap-pv-cdrom.patch
Patch464: set-mtu-from-bridge-for-tap-interface.patch
Patch465: libxl.add-option-for-discard-support-to-xl-disk-conf.patch
Patch466: aarch64-rename-PSR_MODE_ELxx-to-match-linux-headers.patch
# Hypervisor and PV driver Patches
Patch501: x86-ioapic-ack-default.patch
Patch502: x86-cpufreq-report.patch
@@ -432,7 +439,7 @@ Authors:
%if %{?with_xend}0
%if %suse_version > 1230
%if %{?with_xend_tools_pkg}0
%package xend-tools
Summary: Xen Virtualization: Control tools for domain 0
Group: System/Kernel
@@ -658,6 +665,8 @@ Authors:
%patch462 -p1
%patch463 -p1
%patch464 -p1
%patch465 -p1
%patch466 -p1
# Hypervisor and PV driver Patches
%patch501 -p1
%patch502 -p1
@@ -694,9 +703,12 @@ configure_flags="${configure_flags} --enable-qemu-traditional"
configure_flags="${configure_flags} --disable-qemu-traditional"
%endif
%if %{?with_xend}0
configure_flags="${configure_flags} --enable-xend"
configure_flags="${configure_flags} --enable-xend --enable-blktap1"
%else
configure_flags="${configure_flags} --disable-xend"
%if %{?with_qemu_traditional}0
configure_flags="${configure_flags} --disable-xend --enable-blktap1"
%endif
configure_flags="${configure_flags} --disable-xend --disable-blktap1"
%endif
./configure \
--enable-xenapi \
@@ -706,7 +718,7 @@ configure_flags="${configure_flags} --disable-xend"
--sbindir=%{_sbindir} \
--libdir=%{_libdir} \
--datadir=%{_datadir} \
--enable-blktap1 ${configure_flags}
${configure_flags}
%if %{?with_dom0_support}0
CFLAGS_SAVE=$CFLAGS
%ifarch %ix86 x86_64
@@ -714,7 +726,6 @@ make -C xenalyze.hg CC="gcc -I../xen/include -DMAX_CPUS=%{max_cpus} ${RPM_OPT_FL
%endif
make -C tools/include/xen-foreign %{?_smp_mflags}
make tools docs %{?_smp_mflags}
make -C tools/debugger/gdbsx
%if %{?with_xend}0
make -C tools/xen-utils-0.1 XEN_INTREE_BUILD=yes XEN_ROOT=$PWD
%endif
@@ -744,10 +755,10 @@ export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS"
export EXTRA_CFLAGS_QEMU_TRADITIONAL="$RPM_OPT_FLAGS"
export EXTRA_CFLAGS_QEMU_XEN="$RPM_OPT_FLAGS"
# EFI
%ifarch x86_64 %arm aarch64
%if %{?with_dom0_support}0
make -C xen install \
%if %{?with_gcc46}0
CC=gcc-4.6 \
%if %{?with_gcc47}0
CC=gcc-4.7 \
%endif
max_phys_cpus=%{max_cpus} debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
make -C xen clean
@@ -756,28 +767,26 @@ install_xen()
local ext=""
if [ -n "$1" ]; then
ext="-$1"
mv $RPM_BUILD_ROOT/boot/xen-%{version}-%{release}.gz \
$RPM_BUILD_ROOT/boot/xen${ext}-%{version}-%{release}.gz
mv $RPM_BUILD_ROOT/boot/xen-%{version}-%{release}%{xen_install_suffix} \
$RPM_BUILD_ROOT/boot/xen${ext}-%{version}-%{release}%{xen_install_suffix}
mv $RPM_BUILD_ROOT/boot/xen-syms-%{version}-%{release} \
$RPM_BUILD_ROOT/boot/xen-syms${ext}-%{version}-%{release}
fi
rm $RPM_BUILD_ROOT/boot/xen-%{xvers}.gz
rm $RPM_BUILD_ROOT/boot/xen-%{xvermaj}.gz
rm $RPM_BUILD_ROOT/boot/xen.gz
rm $RPM_BUILD_ROOT/boot/xen-%{xvers}%{xen_install_suffix}
rm $RPM_BUILD_ROOT/boot/xen-%{xvermaj}%{xen_install_suffix}
rm $RPM_BUILD_ROOT/boot/xen%{xen_install_suffix}
# Do not link to links; grub cannot follow.
ln -s xen${ext}-%{version}-%{release}.gz $RPM_BUILD_ROOT/boot/xen${ext}-%{xvers}.gz
ln -s xen${ext}-%{version}-%{release}.gz $RPM_BUILD_ROOT/boot/xen${ext}-%{xvermaj}.gz
ln -s xen${ext}-%{version}-%{release}.gz $RPM_BUILD_ROOT/boot/xen${ext}.gz
ln -s xen${ext}-%{version}-%{release}%{xen_install_suffix} $RPM_BUILD_ROOT/boot/xen${ext}-%{xvers}%{xen_install_suffix}
ln -s xen${ext}-%{version}-%{release}%{xen_install_suffix} $RPM_BUILD_ROOT/boot/xen${ext}-%{xvermaj}%{xen_install_suffix}
ln -s xen${ext}-%{version}-%{release}%{xen_install_suffix} $RPM_BUILD_ROOT/boot/xen${ext}%{xen_install_suffix}
ln -sf xen-syms${ext}-%{version}-%{release} $RPM_BUILD_ROOT/boot/xen-syms${ext}
}
%ifnarch %arm aarch64
%if %{?with_debug}0
make -C xen install max_phys_cpus=%{max_cpus} pae=%{pae_enabled} debug=y crash_debug=y DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
make -C xen install max_phys_cpus=%{max_cpus} debug=y crash_debug=y DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
install_xen dbg
make -C xen clean
%endif
%endif
make -C xen install max_phys_cpus=%{max_cpus} pae=%{pae_enabled} debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
make -C xen install max_phys_cpus=%{max_cpus} debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
install_xen
make -C xen clean
make -C tools/include/xen-foreign %{?_smp_mflags}
@@ -787,12 +796,12 @@ make -C tools install \
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} %{?_smp_mflags}
rm -f $RPM_BUILD_ROOT/usr/sbin/{qcow-create,img2qcow,qcow2raw}
echo > xen.files.txt
%ifarch x86_64
# EFI depends on gcc46
# EFI depends on gcc47
if test -d $RPM_BUILD_ROOT%{_libdir}/efi
then
echo %{_libdir}/efi >> xen.files.txt
fi
%ifarch x86_64
cp -avL xenalyze.hg/dump-raw $RPM_BUILD_ROOT/%{_bindir}/xenalyze.dump-raw
cp -avL xenalyze.hg/xenalyze $RPM_BUILD_ROOT/%{_bindir}
%endif
@@ -845,17 +854,14 @@ done
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install tools/hotplug/Linux/init.d/xendomains $RPM_BUILD_ROOT/etc/init.d/xendomains
ln -s /etc/init.d/xendomains $RPM_BUILD_ROOT/usr/sbin/rcxendomains
%ifnarch %arm aarch64
install %SOURCE34 $RPM_BUILD_ROOT/etc/init.d/pciback
ln -s /etc/init.d/pciback $RPM_BUILD_ROOT/usr/sbin/rcpciback
install %SOURCE35 $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.pciback
%endif
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
install -m644 %SOURCE26 $RPM_BUILD_ROOT/etc/modprobe.d/xen_loop.conf
# Xend init scripts and related programs
%if %{?with_xend}0
%ifnarch %arm aarch64
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
@@ -877,7 +883,6 @@ mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE56} %{buildroot}%{_unitdir}/xend.service
%endif
%endif
%endif
# Example config
mkdir -p $RPM_BUILD_ROOT/etc/xen/{vm,examples,scripts}
@@ -971,9 +976,11 @@ rm -f $RPM_BUILD_ROOT/usr/sbin/xen-python-path
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-list
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-destroy
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-vmresync
rm -f $RPM_BUILD_ROOT/usr/sbin/blktapctrl
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/xend-relocation.sh
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/domain-lock*
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/vm-monitor
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/blktap
rm -f $RPM_BUILD_ROOT/etc/xen/xm-config.xml
rm -f $RPM_BUILD_ROOT/etc/xen/*.sxp
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/xm*
@@ -1015,26 +1022,22 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
%files -f xen.files.txt
%defattr(-,root,root)
/boot/xen-%{version}-%{release}.gz
/boot/xen-%{xvermaj}.gz
/boot/xen-%{xvers}.gz
%ifnarch %arm aarch64
/boot/xen-%{version}-%{release}%{xen_install_suffix}
/boot/xen-%{xvermaj}%{xen_install_suffix}
/boot/xen-%{xvers}%{xen_install_suffix}
%if %{?with_debug}0
/boot/xen-dbg-%{version}-%{release}.gz
/boot/xen-dbg-%{xvermaj}.gz
/boot/xen-dbg-%{xvers}.gz
/boot/xen-dbg.gz
%endif
/boot/xen-dbg-%{version}-%{release}%{xen_install_suffix}
/boot/xen-dbg-%{xvermaj}%{xen_install_suffix}
/boot/xen-dbg-%{xvers}%{xen_install_suffix}
/boot/xen-dbg%{xen_install_suffix}
%endif
/boot/xen-syms
/boot/xen-syms-%{version}-%{release}
%ifnarch %arm aarch64
%if %{?with_debug}0
/boot/xen-syms-dbg
/boot/xen-syms-dbg-%{version}-%{release}
%endif
%endif
/boot/xen.gz
/boot/xen%{xen_install_suffix}
%files libs
%defattr(-,root,root)
@@ -1043,7 +1046,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
%files tools
%defattr(-,root,root)
%ifnarch %arm aarch64
%ifarch %ix86 x86_64
/usr/bin/xenalyze
/usr/bin/xenalyze.dump-raw
%endif
@@ -1051,65 +1054,51 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
/usr/bin/xenstore*
/usr/bin/xentrace*
/usr/bin/pygrub
%ifnarch %arm aarch64
%if %{?with_qemu_traditional}0
/usr/bin/tapdisk-ioemu
%endif
/usr/bin/remus
/usr/bin/xencov_split
/usr/sbin/blktapctrl
%endif
#/usr/sbin/flask-*
/usr/sbin/tap*
/usr/sbin/rcxendomains
%ifnarch %arm aarch64
/usr/sbin/rcpciback
/usr/sbin/xenbaked
%endif
/usr/sbin/xenconsoled
/usr/sbin/xencov
%ifnarch %arm aarch64
/usr/sbin/xen-hptool
/usr/sbin/xen-hvmcrash
/usr/sbin/xen-hvmctx
/usr/sbin/xenlockprof
/usr/sbin/xen-lowmemd
/usr/sbin/xenmon.py
/usr/sbin/xenperf
/usr/sbin/xenpm
/usr/sbin/xenpmd
%endif
/usr/sbin/xen-ringwatch
/usr/sbin/xenstored
%ifnarch %arm aarch64
/usr/sbin/xen-tmem-list-parse
%endif
/usr/sbin/xentop
%ifnarch %arm aarch64
/usr/sbin/xentrace_setmask
%endif
/usr/sbin/xenwatchdogd
/usr/sbin/gtracestat
/usr/sbin/gtraceview
/usr/sbin/lock-util
/usr/sbin/td-util
%ifnarch %arm aarch64
/usr/sbin/vhd-update
/usr/sbin/vhd-util
%if %{?with_gdbsx}0
/usr/sbin/gdbsx
%endif
/usr/sbin/xl
%ifnarch %arm aarch64
%ifarch %ix86 x86_64
/usr/sbin/xen-hptool
/usr/sbin/xen-hvmcrash
/usr/sbin/xen-hvmctx
/usr/sbin/xen-lowmemd
/usr/sbin/kdd
%endif
%dir %attr(700,root,root) /etc/xen
%dir /etc/xen/scripts
%ifnarch %arm aarch64
%if %{?with_qemu_traditional}0
/etc/xen/scripts/qemu-ifup
%endif
%endif
/etc/xen/scripts/blktap
/etc/xen/scripts/block*
/etc/xen/scripts/external-device-migrate
/etc/xen/scripts/hotplugpath.sh
@@ -1127,16 +1116,14 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
%ifarch x86_64 aarch64
/usr/lib/xen
%endif
%ifnarch %arm aarch64
/var/adm/fillup-templates/sysconfig.pciback
%endif
/var/adm/fillup-templates/sysconfig.xencommons
/var/adm/fillup-templates/sysconfig.xendomains
%dir /var/lib/xen
%dir %attr(700,root,root) /var/lib/xen/images
%dir %attr(700,root,root) /var/lib/xen/save
%dir %attr(700,root,root) /var/lib/xen/dump
%ifnarch %arm aarch64
%ifarch %ix86 x86_64
%dir %attr(700,root,root) /var/lib/xen/xenpaging
%endif
%dir /var/lib/xenstored
@@ -1156,9 +1143,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
%config /etc/init.d/xencommons
%config /etc/init.d/xendomains
%config /etc/init.d/xen-watchdog
%ifnarch %arm aarch64
%config /etc/init.d/pciback
%endif
%if %{?with_systemd}0
%{_unitdir}/xencommons.service
%{_unitdir}/xendomains.service
@@ -1177,12 +1162,10 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
%{_datadir}/qemu-xen/*
%endif
%if %{?with_qemu_traditional}0
%ifnarch %arm aarch64
%dir %{_datadir}/xen
%dir %{_datadir}/xen/qemu
%{_datadir}/xen/qemu/*
%endif
%endif
%dir %{_libdir}/python%{pyver}/site-packages/grub
%dir %{_libdir}/python%{pyver}/site-packages/xen
%dir %{_libdir}/python%{pyver}/site-packages/xen/lowlevel
@@ -1209,14 +1192,11 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
%{_mandir}/man8/*.8.gz
%if %{?with_xend}0
%if %suse_version > 1230
%if %{?with_xend_tools_pkg}0
%files xend-tools
%endif
%defattr(-,root,root)
%ifnarch %arm aarch64
/etc/udev/rules.d/40-xend.rules
%endif
%ifnarch %arm aarch64
/usr/sbin/rcxend
/usr/sbin/xm
/usr/sbin/xend
@@ -1225,6 +1205,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
/usr/sbin/xen-list
/usr/sbin/xen-destroy
/usr/sbin/xen-vmresync
/usr/sbin/blktapctrl
%dir /var/lib/xen/xend-db
%dir /var/lib/xen/xend-db/domain
%dir /var/lib/xen/xend-db/migrate
@@ -1240,11 +1221,10 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
%if %{?with_systemd}0
%{_unitdir}/xend.service
%endif
%endif
%dir %attr(700,root,root) /etc/xen
%config(noreplace) /etc/xen/*.sxp
%config(noreplace) /etc/xen/*.xml
%ifnarch %arm aarch64
/etc/xen/scripts/blktap
/etc/xen/scripts/xend-relocation.sh
/etc/xen/scripts/domain-lock*
/etc/xen/scripts/vm-monitor
@@ -1260,13 +1240,12 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
%{_mandir}/man5/xend-config.sxp.5.gz
%{_mandir}/man1/xen-list.1.gz
%endif
%endif
# with_dom0_support
%endif
%files tools-domU
%defattr(-,root,root)
%ifnarch %arm aarch64
%ifarch %ix86 x86_64
/usr/bin/xen-detect
%endif
/bin/domu-xenstore
@@ -1318,7 +1297,6 @@ fi
%endif
%endif
%ifnarch %arm aarch64
%if %{?with_systemd}0
%{fillup_and_insserv -i -y -n xendomains xendomains}
/bin/systemctl enable xendomains.service
@@ -1352,11 +1330,11 @@ if [ -f /usr/bin/qemu-io ]; then
rm -f /usr/lib/xen/bin/qemu-io-xen
ln -s /usr/bin/qemu-io /usr/lib/xen/bin/qemu-io-xen
fi
%endif
%if %suse_version > 1230
%if %{?with_xend}0
%if %{?with_xend_tools_pkg}0
%post xend-tools
%endif
%if %{?with_systemd}0
%{fillup_and_insserv -i -y -n xend xend}
/bin/systemctl enable xend.service
@@ -1364,7 +1342,6 @@ fi
%{fillup_and_insserv -y -n xend xend}
%endif
%endif
%endif
%preun tools
%if %{?with_systemd}0
@@ -1388,7 +1365,9 @@ fi
%if %suse_version > 1230
%if %{?with_xend}0
%if %{?with_xend_tools_pkg}0
%preun xend-tools
%endif
%if %{?with_systemd}0
if [ $1 -eq 0 ]; then
/bin/systemctl disable xend.service
@@ -1406,7 +1385,6 @@ fi
%endif
%endif
%{insserv_cleanup}
%ifnarch %arm aarch64
%if %suse_version <= 1230
%if %{?with_xend}0
if [ -f /usr/bin/qemu-img-xen ]; then
@@ -1417,11 +1395,12 @@ if [ -f /usr/bin/qemu-nbd-xen ]; then
fi
%endif
%endif
%endif
%if %suse_version > 1230
%if %{?with_xend}0
%if %{?with_xend_tools_pkg}0
%postun xend-tools
%endif
%{restart_on_update xend}
%{insserv_cleanup}
if [ -f /usr/bin/qemu-img-xen ]; then