Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo needs compile logging
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
konstk
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2002
Posts: 75

PostPosted: Sat Sep 28, 2002 1:50 am    Post subject: gentoo needs compile logging Reply with quote

It would help in tracking down those compile bugs for those users who go beyond the basic portage ebuilds.
Back to top
View user's profile Send private message
keef
n00b
n00b


Joined: 02 Jul 2002
Posts: 45
Location: Third Stone from the Sun

PostPosted: Sat Sep 28, 2002 10:45 pm    Post subject: Reply with quote

if you want to log the emerge just do this:

Code:

  emerge <options> <package> &> emerge.log &
  tail -f emerge.log

Example:
  emerge -u world &> emerge.log &
  tail -f emerge.log


Then just Ctrl-C to end the tail process when emerge completes. You will have the complete log of the emerge in 'emerge.log'.


Last edited by keef on Sat Sep 28, 2002 10:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Sep 28, 2002 10:46 pm    Post subject: Reply with quote

How is this better than just using tee?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
keef
n00b
n00b


Joined: 02 Jul 2002
Posts: 45
Location: Third Stone from the Sun

PostPosted: Sat Sep 28, 2002 10:49 pm    Post subject: Reply with quote

Did I say it was better than tee? I don't see that in my post.

Its just 'a way' of doing it.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sat Sep 28, 2002 11:04 pm    Post subject: Reply with quote

IMO, doing this is worse than tee, because when emerge is still a foreground process you can Ctrl-C or Ctrl-Z it. This way you would have to terminate tail , fg [x], and Ctrl-_ it. Far slower if you notice the autocleaning is about to remove a package you don't want it to...
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
keef
n00b
n00b


Joined: 02 Jul 2002
Posts: 45
Location: Third Stone from the Sun

PostPosted: Sat Sep 28, 2002 11:35 pm    Post subject: Reply with quote

If you need hair trigger Ctrl-C, etc. control of your emerge than tee is for you I guess. I've just always done it with tail if I needed a log.

To each his own.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum