From ca1914fa1a0751024a7a52f4344849e2e7f5d821 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Thu, 12 Aug 2010 13:01:06 +0000 Subject: [PATCH] Remove old patch, add new one Let other KDE modules install polkit policy files to $out, not $kdelibs svn path=/nixpkgs/trunk/; revision=23147 --- pkgs/desktops/kde-4.5/libs/default.nix | 2 ++ pkgs/desktops/kde-4.5/libs/polkit-install.patch | 11 +++++++++++ .../libs/python-site-packages-install-dir.diff | 13 ------------- 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 pkgs/desktops/kde-4.5/libs/polkit-install.patch delete mode 100644 pkgs/desktops/kde-4.5/libs/python-site-packages-install-dir.diff diff --git a/pkgs/desktops/kde-4.5/libs/default.nix b/pkgs/desktops/kde-4.5/libs/default.nix index c749223535bf..b7bb4573a944 100644 --- a/pkgs/desktops/kde-4.5/libs/default.nix +++ b/pkgs/desktops/kde-4.5/libs/default.nix @@ -18,6 +18,8 @@ kdePackage { propagatedBuildInputs = [ shared_desktop_ontologies gcc.libc ]; + patches = [ ./polkit-install.patch ]; + # cmake fails to find acl.h because of C++-style comment cmakeFlags = [ "-DHAVE_ACL_LIBACL_H=ON" "-DHAVE_SYS_ACL_H=ON" diff --git a/pkgs/desktops/kde-4.5/libs/polkit-install.patch b/pkgs/desktops/kde-4.5/libs/polkit-install.patch new file mode 100644 index 000000000000..68bf55487963 --- /dev/null +++ b/pkgs/desktops/kde-4.5/libs/polkit-install.patch @@ -0,0 +1,11 @@ +Author: Yury Kudryashov +Reason: other KDE modules try to install polkit action files into +$kdelibs/share/polkit-1/actions +--- a/cmake/modules/FindPolkitQt-1.cmake.old 2010-08-12 16:13:45.000000000 +0400 ++++ b/cmake/modules/FindPolkitQt-1.cmake 2010-08-12 16:13:56.000000000 +0400 +@@ -101,4 +101,4 @@ + endif (NOT PC_POLKITQT-1_PREFIX STREQUAL CMAKE_INSTALL_PREFIX) + endif (POLKITQT-1_FOUND) + +-set(POLKITQT-1_POLICY_FILES_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/polkit-1/actions) ++set(POLKITQT-1_POLICY_FILES_INSTALL_DIR share/polkit-1/actions) diff --git a/pkgs/desktops/kde-4.5/libs/python-site-packages-install-dir.diff b/pkgs/desktops/kde-4.5/libs/python-site-packages-install-dir.diff deleted file mode 100644 index 05b280838c4d..000000000000 --- a/pkgs/desktops/kde-4.5/libs/python-site-packages-install-dir.diff +++ /dev/null @@ -1,13 +0,0 @@ -Source: upstream r1153602 -Index: a/cmake/modules/SIPMacros.cmake -=================================================================== ---- a/cmake/modules/SIPMacros.cmake (revision 1153601) -+++ b/cmake/modules/SIPMacros.cmake (revision 1153602) -@@ -119,6 +119,6 @@ - TARGET_LINK_LIBRARIES(${_logical_name} ${EXTRA_LINK_LIBRARIES}) - SET_TARGET_PROPERTIES(${_logical_name} PROPERTIES PREFIX "" OUTPUT_NAME ${_child_module_name}) - -- INSTALL(TARGETS ${_logical_name} DESTINATION "${PYTHON_SITE_PACKAGES_DIR}/${_parent_module_path}") -+ INSTALL(TARGETS ${_logical_name} DESTINATION "${PYTHON_SITE_PACKAGES_INSTALL_DIR}/${_parent_module_path}") - - ENDMACRO(ADD_SIP_PYTHON_MODULE)