From owner-freebsd-questions Tue Mar 12 11:14:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 043AD37B488 for ; Tue, 12 Mar 2002 11:13:24 -0800 (PST) Received: (qmail 68551 invoked by uid 100); 12 Mar 2002 19:13:21 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15502.21329.449926.531499@guru.mired.org> Date: Tue, 12 Mar 2002 13:13:21 -0600 To: "Jay Krell" Cc: Subject: Re: ports -- recursive make vs. recursive make install vs. su In-Reply-To: <002301c1c9f3$1e939970$4600a8c0@mshome.net> References: <000701c1c9a5$224e7b00$0100a8c0@jayk1> <15501.51763.23175.569530@guru.mired.org> <002301c1c9f3$1e939970$4600a8c0@mshome.net> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.48 (Python 2.2 on freebsd4) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Context lost to top posting.] > I didn't realize some of the dependencies were only build dependencies..I > guess stuff like autoconf/make/m4 are build only. Yup. They pretty much have to be installed to work. > > you generally don't want non-root users installing software. > Right..but I was hoping to minimize what root did..like not do the build, > takes a while, only do the quicker install..I was kind of thinking there's > this ideal -- "minimize time running as root" -- I should try to live by..I > guess that's at odds with *nix in a nonprofessional (home) environment and > its infinite configurability, maybe I should always be root.. (yes, yes, I > know that's considered a cardinal sin.) That's not a bad attitude, but ports is built to make installation quick and easy, not minimize the time as root. > So the generally accepted practise is to make and make install ports as > root? Yup. Unless you leave the work directories writable by someone else. > Or to manually follow the dependencies yourself? Make, su, make install each > one, so that when it comes time to make, all deps are already met? Actually, there are tools for doing all that for you. You could, for isntance, try doing "make depends" and "make" as non-root, then "make install" as root, which should install all that stuff. You may need to do soemthing magic with "make build-depends" as well, but I haven't chased it down. Anoher nice one is "make fetch-recursive", which will fetch *all* the tarballs needed to build a port, and anything it depends on. I use that fairly often. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message