Install org.kde.polkitkde1.policy in the correct prefix

Review Request #106488 - Created Sept. 18, 2012 and submitted

Information
Alberto Villa
polkit-kde-kcmodules-1
Reviewers
polkit-kde-kcmodules-1
org.kde.polkitkde1.policy is being installed in POLKITQT-1_POLICY_FILES_INSTALL_DIR, but KDE defines KDE4_AUTH_POLICY_FILES_INSTALL_DIR, which respects the prefix used to install KDE packages. This is an issue for people installing KDE and Polkit-Qt-1 in different prefixes, like we do on FreeBSD. Of course, policy files are not going to work if not installed in Polkit-Qt-1 canonical directory, but that's an issue for packagers (we have a symlink), and CMake also warns about it. Since KDE4_AUTH_POLICY_FILES_INSTALL_DIR is used thoughout KDE modules, it should be preferred here too.
It works fine on FreeBSD where Polkit-Qt-1 has prefix == /usr/local, polkit-kde-kcmodules-1 is in /usr/local/kde4, and /usr/local/kde4/share/polkit-1/actions -> /usr/local/share/polkit-1/actions.
Dario Freddi
Alberto Villa
Review request changed

Status: Closed (submitted)

Loading...