Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183167 - Portage elog functionality does not work with emerge -B or -K
Summary: Portage elog functionality does not work with emerge -B or -K
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 181949
  Show dependency tree
 
Reported: 2007-06-25 16:14 UTC by Jeff Fernandez
Modified: 2007-06-29 02:55 UTC (History)
0 users

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


Attachments
explicitly call elog_process() when --buildpkgonly is enabled (buildpkgonly_elog.patch,493 bytes, patch)
2007-06-25 19:48 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fernandez 2007-06-25 16:14:16 UTC
I have elog set up in make.conf like this:

PORTAGE_ELOG_CLASSES="info qa warn error log"
PORTAGE_ELOG_SYSTEM="save mail_summary"
PORTAGE_ELOG_MAILURI="user@some.mailserver.com"

This produces mails and logs during normal emerges.  However, when using emerge -K or -B, no elog logs or mails are produced.

This behavior, I believe, defeats the purpose of Portage elog.  It should be possible to build packages unattended with -B, and then merge them to the system later with -K after reviewing the elog output.

Reproducible: Always

Steps to Reproduce:
1. Configure elog in make.conf
2. Build a package with emerge -B
3. Merge the package with emerge -K
4. Observe the lack of elog output
Comment 1 Zac Medico gentoo-dev 2007-06-25 19:48:45 UTC
Created attachment 123070 [details, diff]
explicitly call elog_process() when --buildpkgonly is enabled

This should fix it.  The -K option alone doesn't affect elog, but -B certainly does.
Comment 2 Jeff Fernandez 2007-06-25 23:49:55 UTC
(In reply to comment #1)
> Created an attachment (id=123070) [edit]
> explicitly call elog_process() when --buildpkgonly is enabled
> 
> This should fix it.  The -K option alone doesn't affect elog, but -B certainly
> does.
> 

That patch fixed the problem.  Thanks!
Comment 3 Zac Medico gentoo-dev 2007-06-29 02:55:09 UTC
This has been released in 2.1.3_rc6.