Bug 397517 - When kauth is installed in a system prefix and <other kf5> in a user one, make install breaks
Summary: When kauth is installed in a system prefix and <other kf5> in a user one, mak...
Status: RESOLVED DUPLICATE of bug 363678
Alias: None
Product: frameworks-kauth
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 12:14 UTC by Emmanuel Lepage Vallée
Modified: 2018-09-04 23:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***