Re: How do I make install clean a port in the background

2007-08-11 Thread Rakhesh Sasidharan



A good ideea would be to build screen static. In case you
update your system, it is possible that the libraries on which screen depends
might be deleted. To do so
# make CONFIGURE_ENV=LDFLAGS="-static" build
# make install
that will create a binary screen which is not dynamically linked with the
libraries.
and of course don't forget man screen


That's neat! Didn't know you could do that. Is the option 
CONFIGURE_ENV=LDFLAGS="-static" something you can use for any port to 
compile it statically?


Regards,
Rakhesh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I make install clean a port in the background

2007-08-10 Thread Pollywog
On Friday 10 August 2007 01:29:02 Valentin Bud wrote:



>
> A good ideea would be to build screen static. In case you
> update your system, it is possible that the libraries on which screen
> depends might be deleted. To do so
> # make CONFIGURE_ENV=LDFLAGS="-static" build
> # make install
> that will create a binary screen which is not dynamically linked with the
> libraries.
> and of course don't forget man screen

This is a good idea.  I used screen once when updating the system remotely and 
I was locked out because of some libraries problem.  I had to physically go 
to the machine to get back in and finish what I was doing.

Thanks for the tip.  I know I will be making use of it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I make install clean a port in the background

2007-08-10 Thread Robert Huff

Wojciech Puchar writes:

>  > cd /usr/ports/www/apache22
>  > make install clean &
>  >
>  > it returns the pid but then compiles in the foreground
>  >
>  > What am I doing wrong?
>  >
>  >/dev/null

The /process/ is running in the background.
The /output/ - stdout and stderr, file descriptors 1 and 2 -
are still connected to the terminal.
If you really want to make the output vanish, try:

make install clean >& /dev/null &

for (t)csh and (I think):

make install clean 2>&1 /dev/null &

for (ba)sh.
My personal practice when compiling is not to direct all output
to /dev/null.  If the 22 hour build of OpenOffice blows up, and the
output has vanished, you may have to start over.
Instead, send it to a log file which can then be discarded if
everything goes well.


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I make install clean a port in the background

2007-08-10 Thread Wojciech Puchar


cd /usr/ports/www/apache22
make install clean &

it returns the pid but then compiles in the foreground

What am I doing wrong?

/dev/null

?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I make install clean a port in the background

2007-08-09 Thread Valentin Bud
On Friday 10 August 2007 12:13 am, Jonathan Horne wrote:
> On Thursday 09 August 2007 15:31:01 Bill Moran wrote:
> > In response to Reid Linnemann <[EMAIL PROTECTED]>:
> > > Written by Sean Murphy on 08/09/07 15:15>>
> > >
> > > > How do I make install clean a port in the background?  I used
> > > >
> > > > cd /usr/ports/www/apache22
> > > > make install clean &
> > > >
> > > > it returns the pid but then compiles in the foreground
> > > >
> > > > What am I doing wrong?
> > > >
> > > > ___
> > > > freebsd-questions@freebsd.org mailing list
> > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > > To unsubscribe, send any mail to
> > > > "[EMAIL PROTECTED]"
> > >
> > > You're just seeing the output in the foreground, since the stdio and
> > > stderr for that process are still directed to the terminal. If you are
> > > using bash, you could "make install clean &> /dev/null &" to have the
> > > process operate in the background and direct all output the the
> > > bitbucket. I don't know the analog for other shells.
> >
> > That's only going to help so much.  Most ports are going to generate
> > compiler warnings that go to stderr, which will still spam your screen.
> >
> > First off, I recommend directing to a file instead of /dev/null.  That
> > way if it fails, you have the output to review.  Secondly, redirect both
> > standard out and standard error.  In bourne shells:
> >
> > make install clean >~/buildlog.txt 2>&1 &
>
> i use sysutils/screen.  the entire process is stuck into a new shell,
> seperate from the one you started the command in.  so, for instance:
>
> cd /usr/ports/www/apache22
> screen make install clean
>
> then, you can background the screen with:
>
> ctrl-a-d
>
> i use screen all the time.  one of the most common uses i find for it, is
> when i start a process on my box at home while at the office, and i know
> its going to run way past end-of-day.  ill screen it, and then pick the
> screen'd terminal back up at home again, with a:
>
> screen -r
> or
> screen -rd [pid]
>
> (and dont forget to man screen!)
>
> cheers,
A good ideea would be to build screen static. In case you
update your system, it is possible that the libraries on which screen depends 
might be deleted. To do so
# make CONFIGURE_ENV=LDFLAGS="-static" build
# make install
that will create a binary screen which is not dynamically linked with the 
libraries.
and of course don't forget man screen

