Bug 65721 - when running make install as root, run make as user before.
Summary: when running make install as root, run make as user before.
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: Automake (show other bugs)
Version: 3.0.0a5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-08 23:52 UTC by Pupeno
Modified: 2003-10-28 19:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

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