qemu-ga-win: Rebase qemu-ga to 7.1.0
resolves: rhbz#2137262 Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
This commit is contained in:
parent
5b0936a8c8
commit
0c055286c8
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
|||||||
/qemu-6.2.0.tar.bz2
|
/qemu-6.2.0.tar.bz2
|
||||||
/qemu-7.0.0.tar.bz2
|
/qemu-7.0.0.tar.bz2
|
||||||
/qemu-7.0.0
|
/qemu-7.0.0
|
||||||
|
/qemu-7.1.0.tar.bz2
|
||||||
|
/qemu-7.1.0
|
||||||
|
@ -13,7 +13,7 @@ index 91ff57278e..586de296f5 100644
|
|||||||
--- a/VERSION
|
--- a/VERSION
|
||||||
+++ b/VERSION
|
+++ b/VERSION
|
||||||
@@ -1 +1 @@
|
@@ -1 +1 @@
|
||||||
-7.0.0
|
-7.1.0
|
||||||
+104.0.2
|
+105.0.0
|
||||||
--
|
--
|
||||||
2.17.2
|
2.17.2
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
From c0d0aa99062d0084c2c24ebd16fd59ce1819277b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
||||||
Date: Thu, 28 Apr 2022 16:37:38 +0000
|
|
||||||
Subject: [PATCH 1/2] configure: Add cross prefix for widl tool
|
|
||||||
|
|
||||||
The mingw-w64-tool package in Fedora provides widl tool with a
|
|
||||||
cross prefix, so adds it automatically for cross builds.
|
|
||||||
|
|
||||||
WIDL env can be used to redefine the path to tool.
|
|
||||||
The same behavior as with windres.
|
|
||||||
|
|
||||||
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
||||||
---
|
|
||||||
configure | 3 +++
|
|
||||||
1 file changed, 3 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/configure b/configure
|
|
||||||
index 59c43bea05..8b775492d0 100755
|
|
||||||
--- a/configure
|
|
||||||
+++ b/configure
|
|
||||||
@@ -415,6 +415,7 @@ ranlib="${RANLIB-${cross_prefix}ranlib}"
|
|
||||||
nm="${NM-${cross_prefix}nm}"
|
|
||||||
smbd="$SMBD"
|
|
||||||
strip="${STRIP-${cross_prefix}strip}"
|
|
||||||
+widl="${WIDL-${cross_prefix}widl}"
|
|
||||||
windres="${WINDRES-${cross_prefix}windres}"
|
|
||||||
pkg_config_exe="${PKG_CONFIG-${cross_prefix}pkg-config}"
|
|
||||||
query_pkg_config() {
|
|
||||||
@@ -2786,6 +2787,7 @@ if test "$skip_meson" = no; then
|
|
||||||
echo "sdl2-config = [$(meson_quote $sdl2_config)]" >> $cross
|
|
||||||
fi
|
|
||||||
echo "strip = [$(meson_quote $strip)]" >> $cross
|
|
||||||
+ echo "widl = [$(meson_quote $widl)]" >> $cross
|
|
||||||
echo "windres = [$(meson_quote $windres)]" >> $cross
|
|
||||||
if test "$cross_compile" = "yes"; then
|
|
||||||
cross_arg="--cross-file config-meson.cross"
|
|
||||||
@@ -2907,6 +2909,7 @@ preserve_env PYTHON
|
|
||||||
preserve_env SDL2_CONFIG
|
|
||||||
preserve_env SMBD
|
|
||||||
preserve_env STRIP
|
|
||||||
+preserve_env WIDL
|
|
||||||
preserve_env WINDRES
|
|
||||||
|
|
||||||
printf "exec" >>config.status
|
|
||||||
--
|
|
||||||
2.25.1
|
|
@ -1,25 +0,0 @@
|
|||||||
From 66fc295c9a2e29d04fafe729a384e321a347eca3 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Kostiantyn Kostiuk <konstantin@daynix.com>
|
|
||||||
Date: Tue, 20 Jul 2021 17:19:34 +0000
|
|
||||||
Subject: [PATCH 1/2] qga: Log version on start
|
|
||||||
|
|
||||||
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com>
|
|
||||||
---
|
|
||||||
qga/main.c | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/qga/main.c b/qga/main.c
|
|
||||||
index dea6a3aa64..bce93dfdd0 100644
|
|
||||||
--- a/qga/main.c
|
|
||||||
+++ b/qga/main.c
|
|
||||||
@@ -1538,6 +1538,7 @@ int main(int argc, char **argv)
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ slog("Guest agent version %s started", QEMU_VERSION);
|
|
||||||
#ifdef _WIN32
|
|
||||||
if (config->daemonize) {
|
|
||||||
SERVICE_TABLE_ENTRY service_table[] = {
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
From 0b188ab30b32fc16adbcb2da768edfa0ec1fc805 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
||||||
Date: Thu, 12 May 2022 15:41:43 +0000
|
|
||||||
Subject: [PATCH] qga-vss: Add auto generated headers to dependencies
|
|
||||||
|
|
||||||
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
||||||
---
|
|
||||||
qga/vss-win32/meson.build | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/qga/vss-win32/meson.build b/qga/vss-win32/meson.build
|
|
||||||
index 26c5dd6e0e..9483ccd3b8 100644
|
|
||||||
--- a/qga/vss-win32/meson.build
|
|
||||||
+++ b/qga/vss-win32/meson.build
|
|
||||||
@@ -7,7 +7,7 @@ link_args = cc.get_supported_link_arguments([
|
|
||||||
|
|
||||||
qga_vss = shared_module(
|
|
||||||
'qga-vss',
|
|
||||||
- ['requester.cpp', 'provider.cpp', 'install.cpp'],
|
|
||||||
+ ['requester.cpp', 'provider.cpp', 'install.cpp', genh],
|
|
||||||
name_prefix: '',
|
|
||||||
cpp_args: ['-Wno-unknown-pragmas', '-Wno-delete-non-virtual-dtor', '-Wno-non-virtual-dtor'],
|
|
||||||
link_args: link_args,
|
|
||||||
--
|
|
||||||
2.25.1
|
|
@ -1,33 +0,0 @@
|
|||||||
From 4ee7074cdf48e77886637e12f148e267329978d3 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
||||||
Date: Thu, 12 May 2022 15:43:37 +0000
|
|
||||||
Subject: [PATCH] qga-vss: Use a proper function for free memory
|
|
||||||
|
|
||||||
volume_name_wchar is allocated by 'void* operator new [](long long unsigned int)
|
|
||||||
|
|
||||||
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
||||||
---
|
|
||||||
qga/vss-win32/requester.cpp | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/qga/vss-win32/requester.cpp b/qga/vss-win32/requester.cpp
|
|
||||||
index 4513324dd2..b371affeab 100644
|
|
||||||
--- a/qga/vss-win32/requester.cpp
|
|
||||||
+++ b/qga/vss-win32/requester.cpp
|
|
||||||
@@ -354,12 +354,12 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset)
|
|
||||||
if (FAILED(hr)) {
|
|
||||||
err_set(errset, hr, "failed to add %S to snapshot set",
|
|
||||||
volume_name_wchar);
|
|
||||||
- delete volume_name_wchar;
|
|
||||||
+ delete[] volume_name_wchar;
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
num_mount_points++;
|
|
||||||
|
|
||||||
- delete volume_name_wchar;
|
|
||||||
+ delete[] volume_name_wchar;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (num_mount_points == 0) {
|
|
||||||
--
|
|
||||||
2.25.1
|
|
@ -1,32 +0,0 @@
|
|||||||
From 338883766e88555287c3685c55a909eac5ab0f64 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
||||||
Date: Thu, 28 Apr 2022 16:41:13 +0000
|
|
||||||
Subject: [PATCH 2/2] qga-vss: always build qga-vss.tlb when qga-vss.dll is
|
|
||||||
built
|
|
||||||
|
|
||||||
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
|
|
||||||
---
|
|
||||||
qga/vss-win32/meson.build | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/qga/vss-win32/meson.build b/qga/vss-win32/meson.build
|
|
||||||
index 71c50d0866..26c5dd6e0e 100644
|
|
||||||
--- a/qga/vss-win32/meson.build
|
|
||||||
+++ b/qga/vss-win32/meson.build
|
|
||||||
@@ -23,8 +23,6 @@ qga_vss = shared_module(
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
-all_qga += qga_vss
|
|
||||||
-
|
|
||||||
if midl.found()
|
|
||||||
gen_tlb = custom_target('gen-tlb',
|
|
||||||
input: 'qga-vss.idl',
|
|
||||||
@@ -36,3 +34,5 @@ else
|
|
||||||
output: 'qga-vss.tlb',
|
|
||||||
command: [widl, '-t', '@INPUT@', '-o', '@OUTPUT@'])
|
|
||||||
endif
|
|
||||||
+
|
|
||||||
+all_qga += [ qga_vss, gen_tlb ]
|
|
||||||
--
|
|
||||||
2.25.1
|
|
@ -1,12 +1,12 @@
|
|||||||
%{?mingw_package_header}
|
%{?mingw_package_header}
|
||||||
|
|
||||||
%define with_vss 1
|
%define with_vss 1
|
||||||
%define qemu_version 7.0.0
|
%define qemu_version 7.1.0
|
||||||
%define ga_manufacturer "RedHat"
|
%define ga_manufacturer "RedHat"
|
||||||
%define ga_distro "RHEL"
|
%define ga_distro "RHEL"
|
||||||
|
|
||||||
Name: mingw-qemu-ga-win
|
Name: mingw-qemu-ga-win
|
||||||
Version: 104.0.2
|
Version: 105.0.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Qemus Guest agent for Windows
|
Summary: Qemus Guest agent for Windows
|
||||||
|
|
||||||
@ -19,11 +19,6 @@ Requires(postun): systemd-units
|
|||||||
Source0: http://wiki.qemu.org/download/qemu-%{qemu_version}.tar.bz2
|
Source0: http://wiki.qemu.org/download/qemu-%{qemu_version}.tar.bz2
|
||||||
|
|
||||||
Patch0001: 0001-Change-Version.patch
|
Patch0001: 0001-Change-Version.patch
|
||||||
Patch0002: 0001-qga-Log-version-on-start.patch
|
|
||||||
Patch0003: 0001-configure-Add-cross-prefix-for-widl-tool.patch
|
|
||||||
Patch0004: 0002-qga-vss-always-build-qga-vss.tlb-when-qga-vss.dll-is.patch
|
|
||||||
Patch0005: 0001-qga-vss-Add-auto-generated-headers-to-dependencies.patch
|
|
||||||
Patch0006: 0001-qga-vss-Use-a-proper-function-for-free-memory.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -64,11 +59,6 @@ Qemu Guest Agent for Windows
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n qemu-%{qemu_version}
|
%setup -q -n qemu-%{qemu_version}
|
||||||
%patch0001 -p1
|
%patch0001 -p1
|
||||||
%patch0002 -p1
|
|
||||||
%patch0003 -p1
|
|
||||||
%patch0004 -p1
|
|
||||||
%patch0005 -p1
|
|
||||||
%patch0006 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -123,6 +113,10 @@ cp build/qga/qemu-ga-x86_64.msi $RPM_BUILD_ROOT%{mingw64_bindir}
|
|||||||
%{mingw64_bindir}/qemu-ga*
|
%{mingw64_bindir}/qemu-ga*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 24 2022 Konstantin Kostiuk <kkostiuk@redhat.com> 105.0.0
|
||||||
|
- Set version to 105.0.0
|
||||||
|
- BZ#2137262 - qemu-ga-win: Rebase qemu-ga to 7.1.0
|
||||||
|
|
||||||
* Tue May 17 2022 Konstantin Kostiuk <kkostiuk@redhat.com> 104.0.2
|
* Tue May 17 2022 Konstantin Kostiuk <kkostiuk@redhat.com> 104.0.2
|
||||||
- Set version to 104.0.2
|
- Set version to 104.0.2
|
||||||
- BZ#2084608 - Fix mismatched allocation function
|
- BZ#2084608 - Fix mismatched allocation function
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (qemu-7.0.0.tar.bz2) = ddc3f7efd4fe5990d125b345cfdfc8a2ce0fddf29143d3840d36220c980eb82101f7747490e384e1b06be389e8f25a43bb444aa016afccdec54a2ac652d2557b
|
SHA512 (qemu-7.1.0.tar.bz2) = 0bc22ebecf857e354f59e4856d9b24a0886d3b1e48121a4e8753e2f0bcc9fb1038c703a73dcef3a21baea48ef34c31af6f300430caa118e84cbc91fedd99b8b2
|
||||||
|
Loading…
Reference in New Issue
Block a user