all the best,
V
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I make install clean a port in the background

2007-08-09 Thread Jonathan Horne
On Thursday 09 August 2007 15:31:01 Bill Moran wrote:
> In response to Reid Linnemann <[EMAIL PROTECTED]>:
> > Written by Sean Murphy on 08/09/07 15:15>>
> >
> > > How do I make install clean a port in the background?  I used
> > >
> > > cd /usr/ports/www/apache22
> > > make install clean &
> > >
> > > it returns the pid but then compiles in the foreground
> > >
> > > What am I doing wrong?
> > >
> > > ___
> > > freebsd-questions@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> > > "[EMAIL PROTECTED]"
> >
> > You're just seeing the output in the foreground, since the stdio and
> > stderr for that process are still directed to the terminal. If you are
> > using bash, you could "make install clean &> /dev/null &" to have the
> > process operate in the background and direct all output the the
> > bitbucket. I don't know the analog for other shells.
>
> That's only going to help so much.  Most ports are going to generate
> compiler warnings that go to stderr, which will still spam your screen.
>
> First off, I recommend directing to a file instead of /dev/null.  That way
> if it fails, you have the output to review.  Secondly, redirect both
> standard out and standard error.  In bourne shells:
>
> make install clean >~/buildlog.txt 2>&1 &

i use sysutils/screen.  the entire process is stuck into a new shell, seperate 
from the one you started the command in.  so, for instance:

cd /usr/ports/www/apache22
screen make install clean

then, you can background the screen with:

ctrl-a-d

i use screen all the time.  one of the most common uses i find for it, is when 
i start a process on my box at home while at the office, and i know its going 
to run way past end-of-day.  ill screen it, and then pick the screen'd 
terminal back up at home again, with a:

screen -r
or
screen -rd [pid]

(and dont forget to man screen!)

cheers,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I make install clean a port in the background

2007-08-09 Thread Harry Jensen
On Thu, Aug 09, 2007 at 01:15:12PM -0700, Sean Murphy wrote:
> How do I make install clean a port in the background?  I used
> 
> cd /usr/ports/www/apache22
> make install clean &

It is in the background, but if there is output from the process,
you will see it.

A solution could be "make install clean >/dev/null &", but I'm sure that
it not will be very wise, I dont know what happens if a config screen
shows up, and next point is if you get a fault, it's gone with /dev/null.

Why don't you just use another tty?

Brgds Harry
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I make install clean a port in the background

2007-08-09 Thread Bill Moran
In response to Reid Linnemann <[EMAIL PROTECTED]>:

> Written by Sean Murphy on 08/09/07 15:15>>
> > How do I make install clean a port in the background?  I used
> > 
> > cd /usr/ports/www/apache22
> > make install clean &
> > 
> > it returns the pid but then compiles in the foreground
> > 
> > What am I doing wrong?
> > 
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to 
> > "[EMAIL PROTECTED]"
> 
> You're just seeing the output in the foreground, since the stdio and 
> stderr for that process are still directed to the terminal. If you are 
> using bash, you could "make install clean &> /dev/null &" to have the 
> process operate in the background and direct all output the the 
> bitbucket. I don't know the analog for other shells.

That's only going to help so much.  Most ports are going to generate compiler
warnings that go to stderr, which will still spam your screen.

First off, I recommend directing to a file instead of /dev/null.  That way
if it fails, you have the output to review.  Secondly, redirect both
standard out and standard error.  In bourne shells:

make install clean >~/buildlog.txt 2>&1 &

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I make install clean a port in the background

2007-08-09 Thread Reid Linnemann

Written by Sean Murphy on 08/09/07 15:15>>

How do I make install clean a port in the background?  I used

cd /usr/ports/www/apache22
make install clean &

it returns the pid but then compiles in the foreground

What am I doing wrong?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


You're just seeing the output in the foreground, since the stdio and 
stderr for that process are still directed to the terminal. If you are 
using bash, you could "make install clean &> /dev/null &" to have the 
process operate in the background and direct all output the the 
bitbucket. I don't know the analog for other shells.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"