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
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
jeffk
l33t
l33t
Posts: 671
Joined: Sat Sep 13, 2003 1:51 pm

Log of emerge readable output produced somewhere?

  • Quote

Post by jeffk » Tue Feb 03, 2004 8:15 pm

Is there a log being generated of my emerges' readable output that I can archive for later learning? I switched everything to gentoo recently and have a lot to learn about the system as I configure it.

I'm up to my ears in ebuilds of all the familiar packages I used under Redhat. I saw something flash by about having the gif use flag set, so libungif would assume I had libgif emerged and use that.

I'd like to have a searcheable archive of those kinds of messages. The compiler command output, not so much. Hopefully I'm not too late to start this archive if it was being generated all along. Any tips would be appreciated. Thanks.

Mod edit: Made this thread sticky instead of this merged one. --kallamej
Top
Earthwings
Bodhisattva
Bodhisattva
User avatar
Posts: 7753
Joined: Mon Apr 14, 2003 8:13 pm
Location: Germany

  • Quote

Post by Earthwings » Tue Feb 03, 2004 9:50 pm

there is /var/log/emerge.log, but it's fairly basic.

there are patches in bugzilla (Mod edit: bug 11359 --kallamej) to have the einfo and co. logged (that are the green messages you probably are interested in), but afaik it has not been integrated into portage yet. saving all the compiler output is as useless as space consuming, so piping in a file is no real option.
Top
soulwarrior
Guru
Guru
Posts: 331
Joined: Mon Oct 21, 2002 7:35 pm

Re: Log of emerge readable output produced somewhere?

  • Quote

Post by soulwarrior » Tue Feb 10, 2004 6:30 pm

jeffk wrote:Is there a log being generated of my emerges' readable output that I can archive for later learning? I switched everything to gentoo recently and have a lot to learn about the system as I configure it.
You must activate the logging-feature of emerge by setting the portage log directory in /etc/make.conf:

Code: Select all

# PORT_LOGDIR is the location where portage will store all the logs it
#     creates from each individual merge. They are stored as YYMMDD-$PF.log
#     in the directory specified. This is disabled until you enable it by
#     providing a directory. Permissions will be modified as needed IF the
#     directory exists, otherwise logging will be disabled.
PORT_LOGDIR=/var/log/portage
jeffk wrote: I'd like to have a searcheable archive of those kinds of messages. The compiler command output, not so much. Hopefully I'm not too late to start this archive if it was being generated all along. Any tips would be appreciated. Thanks.
You can then parse the messages in /var/log/portage with the bash utility portlog-info.

(ps: make it executable with "chmod +x portlog-info" and start it with "./portlog-info". You can get a list of available options with "./portlog-info --help")

Here you can find a threat, which lists all the utilities available for portage.
Top
mallchin
l33t
l33t
User avatar
Posts: 655
Joined: Tue Jan 21, 2003 9:59 pm
Location: United Kingdom
Contact:
Contact mallchin
Website

portage log tools - enotice and portlog-info

  • Quote

Post by mallchin » Wed May 04, 2005 3:17 pm

Several tools have arisen that allow one to log/read the messages spurted out by portage.

I have tried both enotice and portlog-info and find enotice to be the better of the two, however it seems to have broken with the latest version of portage (2.0.51.21). I am wondering what tools other people use and which they find the best?

Have you written one of your own that deserves to see some daylight?

Also if anyone has a fix to solve enoitce's sandbox errors please post ;)


-curtis119, made sticky and changed title to be more descriptive.
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed May 04, 2005 3:46 pm

I like the logging support in portage-2.1 :wink:
Top
mallchin
l33t
l33t
User avatar
Posts: 655
Joined: Tue Jan 21, 2003 9:59 pm
Location: United Kingdom
Contact:
Contact mallchin
Website

  • Quote

Post by mallchin » Wed May 04, 2005 5:05 pm

LOL, so logging made it into portage now?

/me is still running 2.0.x, what tool(s) does 2.1.x use?
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed May 04, 2005 5:39 pm

