From: @friendpalm 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
This commit is contained in:
openeuler-ci-bot 2023-03-10 09:09:39 +00:00 committed by Gitee
commit d520048be0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 46 additions and 1 deletions

View File

@ -0,0 +1,38 @@
From 39f7d59f412d01f21737a2a0c14306c4c5132a49 Mon Sep 17 00:00:00 2001
From: heyitao <heyitao@uniontech.com>
Date: Fri, 10 Mar 2023 03:21:55 -0500
Subject: [PATCH] fix:https://gitee.com/src-openeuler/dde-api/issues/I6HXVH
---
misc/systemd/system/deepin-login-sound.service | 2 +-
misc/systemd/system/deepin-shutdown-sound.service | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/misc/systemd/system/deepin-login-sound.service b/misc/systemd/system/deepin-login-sound.service
index 35c8671..4f1d533 100644
--- a/misc/systemd/system/deepin-login-sound.service
+++ b/misc/systemd/system/deepin-login-sound.service
@@ -1,6 +1,6 @@
[Unit]
Description=Deepin login sound
-Requires=sound.target
+Wants=sound.target
After=dbus.service lightdm.service
[Service]
diff --git a/misc/systemd/system/deepin-shutdown-sound.service b/misc/systemd/system/deepin-shutdown-sound.service
index bfb313c..4bc5665 100644
--- a/misc/systemd/system/deepin-shutdown-sound.service
+++ b/misc/systemd/system/deepin-shutdown-sound.service
@@ -1,6 +1,7 @@
[Unit]
Description=Deepin shutdown sound
-Requisite=sound.target local-fs.target
+Requisite=local-fs.target
+Wants=sound.target
After=sound.target local-fs.target
Before=systemd-logind.service
--
2.18.2

View File

@ -21,13 +21,17 @@
Name: dde-api
Version: 5.4.6
Release: 2
Release: 3
Summary: Go-lang bingding for dde-daemon
License: GPLv3+
URL: https://shuttle.corp.deepin.com/cache/tasks/19177/unstable-amd64/
Source0: %{name}-%{version}.orig.tar.xz
Source1: vendor.tar.gz
#fix sound service bug
Patch0001: 0001-fix-https-gitee.com-src-openeuler-dde-api-issues-I6H.patch
BuildRequires: libcanberra-devel
BuildRequires: deepin-gettext-tools
BuildRequires: librsvg2-devel
@ -128,6 +132,9 @@ exit 0
%files -n %{name}-devel -f devel.file-list
%changelog
* Fri Mar 10 2023 heyitao <heyitao@uniontech.com> - 5.4.6-3
- Fix sound service failed
* Wed Dec 21 2022 liweiganga <liweiganga@uniontech.com> - 5.4.6-2
- enable debuginfo for fix strip