diff --git a/fix-build-error-of-clang.patch b/fix-build-error-of-clang.patch new file mode 100644 index 0000000..85a54cb --- /dev/null +++ b/fix-build-error-of-clang.patch @@ -0,0 +1,12 @@ +diff -u -r ukui-control-center-3.1.2/shell/mainwindow.cpp ukui-control-center-3.1.2/shell/mainwindow.cpp +--- ukui-control-center-3.1.2/shell/mainwindow.cpp 2023-04-03 13:52:30.000000000 +0800 ++++ ukui-control-center-3.1.2/shell/mainwindow.cpp 2023-06-17 23:00:33.000000000 +0800 +@@ -724,7 +724,7 @@ + "QPushButton:pressed{background-color:%2;border-radius: 6px;}").arg(hoverColor).arg(clickColor)); + } + +- connect(qtSettings, &QGSettings::changed, this, [=,&hoverColor](const QString &key) { ++ connect(qtSettings, &QGSettings::changed, this, [=](const QString &key) { + if (key == "styleName") { + iconBtn->reLoadIcon(); + hoverColor = this->pluginBtnHoverColor(qtSettings->get("style-name").toString(), true); diff --git a/ukui-control-center.spec b/ukui-control-center.spec index 633d92d..e8f8a97 100644 --- a/ukui-control-center.spec +++ b/ukui-control-center.spec @@ -1,6 +1,6 @@ Name: ukui-control-center Version: 3.1.2 -Release: 23 +Release: 24 Summary: utilities to configure the UKUI desktop License: GPL-2+ URL: http://www.ukui.org @@ -22,6 +22,7 @@ Patch17: ukui-control-center-3.1.2-fix-password-changes-for-this-user-and Patch18: fix-ukui-control-center-3.1.2-activation-button-display-error.patch Patch19: disable-Time-to-sleep-of-kylin.patch Patch20: fix-build-error-of-libkscreen-qt5-5.27.6.patch +Patch21: fix-build-error-of-clang.patch BuildRequires: qt5-qtsvg-devel BuildRequires: gsettings-qt-devel BuildRequires: glib2-devel @@ -140,6 +141,12 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Sep 08 2023 yoo - 3.1.2-24 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: fix clang build error + * Fri Aug 18 2023 douyan - 3.1.2-23 - Type:bugfix - ID:NA