Bug 65721

Summary: when running make install as root, run make as user before.
Product: [Applications] kdevelop Reporter: Pupeno <pupeno>
Component: Build tools: AutomakeAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.0.0a5   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pupeno 2003-10-08 23:52:50 UTC
Version:           3.0.0a5 (using KDE 3.1.4)
Installed from:    Gentoo
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
OS:          Linux (i686) release 2.4.22-openmosix

When you "Install as root" it just goes root and run makes install, if a file had been change it, that will make the compilation of the project, but as root, that would make the objects file created with root as their owners which means, the user won't be able to just run make, he has to delete by hand those object files (as root user) to be able to just make, or run install as root always.
A simple solution to this would be to run make, then go root and then make install.
Thank you.
Comment 1 Jens Dagerbo 2003-10-27 19:41:23 UTC
IMHO, "make install" should be removed. It opens up hard to solve issues like this one for very little benefit.
Comment 2 Hendrik Kueck 2003-10-27 20:23:14 UTC
No. Please dont remove "make install"! It is extremely useful in my opinion. 
And the suggested solution does not sound too tricky to implement.
If it really is however, then the 'install as root' option could possibly be removed, but not the general "make install". 
Comment 3 Alexander Dymo 2003-10-27 22:44:27 UTC
I'd like to keep both options. Both are quite usefull.
BTW, "Install as root" does exactly what it says. I see no problem with that.
Comment 4 Amilcar do Carmo Lucas 2003-10-28 10:19:26 UTC
I'll fix this one within next week.
Comment 5 Amilcar do Carmo Lucas 2003-10-28 19:00:36 UTC
Subject: kdevelop/buildtools/autotools

CVS commit by aclu: 

Fix Bug 65721: when running make install as root, run make as user before 
 
CCMAIL: 65721-done@bugs.kde.org 


  M +5 -0      autoprojectpart.cpp   1.121


--- kdevelop/buildtools/autotools/autoprojectpart.cpp  #1.120:1.121
@@ -928,4 +928,9 @@ void AutoProjectPart::slotInstall()
 void AutoProjectPart::slotInstallWithKdesu()
 {
+    // First issue "make" to build the entire project with the current user
+    // This way we make sure all files are up to date before we do the "make install"
+    slotBuild();
+
+    // After that issue "make install" with the root user
     startMakeCommand(buildDirectory(), QString::fromLatin1("install"), true);
 }