mallchin wrote:LOL, so logging made it into portage now?

/me is still running 2.0.x, what tool(s) does 2.1.x use?
Like about 99.999% of all gentoo users. What do you mean with "what tools"?
Top
mallchin
l33t
l33t
User avatar
Posts: 655
Joined: Tue Jan 21, 2003 9:59 pm
Location: United Kingdom
Contact:
Contact mallchin
Website

  • Quote

Post by mallchin » Wed May 04, 2005 7:25 pm

I meant what tools does 2.1.x have to read notices as replacements for enotice and portlog-info...

Did one of the two make it into portage or does it have a new tool to do this?
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed May 04, 2005 10:18 pm

Several options for that:
a) get the messages via mail
b) log them via syslog
c) stored in a folder
d) run a custom command to process them
e) any other way people are going to write a module for

No tool required.
Top
mallchin
l33t
l33t
User avatar
Posts: 655
Joined: Tue Jan 21, 2003 9:59 pm
Location: United Kingdom
Contact:
Contact mallchin
Website

  • Quote

Post by mallchin » Thu May 05, 2005 12:12 pm

Cool. Sounds like they have it covered.

Can't wait. Have to make do with portlog-info until then.
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Top
swimmer
Veteran
Veteran
User avatar
Posts: 1330
Joined: Mon Jul 15, 2002 10:42 am
Location: Netherlands

  • Quote

Post by swimmer » Tue May 10, 2005 11:40 pm

Hi all,

I tried both PORT_LOGDIR and enotice and have to admit that I find enotice *extremely* useful ... and as already pointed out in another (duplicate) thread I wonder why enotice can't be implemented in portage since it is so simple & easy to do?

Regards
swimmer
Top
Tschew
n00b
n00b
Posts: 9
Joined: Fri Apr 30, 2004 10:44 am

I agree.

  • Quote

Post by Tschew » Wed May 11, 2005 12:09 pm

Enotice should be on the top of the list of features that must be integrated into portage.
Top
curtis119
Bodhisattva
Bodhisattva
User avatar
Posts: 2160
Joined: Mon Mar 10, 2003 4:41 pm
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

  • Quote

Post by curtis119 » Sun May 15, 2005 2:44 am

Duplicate of this thread:

http://forums.gentoo.org/viewtopic-t-333009.html

I am consolidating and that thread is the best of the bunch.
Gentoo: it's like wiping your ass with silk.
Top
curtis119
Bodhisattva
Bodhisattva
User avatar
Posts: 2160
Joined: Mon Mar 10, 2003 4:41 pm
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

  • Quote

Post by curtis119 » Sun May 15, 2005 2:49 am

I moved a ton of other threads that were duplicates of this one. I'm making this one sticky.
Gentoo: it's like wiping your ass with silk.
Top
kallamej
Administrator
Administrator
User avatar
Posts: 4993
Joined: Fri Jun 27, 2003 10:05 am
Location: Gothenburg, Sweden

  • Quote

Post by kallamej » Sun May 15, 2005 9:39 am

Re-consolidating the einfo threads as portage-2.1 is not yet available and this one contains relevant links. Merged http://forums.gentoo.org/viewtopic-p-23 ... ml#2377951 here. Sorry for the interleaving of some of the posts.
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Top
kcy29581
Apprentice
Apprentice
User avatar
Posts: 284
Joined: Thu Nov 04, 2004 4:20 pm
Location: England

  • Quote

Post by kcy29581 » Sun May 15, 2005 10:18 am

enotice is amazing! I actually feel like the pc has power now. It can emerge stuff and tell me afterwards in plain english what I, the slave, must do! I also used portlog-info first to go through all the logs before I used enotice.

gentooexperimental has some great tools which would be a great asset to portage. I have just returned to Gentoo after 3 months of distro-hopping (mostly used Arch Linux) and I am here to stay. The logs and emerge info were always my biggest gripes with Gentoo and now they are sorted!

