Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Log of emerge readable output produced somewhere?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
99 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
Author
Message
ruivilela
Apprentice
Apprentice
User avatar
Posts: 236
Joined: Tue Oct 05, 2004 6:45 pm
Location: Łódź
Contact:
Contact ruivilela
Website

  • Quote

Post by ruivilela » Mon Oct 16, 2006 9:39 am

I just tryed reemerging something and later parsed the file. :)

Added solved. Thanks
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

  • Quote

Post by nixnut » Mon Oct 16, 2006 3:59 pm

Merged 5 previous posts here.
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Top
Crono81
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Nov 07, 2006 9:18 pm

  • Quote

Post by Crono81 » Thu Nov 23, 2006 1:22 pm

I only want to see the * BLA BLA and * BLA BLA informations of an ebuild, having it installed or not. How to do that?
Top
Wooff
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 101
Joined: Sat Jun 19, 2004 9:59 am
Location: LB.CZ.EU

human readable format of TIME in emerge.log

  • Quote

Post by Wooff » Thu Nov 23, 2006 1:43 pm

hi,
I would like to force portage to use any human readable format for DATE and TIME . Any idea?

for example anything like this:

Code: Select all

2006/11/24 14:40:38  >>> emerge (1 of 1) net-ftp/ftp-0.17-r6 to /
2006/11/24 14:41:16  *** exiting successfully.
instead of

Code: Select all

1164288247:  >>> emerge (1 of 1) net-ftp/ftp-0.17-r6 to /
1164288271:  *** exiting successfully.
Top
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

  • Quote

Post by tomk » Thu Nov 23, 2006 8:08 pm

Maybe this topic is of use: [topic=514576]nice trick: formatting the time code in emerge.log[/topic].
Search | Read | [topic=119906]Answer[/topic] | [topic=28820]Report[/topic] | [topic=160179]Strip[/topic]
Top
lenkki
n00b
n00b
Posts: 55
Joined: Wed Mar 03, 2004 1:24 pm

  • Quote

Post by lenkki » Sat Dec 02, 2006 1:49 pm

Why aint elog save enabled by default in the make config and when an emerge is finnished just automatically echo the saved contents to the user? Isn't this what most users want? To actually see the important warnings/info for each package without having to watch the compile. To me it seems as all the required code for doing this is in place allready. The additions to the emerge script shouldn't be that overwhelming, to my understanding.

edit: I'm writing this because I in my last emerge -uD world by pure luck managed to catch an einfo message from GTK telling me to rebuild certain packages because they would break else. Why in the name of $DEITY is so important information allowed to just scroll by in useless compile output? For the record this wouldn't have been the first time my gentoo system got b0rken by an -uD world, and yes I _ALLWAYS_ run etc-update after my updates, regardless of if I was told or not.
Top
bLUEbYTE84
Guru
Guru
User avatar
Posts: 566
Joined: Fri Jul 21, 2006 9:11 pm
Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table

  • Quote

Post by bLUEbYTE84 » Wed Dec 06, 2006 7:51 pm

lenkki wrote:Why aint elog save enabled by default in the make config and when an emerge is finnished just automatically echo the saved contents to the user? Isn't this what most users want? To actually see the important warnings/info for each package without having to watch the compile. To me it seems as all the required code for doing this is in place allready. The additions to the emerge script shouldn't be that overwhelming, to my understanding.
Agreed.
Crono81 wrote:I only want to see the * BLA BLA and * BLA BLA informations of an ebuild, having it installed or not. How to do that?
I also would like to know how to do precisely this.
Top
jphein
n00b
n00b
Posts: 3
Joined: Mon Apr 17, 2006 7:46 am

This is what I have found.

  • Quote

Post by jphein » Wed Jan 10, 2007 8:20 am

It looks like this is now in portage.

You just need to add some variables to your make.conf

Code: Select all

# This sets where to log
PORT_LOGDIR=/var/log/portage
# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log info"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"
You may need to create the directories

Code: Select all

mkdir /var/log/portage
mkdir /var/log/portage/elog
GUIs for viewing the "elogs" are available in portage: http://packages.gentoo.org/search/?sstring=elogs
Top
Hypnos
Advocate
Advocate
User avatar
Posts: 2889
Joined: Thu Jul 18, 2002 5:12 pm
Location: Omnipresent

  • Quote

Post by Hypnos » Sun Jan 14, 2007 12:14 am

What exactly do the various elog classes mean? The sample conf and documentation are vague.

I presume that info, warn and error record the respective einfo/ewarn/eerror messages to the individual elogs. What does log do?
Personal overlay | Simple backup scheme
Top
_pF_
Apprentice
Apprentice
Posts: 195
Joined: Thu Apr 22, 2004 2:54 pm
Location: Central London

