Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
3b324e866c
!32 fix build error
From: @peijiankang 
Reviewed-by: @hua_yadong 
Signed-off-by: @hua_yadong
2024-11-20 06:26:00 +00:00
peijiankang
809cc4b456 fix patch error 2024-11-20 11:25:48 +08:00
openeuler-ci-bot
4236d81706
!31 [sync] PR-30: fix wrong assignment operator implementation
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2024-11-20 03:01:30 +00:00
侯红勋
3b47808b41 fix wrong assignment operator implementation
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
(cherry picked from commit d4955f572e7d3dcb5fbb98734be67e5e27542347)
2024-11-12 20:00:23 +08:00
openeuler-ci-bot
2fdbfa520c
!27 [sync] PR-25: fix ukui-notification-daemon SIGSEGV
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-07-27 05:45:40 +00:00
peijiankang
40673559c9 fix ukui-notification-daemon SIGSEGV
(cherry picked from commit a9cb344872bd6428f3a6ff5120fc002aec0f9ecd)
2023-07-27 11:15:46 +08:00
openeuler-ci-bot
15939fff2a
!21 [sync] PR-20: spec文件修改
From: @openeuler-sync-bot 
Reviewed-by: @dou33 
Signed-off-by: @dou33
2023-03-14 08:58:41 +00:00
dou33
c961cf7fc2 add Provides:desktop-notification-daemon
(cherry picked from commit 0d4cc0a624af2c477473828197647ab5f4b9d275)
2023-03-14 16:49:53 +08:00
openeuler-ci-bot
64a9c8ebee
!19 Enable debuginfo for fix strip
From: @tanyulong2021 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-02-08 08:51:57 +00:00
tanyulong2021
d0168f4c36 Enable debuginfo for fix strip 2023-02-07 14:28:47 +08:00
3 changed files with 100 additions and 4 deletions

View File

@ -0,0 +1,43 @@
From ed4f2fb961c274d99c8ca66c232ca13b6e855f61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= <houhongxun@kylinos.cn>
Date: Thu, 25 Apr 2024 09:41:37 +0800
Subject: [PATCH] fix wrong assignment operator implementation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
---
src/notifyreceiveinfo.cpp | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/notifyreceiveinfo.cpp b/src/notifyreceiveinfo.cpp
index 0c28cd1..8c1e04e 100644
--- a/src/notifyreceiveinfo.cpp
+++ b/src/notifyreceiveinfo.cpp
@@ -49,8 +49,20 @@ notifyReceiveInfo::notifyReceiveInfo(const notifyReceiveInfo &notify) :
notifyReceiveInfo &notifyReceiveInfo::operator=(const notifyReceiveInfo &notify)
{
- notifyReceiveInfo ent(notify);
- return ent;
+ m_appName = notify.m_appName;
+ m_id = notify.m_id;
+ m_appIcon = notify.m_appIcon;
+ m_summary = notify.m_summary;
+ m_body = notify.m_body;
+ m_actions = notify.m_actions;
+ m_hints = notify.m_hints;
+ m_ctime = notify.m_ctime;
+ m_replacesId = notify.m_replacesId;
+ m_timeout = notify.m_timeout;
+ m_urlStr = notify.m_urlStr;
+ m_actionStr = notify.m_actionStr;
+
+ return *this;
}
QString notifyReceiveInfo::appName() const
--
2.43.0

View File

@ -0,0 +1,28 @@
From 0e06e1110a0ea4fcff9ff3380ad657d80db95305 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Fri, 21 Jul 2023 17:19:50 +0800
Subject: [PATCH] fix ukui-notification-daemon SIGSEGV
---
src/main.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/main.cpp b/src/main.cpp
index 0309f7b..0bc1028 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -36,6 +36,11 @@
int getScreenWidth() {
Display *disp = XOpenDisplay(NULL);
+ if (disp == NULL) {
+ fprintf(stderr, "Cannot connect to X server\n");
+ return 0;
+ }
+
Screen *scrn = DefaultScreenOfDisplay(disp);
if (NULL == scrn) {
return 0;
--
2.33.0

View File

@ -1,13 +1,13 @@
%define debug_package %{nil}
Name: ukui-notification-daemon
Version: 3.3.1
Release: 2
Release: 7
Summary: daemon to display passive popup notifications
License: GPL-3+
URL: https://github.com/ukui/ukui-notification-daemon
Source0: %{name}-%{version}.tar.gz
Patch01: 0001-add-translations-file.patch
Patch02: 0002-fix-ukui-notification-daemon-SIGSEGV.patch
Patch03: 0001-fix-wrong-assignment-operator-implementation.patch
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtsvg-devel
@ -23,6 +23,8 @@ Requires: gsettings-qt
Requires: libX11
Requires: dconf
Provides: desktop-notification-daemon
%description
daemon to display passive popup notifications
ukui-notification-daemon displays passive popup notifications, as per
@ -37,7 +39,9 @@ Desktop Notifications spec.
%prep
%setup -q
%patch01 -p1
%patch 1 -p1
%patch 2 -p1
%patch 3 -p1
%build
export PATH=%{_qt5_bindir}:$PATH
@ -63,6 +67,27 @@ popd
%{_datadir}/ukui-notification-daemon/ukui-notification-daemon_zh_CN.qm
%changelog
* Wed Nov 20 2024 peijiankang <peijiankang@kylinos.cn> - 3.3.1-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix patch error
* Thu Apr 25 2024 houhongxun <houhongxun@kylinos.cn> - 3.3.1-6
- fix wrong assignment operator implementaion
* Fri Jul 21 2023 peijiankang <peijiankang@kylinos.cn> - 3.3.1-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add Patch2: 0002-fix-ukui-notification-daemon-SIGSEGV.patch
* Tue Mar 14 2023 douyan <douyan@kylinos.cn> - 3.3.1-4
- add Provides: desktop-notification-daemon
* Tue Feb 07 2023 tanyulong <tanyulong@kylinos.cn> - 3.3.1-3
- Enable debuginfo for fix strip
* Fri Dec 30 2022 lvfei <lvfei@kylinos.cn> - 3.3.1-2
- add patch :0001-add-translations-file.patch