Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 13:13:21 -0600
From:      "Mike Meyer" <mwm-dated-1016392401.84cfc0@mired.org>
To:        "Jay Krell" <jay.krell@cornell.edu>
Cc:        <questions@freebsd.org>
Subject:   Re: ports -- recursive make vs. recursive make install vs. su
Message-ID:  <15502.21329.449926.531499@guru.mired.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
[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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15502.21329.449926.531499>