!13 [sync] PR-12: Fix the com.kylinsec.Kiran.SessionDaemon.Power.policy file generation error caused by the logic error of CMakeLists and Do not output the alarm information to the screen
From: @openeuler-sync-bot Reviewed-by: @doudou19 Signed-off-by: @doudou19
This commit is contained in:
commit
fea8dcaf76
@ -0,0 +1,89 @@
|
|||||||
|
From c0965636333fde1ca7f2466ae810cb56669503af Mon Sep 17 00:00:00 2001
|
||||||
|
From: tangjie02 <tangjie02@kylinsec.com.cn>
|
||||||
|
Date: Tue, 22 Feb 2022 20:05:42 +0800
|
||||||
|
Subject: [PATCH] feature(cmake): Fix the
|
||||||
|
com.kylinsec.Kiran.SessionDaemon.Power.policy file generation error caused by
|
||||||
|
the logic error of CMakeLists
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
- 修复由于CMakeLists.txt的逻辑错误导致com.kylinsec.Kiran.SessionDaemon.Power.policy文件生成错误
|
||||||
|
|
||||||
|
Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn>
|
||||||
|
---
|
||||||
|
data/CMakeLists.txt | 22 ++++++----------------
|
||||||
|
1 file changed, 6 insertions(+), 16 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
|
||||||
|
index 818b04e..16a04a9 100644
|
||||||
|
--- a/data/CMakeLists.txt
|
||||||
|
+++ b/data/CMakeLists.txt
|
||||||
|
@@ -6,7 +6,7 @@ find_program(INTLTOOL-MERGE NAMES "intltool-merge" REQUIRED)
|
||||||
|
if(build-system-daemon)
|
||||||
|
|
||||||
|
# policy files
|
||||||
|
- file(GLOB POLICY_IN_FILES ./*SystemDaemon*.policy.in)
|
||||||
|
+ file(GLOB POLICY_IN_FILES ${PROJECT_SOURCE_DIR}/data/*SystemDaemon*.policy.in)
|
||||||
|
|
||||||
|
foreach(POLICY_IN_FILE IN LISTS POLICY_IN_FILES)
|
||||||
|
string(REGEX REPLACE ".+/(.+)\\..*" "\\1" POLICY_FILE ${POLICY_IN_FILE})
|
||||||
|
@@ -18,7 +18,7 @@ if(build-system-daemon)
|
||||||
|
|
||||||
|
|
||||||
|
# service files
|
||||||
|
- file(GLOB SERVICE_IN_FILES ./*SystemDaemon*service.in ./kiran-system-daemon.service.in)
|
||||||
|
+ file(GLOB SERVICE_IN_FILES ${PROJECT_SOURCE_DIR}/data/*SystemDaemon*service.in ${PROJECT_SOURCE_DIR}/data/kiran-system-daemon.service.in)
|
||||||
|
|
||||||
|
foreach(SERVICE_IN_FILE IN LISTS SERVICE_IN_FILES)
|
||||||
|
string(REGEX REPLACE ".+/(.+)\\..*" "\\1" SERVICE_FILE ${SERVICE_IN_FILE})
|
||||||
|
@@ -41,7 +41,7 @@ if(build-system-daemon)
|
||||||
|
DESTINATION ${KCC_INSTALL_DATADIR}/dbus-1/system-services)
|
||||||
|
|
||||||
|
# conf files
|
||||||
|
- file(GLOB CONF_FILES ./*.conf)
|
||||||
|
+ file(GLOB CONF_FILES ${PROJECT_SOURCE_DIR}/data/*.conf)
|
||||||
|
|
||||||
|
foreach(CONF_FILE IN LISTS CONF_FILES)
|
||||||
|
install(FILES ${CONF_FILE}
|
||||||
|
@@ -71,18 +71,8 @@ if(build-session-daemon)
|
||||||
|
install(FILES ${PROJECT_BINARY_DIR}/data/com.kylinsec.Kiran.SessionDaemon.Power.policy
|
||||||
|
DESTINATION ${KCC_INSTALL_DATADIR}/polkit-1/actions/)
|
||||||
|
|
||||||
|
- # policy.in files
|
||||||
|
- file(GLOB POLICY_IN_FILES ./*SessionDaemon*.policy.in)
|
||||||
|
- foreach(POLICY_IN_FILE IN LISTS POLICY_IN_FILES)
|
||||||
|
- string(REGEX REPLACE ".+/(.+)\\..*" "\\1" POLICY_FILE ${POLICY_IN_FILE})
|
||||||
|
- execute_process(COMMAND ${INTLTOOL-MERGE} -x ${PROJECT_SOURCE_DIR}/po/ ${POLICY_IN_FILE} ${PROJECT_BINARY_DIR}/data/${POLICY_FILE})
|
||||||
|
-
|
||||||
|
- install(FILES ${PROJECT_BINARY_DIR}/data/${POLICY_FILE}
|
||||||
|
- DESTINATION ${KCC_INSTALL_DATADIR}/polkit-1/actions/)
|
||||||
|
- endforeach()
|
||||||
|
-
|
||||||
|
# gschema.xml
|
||||||
|
- file(GLOB SCHEMA_IN_FILES ./*.gschema.xml.in)
|
||||||
|
+ file(GLOB SCHEMA_IN_FILES ${PROJECT_SOURCE_DIR}/data/*.gschema.xml.in)
|
||||||
|
|
||||||
|
foreach(SCHEMA_IN_FILE IN LISTS SCHEMA_IN_FILES)
|
||||||
|
string(REGEX REPLACE ".+/(.+)\\..*" "\\1" SCHEMA_FILE ${SCHEMA_IN_FILE})
|
||||||
|
@@ -101,7 +91,7 @@ if(build-session-daemon)
|
||||||
|
RENAME plugin_options)
|
||||||
|
|
||||||
|
# service files
|
||||||
|
- file(GLOB SERVICE_IN_FILES ./*SessionDaemon*service.in)
|
||||||
|
+ file(GLOB SERVICE_IN_FILES ${PROJECT_SOURCE_DIR}/data/*SessionDaemon*service.in)
|
||||||
|
|
||||||
|
foreach(SERVICE_IN_FILE IN LISTS SERVICE_IN_FILES)
|
||||||
|
string(REGEX REPLACE ".+/(.+)\\..*" "\\1" SERVICE_FILE ${SERVICE_IN_FILE})
|
||||||
|
@@ -147,7 +137,7 @@ install(FILES ${PROJECT_SOURCE_DIR}/include/error-i.h
|
||||||
|
DESTINATION ${KCC_INSTALL_INCLUDE})
|
||||||
|
|
||||||
|
# pc file
|
||||||
|
-file(GLOB PC_IN_FILES ./*.pc.in)
|
||||||
|
+file(GLOB PC_IN_FILES ${PROJECT_SOURCE_DIR}/data/*.pc.in)
|
||||||
|
|
||||||
|
foreach(PC_IN_FILE IN LISTS PC_IN_FILES)
|
||||||
|
string(REGEX REPLACE ".+/(.+)\\..*" "\\1" PC_FILE ${PC_IN_FILE})
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,11 +1,13 @@
|
|||||||
Name: kiran-cc-daemon
|
Name: kiran-cc-daemon
|
||||||
Version: 2.2.4
|
Version: 2.2.4
|
||||||
Release: 1.kb1
|
Release: 3
|
||||||
Summary: DBus daemon for Kiran Desktop
|
Summary: DBus daemon for Kiran Desktop
|
||||||
|
|
||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch1000: 0000-feature-cmake-Fix-the-com.kylinsec.Kiran.SessionDaem-c0965636.patch
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: cmake >= 3.2
|
BuildRequires: cmake >= 3.2
|
||||||
BuildRequires: pkgconfig(glibmm-2.4)
|
BuildRequires: pkgconfig(glibmm-2.4)
|
||||||
@ -92,7 +94,7 @@ systemctl enable kiran-system-daemon.service
|
|||||||
%systemd_preun kiran-system-daemon.service
|
%systemd_preun kiran-system-daemon.service
|
||||||
|
|
||||||
%post -n kiran-session-daemon
|
%post -n kiran-session-daemon
|
||||||
glib-compile-schemas /usr/share/glib-2.0/schemas
|
glib-compile-schemas /usr/share/glib-2.0/schemas &> /dev/nulls || :
|
||||||
|
|
||||||
%files -n kiran-system-daemon
|
%files -n kiran-system-daemon
|
||||||
%{_sysconfdir}/dbus-1/system.d/*.conf
|
%{_sysconfdir}/dbus-1/system.d/*.conf
|
||||||
@ -103,7 +105,7 @@ glib-compile-schemas /usr/share/glib-2.0/schemas
|
|||||||
%{_libdir}/kiran-cc-daemon/system/plugin_options
|
%{_libdir}/kiran-cc-daemon/system/plugin_options
|
||||||
%{_datadir}/dbus-1/system-services/*.service
|
%{_datadir}/dbus-1/system-services/*.service
|
||||||
%{_datadir}/locale/zh_CN/LC_MESSAGES/kiran-cc-daemon-timezones.mo
|
%{_datadir}/locale/zh_CN/LC_MESSAGES/kiran-cc-daemon-timezones.mo
|
||||||
%{_datadir}/polkit-1/actions/*.policy
|
%{_datadir}/polkit-1/actions/com.kylinsec.Kiran.SystemDaemon*.policy
|
||||||
|
|
||||||
%files -n kiran-session-daemon
|
%files -n kiran-session-daemon
|
||||||
%{_sysconfdir}/xdg/autostart/kiran-session-daemon.desktop
|
%{_sysconfdir}/xdg/autostart/kiran-session-daemon.desktop
|
||||||
@ -118,6 +120,7 @@ glib-compile-schemas /usr/share/glib-2.0/schemas
|
|||||||
%{_datadir}/dbus-1/services/*.service
|
%{_datadir}/dbus-1/services/*.service
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/*.svg
|
%{_datadir}/icons/hicolor/scalable/apps/*.svg
|
||||||
%{_datadir}/locale/zh_CN/LC_MESSAGES/kiran-power-status-icon.mo
|
%{_datadir}/locale/zh_CN/LC_MESSAGES/kiran-power-status-icon.mo
|
||||||
|
%{_datadir}/polkit-1/actions/com.kylinsec.Kiran.SessionDaemon*.policy
|
||||||
|
|
||||||
%files common
|
%files common
|
||||||
%{_includedir}/kiran-cc-daemon/error-i.h
|
%{_includedir}/kiran-cc-daemon/error-i.h
|
||||||
@ -134,6 +137,15 @@ glib-compile-schemas /usr/share/glib-2.0/schemas
|
|||||||
%{_libdir}/pkgconfig/kiran-cc-daemon.pc
|
%{_libdir}/pkgconfig/kiran-cc-daemon.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 02 2022 longcheng <longcheng@kylinos.com.cn> - 2.2.4-3
|
||||||
|
- KYOS-F: Do not output the alarm information to the screen
|
||||||
|
|
||||||
|
* Thu Feb 24 2022 chendingjian <chendingjian@kylinos.com.cn> - 2.2.4-2
|
||||||
|
- rebuild for KY3.4-MATE-modules-dev
|
||||||
|
|
||||||
|
* Tue Feb 22 2022 tangjie02 <tangjie02@kylinsec.com.cn> - 2.2.4-1.kb2
|
||||||
|
- KYOS-F: Fix the com.kylinsec.Kiran.SessionDaemon.Power.policy file generation error caused by the logic error of CMakeLists.
|
||||||
|
|
||||||
* Sat Feb 19 2022 tangjie02 <tangjie02@kylinsec.com.cn> - 2.2.4-1.kb1
|
* Sat Feb 19 2022 tangjie02 <tangjie02@kylinsec.com.cn> - 2.2.4-1.kb1
|
||||||
- KYOS-F: Fix compile error on KLOG_PROFILE.
|
- KYOS-F: Fix compile error on KLOG_PROFILE.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user