From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: Why must the "make.sh" be run as root ? Date: Mon, 03 Mar 2014 09:24:26 +0100 Message-ID: <1393835066.2503.61.camel@rice-oxley.tremer.info> In-Reply-To: <5313006A.3050908@i100.no> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8195055809120648970==" List-Id: --===============8195055809120648970== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Morning, On Sun, 2014-03-02 at 10:56 +0100, Alf Høgemark wrote: > Hi > > I'm trying to do a full build of ipfire, following instructions on : > http://wiki.ipfire.org/en/development/build > > I have been able to do a full build (except for build of cdrom failing, > it seems to be tar complaining that usb/bin/ntpd and other ntp files are > missing), > but I am wondering why I need to run the make.sh as root. To fix the ntp issue, just pull again and rebuild. make.sh must be run as root. > I can see in the make.sh that a symlink is made for "/tools", so I guess > one needs root for that. > Is that the only reason ? > Or is the build process putting files on my computer outside the folder > where I have the source code repo from git ? The /tools symlink is the only thing that is created outside the build/ directory. The other reason why we need root permissions is to create files inside the build chroot tree as root. > Could one use the "fakeroot" command instead, if needed ? Yes, fakeroot could be used instead of actual root permissions, but we don't use it. > I do not like runing build commands as root, being afraid that something > is installed / changed somewhere on my development machine. > So it would mean that I need a separate virtual build machine for > building ipfire. Indeed, having an extra machine for this purpose does not hurt because virtualization provides a good container that isolates the build system from the host system. -Michael > > > Regards > Alf > > _______________________________________________ > Development mailing list > Development(a)lists.ipfire.org > http://lists.ipfire.org/mailman/listinfo/development --===============8195055809120648970==--