Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90607 - enotice-0.2.2.ebuild (New Package)
Summary: enotice-0.2.2.ebuild (New Package)
Status: RESOLVED DUPLICATE of bug 11359
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 145062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-27 05:23 UTC by BRUNEL Maxime
Modified: 2006-11-12 07:30 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
enotice-0.2.2.ebuild (enotice-0.2.2.ebuild,828 bytes, text/plain)
2005-04-27 05:23 UTC, BRUNEL Maxime
Details
enotice-0.2.2 script (to put in "/files" dir) (enotice-0.2.2,5.30 KB, text/plain)
2005-04-27 05:26 UTC, BRUNEL Maxime
Details
profile.bashrc (to put in "/files" dir) (profile.bashrc,811 bytes, text/plain)
2005-04-27 05:27 UTC, BRUNEL Maxime
Details
Enotice-0.2.9 tarball (enotice-0.2.9_alpha.tar.gz,6.32 KB, application/octet-stream)
2005-08-04 12:05 UTC, Lindsay Haisley
Details
sample logfile from portage-2.1 (local-test:etest-1-20050814-164315.log,147 bytes, text/plain)
2005-09-20 05:50 UTC, Marius Mauch (RETIRED)
Details
sample logfile from portage-2.1 (local-test:etest-1-20050814-164315.log,147 bytes, text/plain)
2005-09-20 05:52 UTC, Marius Mauch (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BRUNEL Maxime 2005-04-27 05:23:01 UTC
Hi!

Per-package message logging.

I suggest app-portage. This ebuild depend on python.

maxtoo.
Comment 1 BRUNEL Maxime 2005-04-27 05:23:47 UTC
Created attachment 57378 [details]
enotice-0.2.2.ebuild
Comment 2 BRUNEL Maxime 2005-04-27 05:26:28 UTC
Created attachment 57379 [details]
enotice-0.2.2 script (to put in "/files" dir)
Comment 3 BRUNEL Maxime 2005-04-27 05:27:24 UTC
Created attachment 57380 [details]
profile.bashrc (to put in "/files" dir)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-04-27 10:10:01 UTC
Works fine here. Finally I don
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-04-27 10:10:01 UTC
Works fine here. Finally I don´t have to set this up manually on every Gentoo box. Thanks!
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2005-04-27 10:29:21 UTC

*** This bug has been marked as a duplicate of 11356 ***
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2005-04-27 10:30:44 UTC
wrong bug number
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2005-04-27 10:30:58 UTC

*** This bug has been marked as a duplicate of 11359 ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-04-27 11:00:00 UTC
Hmm, yet another bug is marked as a dupe of a bug that has been around for 2,5 years (a.k.a. for ages) but I
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-04-27 11:00:00 UTC
Hmm, yet another bug is marked as a dupe of a bug that has been around for 2,5 years (a.k.a. for ages) but I´d rather have this ebuild in portage tree than wait for maybe another year until portage-2.1 (?) becomes reality. 

This could have been a separate ebuild or a part of gentoolkit for a long time and would have prevented people from moaning about missed einfo/ewarns causing the things to break...

Just my $0.02 :p
Comment 11 Marius Mauch (RETIRED) gentoo-dev 2005-04-27 12:23:47 UTC
Well, I'm not going to support ANY package that abuses profile.bashrc.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-04-27 13:57:09 UTC
Abuses?! Huh, any other non-abusive ideas then? Sorry, but this has taken too long, seriously... 
Comment 13 Brian Harring (RETIRED) gentoo-dev 2005-04-27 17:01:44 UTC
"Abuses?! Huh, any other non-abusive ideas then? Sorry, but this has taken too long, seriously... "
Kindly play nice.  Use it in your overlay, portage cvs head already has functionality that's not a hack (sorry eldad, the bashrc trickery is a hack, nifty solution, but not something deployable).

If you want to go ahead with it, tack it into your bashrc.  The bashrc hack won't wind up in a profile....
Comment 14 Jason Stubbs (RETIRED) gentoo-dev 2005-08-03 21:14:43 UTC
Any issue with integrating the bashrc part into ebuild.sh? It would remove the 
dependency on /sbin/functions.sh if nothing else... 
Comment 15 Lindsay Haisley 2005-08-03 21:32:35 UTC
Please note that I've done some substantial development work on enotice in
coordination with Eldad Zack.  We're up to version 0.2.9.  It's available at
http://www.fmp.com/enotice.  Further enhancements are planned since I'm getting
some good feedback from people who are using the utility, and I was just sent a
link to a newer ebuild script which I haven't had time to check out yet.  The
tar file at fmp.com includes a man page, a change log and a shell installer
(lacking as yet a proper ebuild)

Integrating the functionality of our profile.bashrc into ebuild.sh would, of
course, eliminate objections to putting code into the former.  I'm not able to
find any consistent protocol or usage description for profile.bashrc (it's not
listed in the portage man page) so I don't know what the issues are there.  This
would require a commitment from the portage devs to support the changes in
ebuild.sh going forward.
Comment 16 Lindsay Haisley 2005-08-04 12:05:56 UTC
Created attachment 65088 [details]
Enotice-0.2.9 tarball

enotice-0.2.9 adds alpha|timestamp sorting option, paging for notices and
notice index, notice range display or deletion, severity selection criteria,
man page and much more.
Comment 17 Marius Mauch (RETIRED) gentoo-dev 2005-08-05 17:47:28 UTC
well, *if* we're going to change ebuild.sh then I'd rather backport the elog
changes in head, as the changes on the python side shouldn't differ between head
and stable.
Jason, would be your decision if changes to ebuild.sh are acceptable (new
feature in stable that will likely see a few changes once it's out).
Comment 18 Jason Stubbs (RETIRED) gentoo-dev 2005-08-05 18:38:58 UTC
That works as it's fairly isolated. 

*** This bug has been marked as a duplicate of 11359 ***
Comment 19 Marius Mauch (RETIRED) gentoo-dev 2005-08-16 13:28:55 UTC
As 2.1 alpha is out, you might wanna look at porting the enotice reader to use
the elog logfiles (comments in make.conf.example should explain how to use it)
Comment 20 Lindsay Haisley 2005-09-19 18:46:56 UTC
It looks like the proposed portage system is going to address the issue of
ebuild logging, but from looking at the 2.1 make.conf, the logging may or may
not be compatible with the enotice reader.  enotice expects each line in a
logfile to have a prefix - "info:", "warn:" or "error:" and display options can
be set according to how much or how little information is wanted.  How will this
work in logfiles generated by portage 2.1?  Will there be any distinctions
between lines in the generated logfiles so the enotice can make such a selection?

I could probably go digging in the gentoo CVS system and find this information
eventually, but if someone who knows it could summarize it for me, I could move
forward.
 
Comment 21 Marius Mauch (RETIRED) gentoo-dev 2005-09-20 05:50:40 UTC
Created attachment 68851 [details]
sample logfile from portage-2.1

Well, you could just merge portage-2.1 after unamsking, but I'm also attaching
a sample logfile generated by it. It doesn't prefix every line, instead it's
using sections where each section is started with a line LEVEL:phase and ended
with one or more blank newlines.
It would also be possible to make a module that saves it in a enotice
compatible way though.
Comment 22 Marius Mauch (RETIRED) gentoo-dev 2005-09-20 05:52:03 UTC
Created attachment 68852 [details]
sample logfile from portage-2.1

Well, you could just merge portage-2.1 after unamsking, but I'm also attaching
a sample logfile generated by it. It doesn't prefix every line, instead it's
using sections where each section is started with a line LEVEL:phase and ended
with one or more blank newlines.
It would also be possible to make a module that saves it in a enotice
compatible way though.
Comment 23 Marius Mauch (RETIRED) gentoo-dev 2005-09-20 05:52:58 UTC
Comment on attachment 68851 [details]
sample logfile from portage-2.1

stupid bugzilla adding this twice ...
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2006-08-25 04:24:39 UTC
*** Bug 145062 has been marked as a duplicate of this bug. ***
Comment 25 MAL 2006-08-25 05:36:03 UTC
Time permitting, I'll have a go at updating enotice to support elog log files.
Comment 26 Marius Mauch (RETIRED) gentoo-dev 2006-08-25 07:38:40 UTC
Possible alternate solution: write a elog module that generates logfiles in enotice format (see mod_save.py and/or mod_syslog.py for examples). Might be the easier solution.