Accepting request 692396 from home:ldewey:branches:Virtualization
- Fixing issue with virt-customize uninstall and '-l' (bnc#1131342) Patches added: fd43730e-error-with-uninstall-option-on-SUSE.patch OBS-URL: https://build.opensuse.org/request/show/692396 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=433
This commit is contained in:
parent
d669de6745
commit
20f23f75d3
31
fd43730e-error-with-uninstall-option-on-SUSE.patch
Normal file
31
fd43730e-error-with-uninstall-option-on-SUSE.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From a4f65bf89d955f585f141fd3402e51eec53ba562 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sebastian Meyer <meyer@b1-systems.de>
|
||||||
|
Date: Thu, 23 Aug 2018 16:45:27 +0200
|
||||||
|
Subject: [PATCH 1/1] Fix error with --uninstall option on SUSE
|
||||||
|
|
||||||
|
The `-l` option for some `zypper` subcommands is short for
|
||||||
|
`--auto-agree-with-licenses` and not available on the `zypper rm` command.
|
||||||
|
|
||||||
|
(cherry picked from commit fd43730e2bfff17a365ffcf768b6c8db3089b524)
|
||||||
|
[BSC#1131342]
|
||||||
|
Signed-off-by: Larry Dewey <ldewey@suse.com>
|
||||||
|
---
|
||||||
|
customize/customize_run.ml | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/customize/customize_run.ml b/customize/customize_run.ml
|
||||||
|
index f92e9a199..3eacdaca0 100644
|
||||||
|
--- a/customize/customize_run.ml
|
||||||
|
+++ b/customize/customize_run.ml
|
||||||
|
@@ -181,7 +181,7 @@ exec >>%s 2>&1
|
||||||
|
| "urpmi" -> sprintf "urpme %s" quoted_args
|
||||||
|
| "xbps" -> sprintf "xbps-remove -Sy %s" quoted_args
|
||||||
|
| "yum" -> sprintf "yum -y remove %s" quoted_args
|
||||||
|
- | "zypper" -> sprintf "zypper -n rm -l %s" quoted_args
|
||||||
|
+ | "zypper" -> sprintf "zypper -n rm %s" quoted_args
|
||||||
|
|
||||||
|
| "unknown" ->
|
||||||
|
error_unknown_package_manager (s_"--uninstall")
|
||||||
|
--
|
||||||
|
2.21.0
|
||||||
|
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 8 18:50:31 UTC 2019 - Larry Dewey <ldewey@suse.com>
|
||||||
|
|
||||||
|
- Fixing issue with virt-customize uninstall and '-l'
|
||||||
|
(bnc#1131342)
|
||||||
|
Patches added:
|
||||||
|
fd43730e-error-with-uninstall-option-on-SUSE.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 11 13:39:04 UTC 2018 - ohering@suse.de
|
Mon Jun 11 13:39:04 UTC 2018 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libguestfs
|
# spec file for package libguestfs
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2011 Michal Hrusecky <mhrusecky@novell.com>
|
# Copyright (c) 2011 Michal Hrusecky <mhrusecky@novell.com>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -13,7 +13,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
# needsbinariesforbuild
|
# needsbinariesforbuild
|
||||||
|
|
||||||
@ -140,10 +140,11 @@ Url: http://libguestfs.org/
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Summary: Compatibility package for guestfs-tools
|
Summary: Compatibility package for guestfs-tools
|
||||||
# Upstream patches
|
# Upstream patches
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
Patch0: d0e5a819-python-Fix-missing-additional-backslashes.patch
|
Patch0: d0e5a819-python-Fix-missing-additional-backslashes.patch
|
||||||
Patch1: 0a55098f-builder-repository-fix-compute_short_id-for-sles-X.0.patch
|
Patch1: 0a55098f-builder-repository-fix-compute_short_id-for-sles-X.0.patch
|
||||||
|
Patch2: fd43730e-error-with-uninstall-option-on-SUSE.patch
|
||||||
# Pending upstram review
|
# Pending upstram review
|
||||||
Patch50: 0001-Introduce-a-wrapper-around-xmlParseURI.patch
|
Patch50: 0001-Introduce-a-wrapper-around-xmlParseURI.patch
|
||||||
Patch51: 0002-common-extract-UTF-8-conversion-function.patch
|
Patch51: 0002-common-extract-UTF-8-conversion-function.patch
|
||||||
@ -175,7 +176,7 @@ performing partial backups, cloning VMs, and much else besides.
|
|||||||
|
|
||||||
%package -n guestfs-tools
|
%package -n guestfs-tools
|
||||||
Summary: Tools for accessing and modifying virtual machine disk images
|
Summary: Tools for accessing and modifying virtual machine disk images
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
Provides: %{name} = %{version}
|
Provides: %{name} = %{version}
|
||||||
Obsoletes: %{name} < %{version}
|
Obsoletes: %{name} < %{version}
|
||||||
@ -228,7 +229,7 @@ virtual machines.
|
|||||||
|
|
||||||
%package -n guestfsd
|
%package -n guestfsd
|
||||||
Summary: Daemon for the libguestfs appliance
|
Summary: Daemon for the libguestfs appliance
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
Conflicts: libaugeas0 < 1.0.0
|
Conflicts: libaugeas0 < 1.0.0
|
||||||
|
|
||||||
@ -242,7 +243,7 @@ This package is only required for building the appliance.
|
|||||||
%package -n ocaml-libguestfs
|
%package -n ocaml-libguestfs
|
||||||
Summary: OCaml bindings for libguestfs
|
Summary: OCaml bindings for libguestfs
|
||||||
#
|
#
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
|
|
||||||
%description -n ocaml-libguestfs
|
%description -n ocaml-libguestfs
|
||||||
@ -250,7 +251,7 @@ Allows OCaml scripts to directly use libguestfs.
|
|||||||
|
|
||||||
%package -n ocaml-libguestfs-devel
|
%package -n ocaml-libguestfs-devel
|
||||||
Summary: Development files for libguesfs OCaml bindings
|
Summary: Development files for libguesfs OCaml bindings
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
|
|
||||||
%description -n ocaml-libguestfs-devel
|
%description -n ocaml-libguestfs-devel
|
||||||
@ -260,7 +261,7 @@ Allows OCaml scripts to directly use libguestfs.
|
|||||||
%if %{with perl_bindings}
|
%if %{with perl_bindings}
|
||||||
%package -n perl-Sys-Guestfs
|
%package -n perl-Sys-Guestfs
|
||||||
Summary: Perl bindings for libguestfs
|
Summary: Perl bindings for libguestfs
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/Perl
|
Group: Development/Languages/Perl
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl(Data::Dumper)
|
BuildRequires: perl(Data::Dumper)
|
||||||
@ -288,7 +289,7 @@ Allows Perl scripts to directly use libguestfs.
|
|||||||
%if %{with lua_bindings}
|
%if %{with lua_bindings}
|
||||||
%package -n lua-libguestfs
|
%package -n lua-libguestfs
|
||||||
Summary: Lua bindings for libguestfs
|
Summary: Lua bindings for libguestfs
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/Lua
|
Group: Development/Languages/Lua
|
||||||
BuildRequires: lua-devel
|
BuildRequires: lua-devel
|
||||||
%define _configure_lua --enable-lua
|
%define _configure_lua --enable-lua
|
||||||
@ -303,7 +304,7 @@ Allows lua scripts to directly use libguestfs.
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%package -n python2-libguestfs
|
%package -n python2-libguestfs
|
||||||
Summary: Python 2 bindings for libguestfs
|
Summary: Python 2 bindings for libguestfs
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@ -321,7 +322,7 @@ Allows Python 2 scripts to directly use libguestfs.
|
|||||||
|
|
||||||
%package -n python3-libguestfs
|
%package -n python3-libguestfs
|
||||||
Summary: Python 3 bindings for libguestfs
|
Summary: Python 3 bindings for libguestfs
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
BuildRequires: python3
|
BuildRequires: python3
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -338,11 +339,11 @@ Allows Python 3 scripts to directly use libguestfs.
|
|||||||
%if %{with ruby_bindings}
|
%if %{with ruby_bindings}
|
||||||
%package -n rubygem-libguestfs
|
%package -n rubygem-libguestfs
|
||||||
Summary: Ruby bindings for libguestfs
|
Summary: Ruby bindings for libguestfs
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Languages/Ruby
|
Group: Development/Languages/Ruby
|
||||||
BuildRequires: ruby
|
BuildRequires: ruby
|
||||||
BuildRequires: ruby-devel
|
BuildRequires: ruby-devel
|
||||||
BuildRequires: rubygem-rake
|
BuildRequires: rubygem(rake)
|
||||||
%define _configure_ruby --enable-ruby
|
%define _configure_ruby --enable-ruby
|
||||||
#
|
#
|
||||||
|
|
||||||
@ -352,7 +353,7 @@ Allows Ruby scripts to directly use libguestfs.
|
|||||||
|
|
||||||
%package test
|
%package test
|
||||||
Summary: Testcases for libguestfs
|
Summary: Testcases for libguestfs
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
Requires: %{name}
|
Requires: %{name}
|
||||||
|
|
||||||
@ -405,6 +406,7 @@ BuildRequires: strace
|
|||||||
%ifarch %ix86 x86_64
|
%ifarch %ix86 x86_64
|
||||||
BuildRequires: syslinux
|
BuildRequires: syslinux
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: ldmtool
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: systemd-sysvinit
|
BuildRequires: systemd-sysvinit
|
||||||
BuildRequires: tar
|
BuildRequires: tar
|
||||||
@ -415,7 +417,6 @@ BuildRequires: util-linux
|
|||||||
BuildRequires: util-linux-lang
|
BuildRequires: util-linux-lang
|
||||||
BuildRequires: xfsprogs
|
BuildRequires: xfsprogs
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
BuildRequires: ldmtool
|
|
||||||
|
|
||||||
# Needed by guestfsd which is burried in the appliance
|
# Needed by guestfsd which is burried in the appliance
|
||||||
#
|
#
|
||||||
@ -458,7 +459,7 @@ Recommends: guestfs-winsupport
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Summary: Virtual machine needed for libguestfs
|
Summary: Virtual machine needed for libguestfs
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
Provides: libguestfs-data = %{version}
|
Provides: libguestfs-data = %{version}
|
||||||
Obsoletes: libguestfs-data < %{version}
|
Obsoletes: libguestfs-data < %{version}
|
||||||
@ -470,7 +471,7 @@ This package provides such an image, an initrd and a kernel.
|
|||||||
%if ! 0%{?is_opensuse}
|
%if ! 0%{?is_opensuse}
|
||||||
%package -n guestfs-winsupport
|
%package -n guestfs-winsupport
|
||||||
Summary: Windows guest support in libguestfs
|
Summary: Windows guest support in libguestfs
|
||||||
License: GPL-2.0+
|
License: GPL-2.0-or-later
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
Requires: libguestfs >= 1.32
|
Requires: libguestfs >= 1.32
|
||||||
BuildRequires: ntfs-3g
|
BuildRequires: ntfs-3g
|
||||||
@ -484,7 +485,7 @@ Provides the needed pieces for libguestfs to handle Windows guests.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for libguestfs
|
Summary: Development files for libguestfs
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libguestfs0 = %{version}
|
Requires: libguestfs0 = %{version}
|
||||||
|
|
||||||
@ -498,7 +499,7 @@ performing partial backups, cloning VMs, and much else besides.
|
|||||||
|
|
||||||
%package -n libguestfs0
|
%package -n libguestfs0
|
||||||
Summary: Runtime library of libguestfs
|
Summary: Runtime library of libguestfs
|
||||||
License: LGPL-2.1
|
License: LGPL-2.1-only
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: %{kvm_binary}
|
Requires: %{kvm_binary}
|
||||||
Requires: db48-utils
|
Requires: db48-utils
|
||||||
@ -528,7 +529,7 @@ virtual machines.
|
|||||||
|
|
||||||
%package -n virt-v2v
|
%package -n virt-v2v
|
||||||
Summary: Convert a virtual machine to run on KVM
|
Summary: Convert a virtual machine to run on KVM
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Requires: libguestfs0 = %{version}
|
Requires: libguestfs0 = %{version}
|
||||||
Requires: qemu-block-ssh
|
Requires: qemu-block-ssh
|
||||||
@ -543,7 +544,7 @@ from libvirt-managed hosts.
|
|||||||
%if %{with p2v}
|
%if %{with p2v}
|
||||||
%package -n virt-p2v
|
%package -n virt-p2v
|
||||||
Summary: Convert a physical machine to run on KVM
|
Summary: Convert a physical machine to run on KVM
|
||||||
License: GPL-2.0
|
License: GPL-2.0-only
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Requires: gawk
|
Requires: gawk
|
||||||
Requires: virt-v2v = %{version}
|
Requires: virt-v2v = %{version}
|
||||||
@ -558,6 +559,7 @@ It can import a variety of guest operating systems from libvirt-managed hosts.
|
|||||||
%setup -q -a 789653
|
%setup -q -a 789653
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
%patch50 -p1
|
%patch50 -p1
|
||||||
%patch51 -p1
|
%patch51 -p1
|
||||||
%patch52 -p1
|
%patch52 -p1
|
||||||
|
Loading…
Reference in New Issue
Block a user