Bug 397517

Summary: When kauth is installed in a system prefix and <other kf5> in a user one, make install breaks
Product: [Frameworks and Libraries] frameworks-kauth Reporter: Emmanuel Lepage Vallée <emmanuel.lepage>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Emmanuel Lepage Vallée 2018-08-16 12:14:34 UTC
If kauth is installed in /usr and a framework is installed in a prefix, this happens:


-- Installing: /usr/share/polkit-1/actions/org.kde.ktexteditor.katetextbuffer.policy
CMake Error at src/cmake_install.cmake:121 (file):
  file INSTALL cannot copy file
  "/home/lepagee/archive/ktexteditor/build/src/org.kde.ktexteditor.katetextbuffer.policy"
  to "/usr/share/polkit-1/actions/org.kde.ktexteditor.katetextbuffer.policy".
Call Stack (most recent call first):
  cmake_install.cmake:72 (include)


If kauth is also in the prefix, then the policy is installed somewhere polkit can't find. So in both case, it's broken. `make install` should always allow root-less install when a prefix is used. Also installing polkit files where they wont be used is also pointless. So I guess the "solution" is to not install those files and print a warning when either kauth or any framework using it is in a prefix.
Comment 1 Christoph Feck 2018-09-04 23:18:09 UTC

*** This bug has been marked as a duplicate of bug 363678 ***