diff --git a/0001-initrdinject-Use-full-option-versions-for-cpio.patch b/0001-initrdinject-Use-full-option-versions-for-cpio.patch new file mode 100644 index 0000000000000000000000000000000000000000..3ce130c64087d82c1eef934970cf5337a4208a31 --- /dev/null +++ b/0001-initrdinject-Use-full-option-versions-for-cpio.patch @@ -0,0 +1,25 @@ +From: Cole Robinson +Date: Tue, 2 Apr 2019 15:02:47 -0400 +Subject: [PATCH virt-manager] initrdinject: Use full option versions for cpio + +Makes it more self documenting IMO + +(cherry picked from commit 309840b9535b0e1965ed177b4558652faa256b36) +--- + virtinst/initrdinject.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/virtinst/initrdinject.py b/virtinst/initrdinject.py +index 78c18c28..9a09f20c 100644 +--- a/virtinst/initrdinject.py ++++ b/virtinst/initrdinject.py +@@ -30,7 +30,8 @@ def perform_initrd_injections(initrd, injections, scratchdir): + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + cwd=tempdir) +- cpio_proc = subprocess.Popen(['cpio', '-o', '--null', '-Hnewc', '--quiet'], ++ cpio_proc = subprocess.Popen(['cpio', '--create', '--null', '--quiet', ++ '--format=newc'], + stdin=find_proc.stdout, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, diff --git a/0002-initrdinject-Force-added-files-to-be-owned-as-root-b.patch b/0002-initrdinject-Force-added-files-to-be-owned-as-root-b.patch new file mode 100644 index 0000000000000000000000000000000000000000..881c1deea9dc2d6d1853119a33141fa23bca4698 --- /dev/null +++ b/0002-initrdinject-Force-added-files-to-be-owned-as-root-b.patch @@ -0,0 +1,33 @@ +From: Cole Robinson +Date: Wed, 3 Apr 2019 18:07:12 -0400 +Subject: [PATCH virt-manager] initrdinject: Force added files to be owned as + root (bz 1686464) + +systemd in fedora30 has some new security restriction about non-root +owned directories. Initrd inject would tickle this because the cpio +archive would cause the root dir in the initrd to be owned by the +uid that launched virt-install. + +Pass --owner=+0:+0 to cpio to force root ownership + +Suggested-by: James Szinger + +https://bugzilla.redhat.com/show_bug.cgi?id=1686464 +(cherry picked from commit c6b5f22fa61d87557b5fab23be080073d2f7906e) +--- + virtinst/initrdinject.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/virtinst/initrdinject.py b/virtinst/initrdinject.py +index 9a09f20c..4032f9ba 100644 +--- a/virtinst/initrdinject.py ++++ b/virtinst/initrdinject.py +@@ -31,7 +31,7 @@ def perform_initrd_injections(initrd, injections, scratchdir): + stderr=subprocess.PIPE, + cwd=tempdir) + cpio_proc = subprocess.Popen(['cpio', '--create', '--null', '--quiet', +- '--format=newc'], ++ '--format=newc', '--owner=+0:+0'], + stdin=find_proc.stdout, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, diff --git a/del.log b/del.log new file mode 100644 index 0000000000000000000000000000000000000000..9d5fddb5a42431cfabf9739f04588d7198224aad --- /dev/null +++ b/del.log @@ -0,0 +1,84 @@ +tree-1.8.0-1.fc29.aarch64 +jboss-el-3.0-api-1.0.5-5.fc29.noarch +maven-reporting-api-3.0-16.fc30.noarch +glassfish-annotation-api-1.2-14.fc29.noarch +maven-surefire-provider-junit-2.22.0-4.fc30.noarch +libqb-devel-1.0.5-2.fc29.aarch64 +maven-dependency-analyzer-1.10-2.fc30.noarch +sisu-inject-0.3.3-6.fc29.noarch +junit5-5.4.0-1.fc30.noarch +istack-commons-runtime-2.21-10.fc30.noarch +t1utils-1.41-1.fc30.aarch64 +mecab-devel-0.996-2.fc29.1.aarch64 +jboss-jsp-2.3-api-1.0.1-5.fc29.noarch +httpcomponents-client-4.5.7-1.fc30.noarch +apache-commons-digester-2.1-11.fc29.noarch +plexus-component-api-1.0-0.26.alpha15.fc30.noarch +batik-1.10-4.fc30.noarch +maven-dependency-plugin-3.1.1-2.fc30.noarch +apache-commons-io-2.6-6.fc30.noarch +jansi-1.17.1-3.fc30.noarch +javapackages-local-5.3.0-4.fc30.noarch +relaxngDatatype-2011.1-9.fc30.noarch +msv-msv-2013.6.1-14.fc30.noarch +args4j-2.33-6.fc30.noarch +apache-commons-beanutils-1.9.3-5.fc29.noarch +xstream-1.4.9-8.fc29.noarch +python3-javapackages-5.3.0-4.fc30.noarch +glassfish-el-api-3.0.1-0.9.b08.fc29.noarch +testng-6.14.3-7.fc30.noarch +glassfish-fastinfoset-1.2.13-11.fc30.noarch +glassfish-dtd-parser-1.2-0.19.20120120svn.fc30.noarch +t1lib-5.1.2-24.fc30.aarch64 +rapidjson-devel-1.1.0-8.fc29.noarch +osgi-compendium-7.0.0-2.fc30.noarch +fontbox-2.0.16-1.fc30.noarch +jakarta-commons-httpclient-3.1-31.fc30.noarch +libnozzle1-1.13-1.fc29.aarch64 +libknet1-1.16-1.fc30.aarch64 +xsom-0-21.20110809svn.fc30.noarch +maven-surefire-plugin-2.22.0-3.fc29.noarch +jboss-jstl-1.2-api-1.1.2-6.fc29.noarch +mojarra-2.2.13-5.fc29.noarch +maven-plugin-bundle-3.5.1-2.fc30.noarch +libfabric-1.7.0-2.fc30.aarch64 +plexus-containers-container-default-1.7.1-8.fc29.noarch +msv-xsdlib-2013.6.1-14.fc30.noarch +istack-commons-tools-2.21-10.fc30.noarch +maven-surefire-2.22.0-3.fc29.noarch +git-lfs-2.11.0-1.fc30.aarch64 +jboss-servlet-3.1-api-1.0.0-5.fc29.noarch +glassfish-ejb-api-3.2-7.fc29.noarch +maven-surefire-provider-testng-2.22.0-4.fc30.noarch +libqb-1.0.5-2.fc29.aarch64 +plexus-containers-component-annotations-1.7.1-8.fc29.noarch +libknet1-devel-1.16-1.fc30.aarch64 +jansi-native-1.7-7.fc29.aarch64 +maven-settings-2.2.1-61.fc30.noarch +maven-project-2.2.1-61.fc30.noarch +maven-monitor-2.2.1-61.fc30.noarch +sisu-plexus-0.3.3-6.fc29.noarch +maven-failsafe-plugin-2.22.0-4.fc30.noarch +bea-stax-api-1.2.0-18.fc30.noarch +kohsuke-pom-14-6.fc29.noarch +t1lib-devel-5.1.2-24.fc30.aarch64 +mecab-0.996-2.fc29.1.aarch64 +glassfish-transaction-api-1.2-6.fc29.noarch +httpcomponents-core-4.4.10-5.fc30.noarch +xmvn-mojo-3.0.0-23.fc30.noarch +libnozzle1-devel-1.13-1.fc29.aarch64 +batik-css-1.10-4.fc30.noarch +libknet1-crypto-nss-plugin-1.16-1.fc30.aarch64 +javapackages-tools-5.3.0-4.fc30.noarch +maven-profile-2.2.1-61.fc30.noarch +compat-openssl10-1.0.2o-7.fc29.aarch64 +isorelax-0-0.25.release20050331.fc30.noarch +osgi-annotation-7.0.0-2.fc30.noarch +avalon-framework-4.3-23.fc30.noarch +maven-local-5.3.0-4.fc30.noarch +libfabric-devel-1.7.0-2.fc30.aarch64 +javapackages-filesystem-5.3.0-4.fc30.noarch +maven-lib-3.5.4-11.fc30.noarch +opentest4j-1.1.1-1.fc30.noarch +xmlstreambuffer-1.5.4-9.fc30.noarch +glassfish-jaxb-api-2.2.12-11.fc30.noarch diff --git a/virt-manager-2.1.0.tar.gz b/virt-manager-2.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bd704809f80b0221f5bf6e6439d47f836dbadf55 Binary files /dev/null and b/virt-manager-2.1.0.tar.gz differ diff --git a/virt-manager.spec b/virt-manager.spec new file mode 100644 index 0000000000000000000000000000000000000000..6d14e8f5623165b73a41f9c7c911840ebdc4378d --- /dev/null +++ b/virt-manager.spec @@ -0,0 +1,85 @@ +%global __python %{__python3} +Name: virt-manager +Version: 2.1.0 +Release: 3 +Summary: The manage virtual machines tool which via libvirt. +License: GPLv2+ +BuildArch: noarch +URL: https://virt-manager.org/ +Source0: https://virt-manager.org/download/sources/virt-manager/virt-manager-%{version}.tar.gz +Patch0001: 0001-initrdinject-Use-full-option-versions-for-cpio.patch +Patch0002: 0002-initrdinject-Force-added-files-to-be-owned-as-root-b.patch +Requires: virt-manager-common = %{version}-%{release} python3-gobject gtk3 libvirt-glib >= 0.0.9 +Requires: gtk-vnc2 spice-gtk3 dconf vte291 +Recommends: (libvirt-daemon-kvm or libvirt-daemon-qemu) libvirt-daemon-config-network +BuildRequires: intltool pod2man python3-devel + +%description +The virtual machine management tool uses libvirt as the management API and provides +graphical tools for managing KVM,Xen and LXC.Used to start, stop, add or delete +virtual devices, Connect to the console via graphics or serial to view and count the +resource usage and provide it to the virtual machine. + +%package common +Summary: Files used for Virtual Machine Manager interfaces +Requires: python3-argcomplete python3-libvirt python3-libxml2 python3-requests +Requires: libosinfo >= 0.2.10 python3-gobject-base genisoimage + +%description common +The files used by virt-manager interfaces, as virt-install related tools. + +%package -n virt-install +Summary: Utilities for installing virtual machines +Requires: virt-manager-common = %{version}-%{release} libvirt-client +Provides: virt-install virt-clone virt-convert virt-xml + +%description -n virt-install +Package provides several command line utilities, including virt-clone (clone an +existing virtual machine) and virt-install (build and install new VMs). + +%package help +Summary: Documentation for user of virt-manager. +Requires: virt-manager = %{version}-%{release} + +%description help +Documentation for user of virt-manager. + +%prep +%autosetup -n virt-manager-%{version} -p1 -S git + +%build +./setup.py configure --default-hvs "qemu,xen,lxc" + +%install +./setup.py --no-update-icon-cache --no-compile-schemas install -O1 --root=%{buildroot} +%find_lang virt-manager +for f in $(find %{buildroot} -type f -executable -print); do + sed -i "1 s|^#!/usr/bin/env python3|#!%{__python3}|" $f || : +done + +%files +%doc README.md COPYING NEWS.md +%{_bindir}/virt-manager +%{_datadir}/virt-manager/ui/*.ui +%{_datadir}/virt-manager/{virt-manager,virtManager,icons} +%{_datadir}/icons/hicolor/*/apps/* +%{_datadir}/appdata/virt-manager.appdata.xml +%{_datadir}/applications/virt-manager.desktop +%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml + +%files common -f virt-manager.lang +%dir %{_datadir}/virt-manager +%{_datadir}/virt-manager/{virtcli,virtconv,virtinst} + +%files -n virt-install +%{_datadir}/virt-manager/{virt-install,virt-clone,virt-convert,virt-xml} +%{_datadir}/bash-completion/completions/{virt-install,virt-clone,virt-convert,virt-xml} +%{_bindir}/{virt-install,virt-clone,virt-convert,virt-xml} + +%files help +%{_mandir}/man1/virt-manager.1* +%{_mandir}/man1/{virt-install.1*,virt-clone.1*,virt-convert.1*,virt-xml.1*} + +%changelog +* Wed Apr 22 2020 Jeffery.Gao - 2.1.0-3 +- Package init