PolKit and KDE4_AUTH_POLICY_FILES_INSTALL_DIR
Yury G. Kudryashov
urkud at ya.ru
Fri Feb 18 22:29:57 CET 2011
John Layt wrote:
> On Friday 18 February 2011 06:48:54 Yury G. Kudryashov wrote:
>> >> 2) If path different from polkit-qt AUTH_POLICY_FILES_INSTALL_DIR then
>> >> display an appropriate warning
>> >> 3) Install to the requested location, it's then up to the dev to fix
>> >> if needed by either moving the files or by building polkit-qt
>> >> themselves.
>>
>> All this can be achieved by setting KDE4_AUTH_POLICY_FILES_INSTALL_DIR to
>> *relative* path, not absolute one.
>
> Sorry, could you explain that a bit more? Do you mean the build system
> should, or that the dev should?
It is sufficient to replace the line
set(POLKITQT-1_POLICY_FILES_INSTALL_DIR
"${POLKITQT-1_INSTALL_DIR}/share/polkit-1/actions")
by the line
set(POLKITQT-1_POLICY_FILES_INSTALL_DIR "share/polkit-1/actions")
in polkit-qt-1/PolkitQt-1Config.cmake.in. And, of course, adjust the
warning.
More information about the Kde-buildsystem
mailing list