From 9dbbae0576cd3bcf48c060bd54645911bfe5abf7 Mon Sep 17 00:00:00 2001 From: s Date: Tue, 20 Jun 2023 19:12:21 +0800 Subject: [PATCH] fix clang build error --- fix-clang.patch | 12 ++++++++++++ kylin-ipmsg.spec | 8 ++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 fix-clang.patch diff --git a/fix-clang.patch b/fix-clang.patch new file mode 100644 index 0000000..57153df --- /dev/null +++ b/fix-clang.patch @@ -0,0 +1,12 @@ +diff -u -r kylin-ipmsg-1.3.0/src/view/titlebar/menumodule.cpp kylin-ipmsg-1.3.0/src/view/titlebar/menumodule.cpp +--- kylin-ipmsg-1.3.0/src/view/titlebar/menumodule.cpp 2022-03-04 00:00:00.000000000 +0800 ++++ kylin-ipmsg-1.3.0/src/view/titlebar/menumodule.cpp 2023-06-15 23:47:45.000000000 +0800 +@@ -23,7 +23,7 @@ + #include "view/common/xatom-helper.h" + #include "controller/control.h" + +-menuModule::menuModule(QWidget *parent = nullptr) : QWidget(parent) ++menuModule::menuModule(QWidget *parent) : QWidget(parent) + { + init(); + } diff --git a/kylin-ipmsg.spec b/kylin-ipmsg.spec index 46e9654..10dfe02 100644 --- a/kylin-ipmsg.spec +++ b/kylin-ipmsg.spec @@ -1,10 +1,11 @@ Name: kylin-ipmsg Version: 1.3.0 -Release: 2 +Release: 3 Summary: kylin-ipmsg License: GPL-3 URL: https://github.com/UbuntuKylin/kylin-ipmsg Source0: %{name}-%{version}.tar.gz +Patch0: fix-clang.patch BuildRequires: qt5-qtbase-devel BuildRequires: qtchooser @@ -23,7 +24,7 @@ BuildRequires: ukui-interface Messages is a LAN chat tool with beautiful Gui. %prep -%setup -q +%autosetup -p1 %build export PATH=%{_qt5_bindir}:$PATH @@ -49,6 +50,9 @@ popd %changelog +* Thu Aug 31 2023 yoo - 1.3.0-3 +- fix clang build error + * Tue Jan 31 2023 peijiankang - 1.3.0-2 - add build debuginfo and debugsource -- Gitee