4 Commits

Author SHA256 Message Date
604eed9d2e Accepting request 1313079 from Virtualization
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1313079
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spice-vdagent?expand=0&rev=27
2025-10-24 15:22:49 +00:00
3e5e0cc463 - Update to version 0.23.0. Features and Issues addressed:
systemd services: add Documentation key (point to manpage)
  Switch to spice-vdagent.service by default
  Improve integration with systemd service manager
  Makefile.am: don't create /var/run/spice-vdagentd
  vdagent: remove callback on destroy()
  Fix minor spelling errors
  Fix VDAGentMonitorConfig size calculation
- Drop 0001-Switch-to-spice-vdagent.service-by-default.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/spice-vdagent?expand=0&rev=57
2025-10-15 19:46:05 +00:00
69b08dff2d Accepting request 1307409 from Virtualization
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1307409
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spice-vdagent?expand=0&rev=26
2025-09-29 14:31:06 +00:00
f45b451e49 Accepting request 1306038 from home:iznogood:branches:Virtualization
- Add (xwayland and modalias(virtio:d00000003v*)) Supplements: we
  can not expect xorg-x11-server to always present anymore.

OBS-URL: https://build.opensuse.org/request/show/1306038
OBS-URL: https://build.opensuse.org/package/show/Virtualization/spice-vdagent?expand=0&rev=55
2025-09-19 20:46:32 +00:00
6 changed files with 34 additions and 56 deletions

View File

@@ -1,42 +0,0 @@
From aa08162f036840d3e33502dc0a836b03b9cec97c Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.de>
Date: Wed, 8 Feb 2023 17:21:48 +0100
Subject: [PATCH] Switch to spice-vdagent.service by default
Add an [Install] section to the user unit and tell systemd to ignore the
.desktop file explicitly.
Also add missing ordering dependencies. Without this, the service fails if
it is started before e.g. $DISPLAY is set.
---
data/spice-vdagent.desktop | 1 +
data/spice-vdagent.service | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/data/spice-vdagent.desktop b/data/spice-vdagent.desktop
index 4424061..729a5f6 100644
--- a/data/spice-vdagent.desktop
+++ b/data/spice-vdagent.desktop
@@ -7,3 +7,4 @@ Type=Application
Categories=
X-GNOME-Autostart-Phase=WindowManager
NoDisplay=true
+X-systemd-skip=true
diff --git a/data/spice-vdagent.service b/data/spice-vdagent.service
index a18f4ff..91734ff 100644
--- a/data/spice-vdagent.service
+++ b/data/spice-vdagent.service
@@ -1,5 +1,10 @@
[Unit]
Description=Spice guest session agent
+# Make sure the display is reachable
+After=graphical-session.target
[Service]
ExecStart=/usr/bin/spice-vdagent -x
+
+[Install]
+WantedBy=graphical-session.target
--
2.39.1

View File

@@ -1,9 +1,9 @@
Index: spice-vdagent-0.21.0/data/spice-vdagentd.service
Index: spice-vdagent-0.23.0/data/spice-vdagentd.service
===================================================================
--- spice-vdagent-0.21.0.orig/data/spice-vdagentd.service
+++ spice-vdagent-0.21.0/data/spice-vdagentd.service
--- spice-vdagent-0.23.0.orig/data/spice-vdagentd.service
+++ spice-vdagent-0.23.0/data/spice-vdagentd.service
@@ -9,6 +9,17 @@ EnvironmentFile=-/etc/sysconfig/spice-vd
ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS
ExecStart=/usr/sbin/spice-vdagentd -x $SPICE_VDAGENTD_EXTRA_ARGS
PIDFile=/run/spice-vdagentd/spice-vdagentd.pid
PrivateTmp=true
+# added automatically, for details please see
@@ -16,7 +16,7 @@ Index: spice-vdagent-0.21.0/data/spice-vdagentd.service
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
+# end of automatic additions
Restart=on-failure
[Install]
# spice-vdagentd logs via syslog() and to stderr, causing duplicated

Binary file not shown.

BIN
spice-vdagent-0.23.0.tar.bz2 LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Wed Oct 15 09:56:41 MDT 2025 - carnold@suse.com
- Update to version 0.23.0. Features and Issues addressed:
systemd services: add Documentation key (point to manpage)
Switch to spice-vdagent.service by default
Improve integration with systemd service manager
Makefile.am: don't create /var/run/spice-vdagentd
vdagent: remove callback on destroy()
Fix minor spelling errors
Fix VDAGentMonitorConfig size calculation
- Drop 0001-Switch-to-spice-vdagent.service-by-default.patch
-------------------------------------------------------------------
Fri Sep 19 13:57:50 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
- Add (xwayland and modalias(virtio:d00000003v*)) Supplements: we
can not expect xorg-x11-server to always present anymore.
-------------------------------------------------------------------
Thu Feb 9 08:31:17 UTC 2023 - Fabian Vogt <fvogt@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package spice-vdagent
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -21,7 +21,7 @@
%bcond_with session_info_test
Name: spice-vdagent
Version: 0.22.1
Version: 0.23.0
Release: 0
Summary: Agent for Spice guests
License: GPL-3.0-or-later
@@ -30,8 +30,6 @@ URL: http://spice-space.org/
Source: http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
Source2: %{name}.keyring
Patch0: harden_spice-vdagentd.service.patch
# https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/47
Patch1: 0001-Switch-to-spice-vdagent.service-by-default.patch
BuildRequires: alsa-devel >= 1.0.22
BuildRequires: desktop-file-utils
BuildRequires: libXfixes-devel
@@ -49,6 +47,7 @@ BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(spice-protocol) >= 0.14.3
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
Supplements: (xwayland and modalias(virtio:d00000003v*))
Supplements: modalias(xorg-x11-server:virtio:d00000003v*)
%{?systemd_requires}
@@ -86,7 +85,7 @@ ln -s service %{buildroot}%{_sbindir}/rcspice-vdagentd
mkdir -p %{buildroot}%{_datadir}/gdm/greeter/autostart
mv %{buildroot}%{_datadir}/gdm/autostart/LoginWindow/*.desktop %{buildroot}%{_datadir}/gdm/greeter/autostart
cp %{buildroot}/etc/xdg/autostart/spice-vdagent.desktop %{buildroot}%{_datadir}/gdm/greeter/autostart
rm -fr %{buildroot}%{_datadir}/gdm/autostart
%pre
@@ -115,6 +114,8 @@ rm -fr %{buildroot}%{_datadir}/gdm/autostart
%{_unitdir}/spice-vdagentd.service
%{_unitdir}/spice-vdagentd.socket
%{_prefix}/lib/systemd/user/spice-vdagent.service
%{_prefix}/lib/systemd/user/graphical-session.target.wants
%{_prefix}/lib/systemd/user/graphical-session.target.wants/spice-vdagent.service
%{_tmpfilesdir}/spice-vdagentd.conf
%{_bindir}/spice-vdagent
%{_sbindir}/spice-vdagentd