Invisible linux-headers mystery.

  • Quote

Post by _pF_ » Sun Jan 14, 2007 6:33 pm

Having emerged linux-headers, I was fortunate to see a notice's recommending a rebuild of glibc appear on the screen. Checking elogv and kelogviewer, though, I see no mention at all of linux-headers, let alone its messages. These two programs both show all of the other contemporaneous emerges, just not linux-headers.
CORRVPTISSIMA RE PVBLICA PLVRIMAE LEGES
Top
Hypnos
Advocate
Advocate
User avatar
Posts: 2889
Joined: Thu Jul 18, 2002 5:12 pm
Location: Omnipresent

  • Quote

Post by Hypnos » Mon Jan 15, 2007 12:34 am

Nevermind my question two posts above -- it's in the devmanual.
Personal overlay | Simple backup scheme
Top
Bones McCracker
Veteran
Veteran
User avatar
Posts: 1611
Joined: Tue Mar 14, 2006 8:23 am
Location: U.S.A.

  • Quote

Post by Bones McCracker » Mon Jan 15, 2007 5:38 pm

Several people seem to be looking for a way to keep /var/log/portdir clean.
Just wanted to point out that the tmpwatch serves this purpose well and is very simple to configure.

Code: Select all

# emerge tmpwatch
It installs the 15 KB binary /usr/sbin/tmpwatch, and it creates a little bourne script in /etc/cron.daily. There is no configuration file.

Add this line to the variables section near the top. You could manually assign PORT_LOGDIR (or just type /var/log/portage directly in the rule), but this will query portage to dynamically determine the correct location of its log directory so the script will still function if you change the log location:

Code: Select all

PORT_LOGDIR="$(portageq envvar PORT_LOGDIR)"
Then down below, add a rule something like this to clean the portage log directory (delete the files that have not been modified in >=168 hours):

Code: Select all

${TMPWATCH} --mtime 168 $PORT_LOGDIR
Alternative: If you want, you can exclude your elog directory like so (instead of line above):

Code: Select all

${TMPWATCH} --exclude $PORT_LOGDIR/elog --mtime 168 $PORT_LOGDIR
Option: If so, and you still want to clean elog but after a different time, you could then insert a second rule below the first to handle it:

Code: Select all

${TMPWATCH} --mtime 720 $PORT_LOGDIR/elog
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Fri Jan 19, 2007 5:13 am

Man that is nice! I'm adding this to my tips if that's ok BoneKracker?

Can this also be used to keep distfiles clean and is there more config? (I know, RTFM ;)
Top
Bones McCracker
Veteran
Veteran
User avatar
Posts: 1611
Joined: Tue Mar 14, 2006 8:23 am
Location: U.S.A.

  • Quote

Post by Bones McCracker » Fri Jan 19, 2007 4:35 pm

Go for it. :)

Yeah, you'll be pleased to know it comes already configured to clean distfiles and the portage tempdir. I primarily use a monthly eclean for that, but have tmpwatch sweeping up any remaining cruft months later.
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Sun Jan 21, 2007 3:25 am

BoneKracker wrote:Yeah, you'll be pleased to know it comes already configured to clean distfiles and the portage tempdir. I primarily use a monthly eclean for that, but have tmpwatch sweeping up any remaining cruft months later.
Loverley!
Top
OneOfMany
Tux's lil' helper
Tux's lil' helper
Posts: 108
Joined: Wed Nov 19, 2003 3:31 am
Location: Portland, OR USA

Re: This is what I have found.

  • Quote

Post by OneOfMany » Fri Aug 31, 2007 12:37 pm

jphein wrote:It looks like this is now in portage.

You just need to add some variables to your make.conf

Code: Select all

# This sets where to log
PORT_LOGDIR=/var/log/portage
# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log info"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"
You may need to create the directories

Code: Select all

mkdir /var/log/portage
mkdir /var/log/portage/elog
GUIs for viewing the "elogs" are available in portage: http://packages.gentoo.org/search/?sstring=elogs
Where would a user figure out they need to make an elog directory? I mean other than searching here? I happened to know that I could set the log directory to gain more information. And I did read the entry in make.conf.sample (or is it example?) that talks about needing to create the /var/log/portage directory for this to work. But I didn't see anything about needing to make an elog directory too. And without it I get a list of what compiled, but not the after ebuild instructions.

Thankfully I have a new target to search under for this info, but I want to echo the disbelief that I have to manually get the list of things that packages have told me I must do. Things that may totally hose my system if I don't do them before I reboot are lost unless I know the magic handshake(s). Not the best way to make a user friendly system.
Top
Carlo
Developer
Developer
User avatar
Posts: 3356
Joined: Mon Aug 12, 2002 10:57 pm

