On 3/6/07, Simon Geard <[EMAIL PROTECTED]> wrote: > On Thu, 2007-03-01 at 17:45 -0700, Shawn wrote: > > Sorry Brian, I did not read your post closely enough. I think you have > > no choice but to run such a script as root. However, maybe you could > > build all the packages (as user) then, when they are all built, stop > > and do a sudo/su and install everything at once. I think everybody has > > sudo/su. > > I think that'd just introduce problems in making packages find each > other. E.g, Gnome consists of dozens of packages with complex > dependencies - by installing after building everything, you've got to > work out how to build each program against the compiled source tree of > it's dependencies rather than against installed packages.
That would certainly be a problem for packages that tend to be integrated. The same thing definitely happens with Xorg-7. One thing to really take advantage of is DESTDIR. I do at least one fake install before I ever start trying to install a package to root. $ make DESTDIR=`pwd`/dest install $ ls -R dest | less see if everything looks ok, not going to blow away my system libraries, etc. That's usually part of my procedure to writing scripts that run as root and hopefully don't destroy my system. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