Thanks!
There is no spoon...

Oh, and it's WINDOWS not Winblowz for those who can't spell
Top
jeffk
l33t
l33t
Posts: 671
Joined: Sat Sep 13, 2003 1:51 pm

  • Quote

Post by jeffk » Sun May 15, 2005 4:04 pm

I'm curious, is enotice not yet included in portage, gentoolkit or some other package? I'd like to try it, but have only found this reference: http://gentooexperimental.org/script/repo/show/14

Perhaps there should be an ebuild for it?
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sun May 15, 2005 5:01 pm

There won't be an ebuild for it (unless someone outside {tools,dev}-portage wants to deal with it and the potential issues it will create).
Top
rikell42
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Wed Aug 25, 2004 9:16 pm
Location: portland orgeon

  • Quote

Post by rikell42 » Sun May 15, 2005 5:25 pm

this is kind of weird.

why would logging be so difficult to figure out and not availiable as an ebuild?

is there a howto somewere that I missed?
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sun May 15, 2005 5:46 pm

Oh, it's not difficult at all. The reason why I'm not going to make a package for enotice is because it's (ab)using an undocumented portage feature to override internal functions, also it won't work anymore with portage-2.1 and has a (very remote) possibility to break profiles. In short: I can't support it even if I wanted, nor could any other portage developer.
Top
rikell42
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Wed Aug 25, 2004 9:16 pm
Location: portland orgeon

  • Quote

Post by rikell42 » Sun May 15, 2005 6:57 pm

aww ok that makes sense.

I guess I will wate till things get integrated into portage before I mess with logging.
Top
kcy29581
Apprentice
Apprentice
User avatar
Posts: 284
Joined: Thu Nov 04, 2004 4:20 pm
Location: England

  • Quote

Post by kcy29581 » Sun May 15, 2005 10:07 pm

I know this is going to sound like I should just wait, but I'm curious as to when portage-2.1 "might" be out with logging features? I've been away from Gentoo for a few months so I'm a bit rusty with news...

I can wait for it! Just curious
There is no spoon...

Oh, and it's WINDOWS not Winblowz for those who can't spell
Top
mallchin
l33t
l33t
User avatar
Posts: 655
Joined: Tue Jan 21, 2003 9:59 pm
Location: United Kingdom
Contact:
Contact mallchin
Website

  • Quote

Post by mallchin » Sun May 15, 2005 10:16 pm

enotice seems broken for latest the portage, I can see it being a cat-and-mouse game...

portlog-info uses portage's built in logging features, probably less likely tro break...
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Top
kcy29581
Apprentice
Apprentice
User avatar
Posts: 284
Joined: Thu Nov 04, 2004 4:20 pm
Location: England

  • Quote

Post by kcy29581 » Sun May 15, 2005 10:35 pm

I can see why portlog-info is hard (or damn near impossible!) to break, as it does a simple thing: looks at portage's OWN logs and filters out certain key words/phrases.

However with enotice, how could it break portage or anything for that matter? I thought that it did a similar thing to portlog-info, but rather than looking at the logs, it looks at the direct output and juts makes easily-readable files. It can't actually delete anything right?
There is no spoon...

Oh, and it's WINDOWS not Winblowz for those who can't spell
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Sun May 15, 2005 10:51 pm

kcy29581 wrote:I can see why portlog-info is hard (or damn near impossible!) to break, as it does a simple thing: looks at portage's OWN logs and filters out certain key words/phrases.

However with enotice, how could it break portage or anything for that matter? I thought that it did a similar thing to portlog-info, but rather than looking at the logs, it looks at the direct output and juts makes easily-readable files. It can't actually delete anything right?
The point is that it's overriding internal functions (actually inherited from baselayout atm) and 2.1 a) doesn't allow that anymore and b) changes those functions for it's own logging. So it won't delete anything, but it won't work anymore and might cause some random problems.
Top
Post Reply

99 posts
  • 1
  • 2
  • 3
  • 4
  • Next

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