Re: This is what I have found.

  • Quote

Post by Carlo » Sat Mar 01, 2008 5:38 pm

OneOfMany wrote:Where would a user figure out they need to make an elog directory? I mean other than searching here?
Well, you can put the log where you're up to, of course. Knowing the FHS and the ideas behind it helps a lot and is basic preconditioned Unix knowledge.
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Top
theSlayer
n00b
n00b
Posts: 8
Joined: Fri Aug 15, 2008 11:20 am

  • Quote

Post by theSlayer » Thu Dec 18, 2008 12:00 pm

Thanks for the idea - till now when I needed to log outputs I used emerge | tee emergelog but it was bad, because output was no longer colourful :-D
Top
passive
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Fri Dec 31, 2004 2:17 pm

Just a thought

  • Quote

Post by passive » Sun May 16, 2010 11:50 am

Could a mod add something like the following to the first post of this thread?
By default, emerge messages are logged here:
/var/log/portage/elog
I had to read 3 pages to find that.
Top
majoron
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed Oct 12, 2005 2:02 pm
Location: Frankfurt

about ebuilds messages logging

  • Quote

Post by majoron » Thu Jul 08, 2010 9:04 am

Hi,
how can I recover the messages displayed by portage after emerging some packages?

I found that you can control this with the PORT_LOGDIR variable, but shouldn't the most important messages be stored by default anywhere for future reference?

I'm sure this question has been asked and answered several times, but I'm not able to find it in the boards.

TIA
Computers are like air conditioners, they stop working properly if you open Windows
Top
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

  • Quote

Post by tomk » Thu Jul 08, 2010 9:13 am

Merged previous post.
Search | Read | [topic=119906]Answer[/topic] | [topic=28820]Report[/topic] | [topic=160179]Strip[/topic]
Top
majoron
Apprentice
Apprentice
User avatar
Posts: 243
Joined: Wed Oct 12, 2005 2:02 pm
Location: Frankfurt

  • Quote

Post by majoron » Thu Jul 08, 2010 9:50 am

tomk wrote:Merged previous post.
Thank you!

I need to improve my search skills...
Computers are like air conditioners, they stop working properly if you open Windows
Top
archrax
n00b
n00b
Posts: 45
Joined: Mon Dec 05, 2011 11:58 pm

  • Quote

Post by archrax » Tue Feb 25, 2014 6:34 pm

I have defined

Code: Select all

PORT_LOGDIR='var/log/portage/build'
in

Code: Select all

/etc/portage/make.conf
which is where I get information captured on each build during an emerge.

However, I notice that I am no longer receiving the important summary information in

Code: Select all

/var/log/portage/elog/summary.log
as a result. Is there anyway of getting this back whilst retaining the individual build logs?

thanks
Top
as.gentoo
Guru
Guru
User avatar
Posts: 321
Joined: Sat Aug 07, 2004 11:02 am

  • Quote

Post by as.gentoo » Fri Feb 06, 2015 11:35 am

app-portage/elogv CMDL-util supporting colors marking

From the doc in /usr/share/doc/elogv-0.7.6.6/README.xz # you might have a different extension than .xz or none at all

Code: Select all

Elogv is a simple tool written in python that allow you to easy read
portage elog files. To launch it, type on a console:

$ elogv

Inside the program, you can use these keys:

 - Down arrow -> Scroll the list of files down by 1 unit
 - Up arrow -> opposite of Down arrow
 - Pag Down -> Scroll the list down by 10 unit
 - Pag Up -> opposite of Pag Down
 - End -> Go to the last file of the list
 - Home -> Go to the first file of the list
 - t -> order the list of files by date, most recent on top
 - a -> order the list of files alphabetically
 - r -> reverse the list of files
 - SpaceBar -> scroll the selected file
 - h or F1 -> show the help screen, press Page Up/Down to scroll up and down,
              h and F1 again to hide
 - d -> removes log files, usage is similar to vim "d" command, here are
        same examples:
                da -> removes all files
                de -> removes from selected item to the end of the list
            ds -> remove from selected item to the start of the list
            d1d or dd -> removes selected file only
                d4d -> removes 4 files starting from selected one
 - q -> quit


Note:

To use this software you need the portage elog system configured on your
/etc/portage/make.conf, this is a simply configuration:

---- /etc/portage/make.conf
# Logging
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="save"
----
As well you can search by pressing / (like in emacs).
Top
Post Reply

99 posts
  • Previous
  • 1
  • 2
  • 3
  • 4

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic