Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2005 16:29:26 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        "Sr. D" <rsdia@yahoo.com>
Cc:        ports@freebsd.org
Subject:   Re: [kde-freebsd] make install (with no prompts overnight)
Message-ID:  <20050715142926.GA96304@falcon.midgard.homeip.net>
In-Reply-To: <20050715141823.76930.qmail@web51108.mail.yahoo.com>
References:  <200507150056.12973.lofi@freebsd.org> <20050715141823.76930.qmail@web51108.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 15, 2005 at 07:18:23AM -0700, Sr. D wrote:
> --- Michael Nottebrock <lofi@freebsd.org> wrote:
> 
> > On Friday, 15. July 2005 00:16, Sr. D wrote:
> > 
> > > I am trying to install kde3 from ports by simply
> > > typing "make install" from /usr/ports/x11/kde3.
> > > However, I left it compiling overnight and was
> > greeted
> > > with a prompt the next morning (to choose some
> > detail
> > > for the compile/installation).
> > 
> > First off, don't do that. First do 'make', then do
> > 'make install' (yes, the 
> > handbook says you just do 'make install' - it's
> > wrong). You can also do both 
> > in sequence: 'make && make install'.
> 
> Thanks.  I was wondering what the difference is.  I
> just assumed 'make install' has a dependency target
> 'make'.

'make install' DOES imply 'make'.
There is no need to do a plain 'make' before 'make install'

> 
> > To avoid the option popups, you can do 'make
> > -DBATCH' instead of 'make' - this 
> > will give you the preset defaults for each port with
> > options.
> 
> Will I get a successful build if I interrupt my 'make
> install' now and do 'make -DBATCH && make install'? 

Probably, but it is not guaranteed.

> Or do I need to start over (make clean or somesuch)?

That is the safest way.

> 
> I was greeted this morning with a prompt to install
> GNOKII Kaddressbook import/export for Nokia phones (so
> you know where I am at in the build process).
> 
> Do some people really prefer to watch a slow build
> flash across their screen and then be prompted to
> install Nokia phone support?
> 
> > Or you can do 
> > 'make config-recursive' - this will present you with
> > all option screens for 
> > the port in whose directory you're currently in and
> > all its dependencies, too 
> > - make your choices there, then just go on with
> > 'make'.
> 
> Perhaps you just answered my Nokia question.  This may
> be what I'm looking for.

Probably.  'make config-recursive' and 'make -DBATCH install' were invented
to make sure people could leave the build overnight, without coming back to
find out the build halted 

For the future the following sequence is recommended if you don't want the
build to pause halfway through to ask a question:

First do a 'make config-recursive' to set various options via the
option-system (if you are not satisfied with the defaults)
The do a 'make -DBATCH install' to build and install the port (and
dependencies) without asking any questions.


> 
> 
> > See 'man ports' for more information.
> 
> I definitely learned some new things here thanks.  I
> thought "man" was only for commands and 'man ports'
> never crossed my mind.

Not only commands.  Various sections of the man system describe different
things.  Functions, system calls, file formats, code style guide, and
several other things are documented in man-pages.


> 
> The cool part is I'm writing you from FreeBSD, X
> Windows, Firefox while the kde3 build is in progress.



-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



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