Bug 175208

Summary: prompt kdesu when installing in system paths
Product: [Developer tools] kdesrc-build Reporter: Pino Toscano <pino>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED FIXED    
Severity: wishlist CC: ashark, toma
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Pino Toscano 2008-11-15 12:48:33 UTC
+++ This bug was initially created as a clone of Bug #174806 +++

because of:

CMake Error at workspace/plasma/scriptengines/python/cmake_install.cmake:68 (FILE):
  file INSTALL cannot copy file
  &quot;/mnt/data/kde/source/kdebase/workspace/plasma/scriptengines/python/plasmascript.py&quot;
  to &quot;/usr/lib64/python2.5/site-packages/PyKDE4/plasmascript.py&quot;.
Call Stack (most recent call first):
  workspace/plasma/scriptengines/cmake_install.cmake:40 (INCLUDE)
  workspace/plasma/cmake_install.cmake:43 (INCLUDE)
  workspace/cmake_install.cmake:62 (INCLUDE)
  cmake_install.cmake:39 (INCLUDE)

it is not possible to install kdebase, a similar error appears in kdeedu. 

Would it be possible to detect that and ask for the sudo password in these cases?

It seems to be a limitation in Python &lt; 2.6.

+++

Reopening (well, cloning) this bug (wish) for kdesvn-build, asking for kdesu prompt for such cases.
Comment 1 Michael Pyne 2009-02-28 20:46:32 UTC
The current mechanism for handling this is make-install-prefix.  If merely prepending the make install command with "kdesu" will do the right thing then it shouldn't be too hard, and I wouldn't be opposed in theory.

But it's not very high on my priority list either.
Comment 2 Andrew Shark 2024-08-31 20:13:39 UTC
Yes, there is make-install-prefix, which can be set.