From owner-freebsd-questions Tue Mar 12 1:28:46 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 420A137B41E for ; Tue, 12 Mar 2002 01:28:38 -0800 (PST) Received: (qmail 61136 invoked by uid 100); 12 Mar 2002 09:28:19 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15501.51763.23175.569530@guru.mired.org> Date: Tue, 12 Mar 2002 03:28:19 -0600 To: "Jay Krell" Cc: Subject: Re: ports -- recursive make vs. recursive make install vs. su In-Reply-To: <000701c1c9a5$224e7b00$0100a8c0@jayk1> References: <000701c1c9a5$224e7b00$0100a8c0@jayk1> 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 Jay Krell types: > Here's something that bugs me about the ports, but I hope it's just due to > some lack of understanding on my part: > > cd /usr/ports > su > chmod -R a+rw . > control-d back to non-root > cd net/foo > make > foo depends on bar, make automatically goes to ../net/bar, does make, tries > make install, it fails Which is the correct behavior, as you generally don't want non-root users installing software. > What I'd _like_..and I guess this might just be really hard, I'd like for > dependencies to be meetable via /usr/ports/net/bar/work/... instead of > requiring bar to be make installed..or at least that's one "solution" I can > imagine. What I know works is that I can go to /usr/ports/net/foo, su, make, > and so both make and make install run as root. Some ports already do that, but it's kind of kludgy. Possibly they've all stopped as well. First thing to understand is that there are two types of dependencies: RUN and BUILD. If foo has a runtime dependency on bar, then you've got to have bar installed for foo to run properly. If someone comes along and "cleans" the port. foo is going to quit working. If it's just a build dependency - well, those are the cases I've seen do that in the past. The problem here is that the port may not run properly without it's configuration files installed, etc. I.e. - even if you could run it out of the work area, there's no guarantee that it would behave properly. > Or am I missing something? Is there already an option to "run" ports out of > the built/work directory, instead of make installing them? Nope, there isn't such an option. In fact, there are ports that have no dependencies that won't work until you install them, because installing them installs data files or libraries that they need. 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