Heiko Becker (0a8679dc) at 22 Feb 10:11
Increase version to 0.200.0
Heiko Becker (aa1c6c41) at 21 Feb 12:48
Increase version to 0.200.0
Laurent Montel (8d20c8ca) at 02 Dec 09:05
GIT_SILENT: Port to new gitlab ci template
Heiko Becker (c2474a3f) at 07 Nov 23:47
Increase version to 0.175.0
Heiko Becker (9c24b61d) at 01 Nov 13:29
Remove unused variable
add BUILD_WITH_QT6 option in CMakeLists.txt to allow for manual selection of whether to use Qt6 or Qt5 instead of always using Qt5 when configuring the project.
Signed-off-by: Liu Jie liujie01@kylinos.cn
Consistent with when using ECM
What's the different between this and just doing
cmake -DQT_MAJOR_VERSION=6
?
add BUILD_WITH_QT6 option in CMakeLists.txt to allow for manual selection of whether to use Qt6 or Qt5 instead of always using Qt5 when configuring the project.
Signed-off-by: Liu Jie liujie01@kylinos.cn
And what are we supposed to do with this?
I created this scriptpolkit-qt-1-example.install.sh so that if one wants to use example without running 'make install' use it.
I hoped the fix would be as simple as this
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 32577af..03cac1a 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -27,8 +27,7 @@ macro(dbus_add_activation_system_service _sources)
string(REGEX REPLACE "\\.service.*$" ".service" _output_file ${_i})
set(_target ${CMAKE_CURRENT_BINARY_DIR}/${_output_file})
configure_file(${_service_file} ${_target})
- install(FILES ${_target} DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/dbus-1/system-services )
- #install(FILES ${_target} DESTINATION ${_install_dir})
+ install(FILES ${_target} DESTINATION ${KDE_INSTALL_DBUSSYSTEMSERVICEDIR} )
endforeach (_i ${ARGN})
endmacro(dbus_add_activation_system_service _sources)
@@ -58,6 +57,6 @@ install(TARGETS ${POLKITQT-1_EXAMPLE_HELPER} RUNTIME DESTINATION ${CMAKE_INSTALL
dbus_add_activation_system_service(org.qt.policykit.examples.service.in)
-install(FILES org.qt.policykit.examples.conf DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/system.d)
+install(FILES org.qt.policykit.examples.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d/)
add_subdirectory(agent)
But apparently polkit-qt-1 does not depend on extra-cmake-modules (ECM)?
I added the following options to global section in my ~/.config/kdesrc-buildrc:
cmake-options -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
and now my build fails on polkit-qt-1, because it attempts to install something in global protected directory, even though I have set up sessions (build/plasma-workspace/login-sessions/install-sessions.sh
) and install prefix is /usr/local/kde
.
Error text in install.log
:
-- Up-to-date: /usr/local/kde/share/polkit-1/actions/org.qt.policykit.examples.policy
-- Up-to-date: /usr/local/kde/bin/polkit-example-helper-qt5
-- Up-to-date: /usr/local/kde/share/dbus-1/system-services/org.qt.policykit.examples.service
CMake Error at examples/cmake_install.cmake:106 (file):
file cannot create directory: /dbus-1/system.d. Maybe need administrative
privileges.
Call Stack (most recent call first):
cmake_install.cmake:139 (include)
FAILED: CMakeFiles/install.util
cd /home/ratijas/kde/build/kdesupport/polkit-qt-1 && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
Xaver Hugl (6c62af60) at 18 Dec 22:05
Xaver Hugl (6c62af60) at 17 Dec 01:12
port all headers to pragma once
Dawid Wrobel (590e7108) at 18 Sep 14:12
For context, see https://phabricator.kde.org/T15835