Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698918 - getting a summary of the entire emerge process by mail
Summary: getting a summary of the entire emerge process by mail
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-30 11:53 UTC by Fab
Modified: 2019-11-01 22:57 UTC (History)
1 user (show)

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


Attachments
emerge output (out.txt,135.57 KB, text/plain)
2019-10-30 21:11 UTC, Fab
Details
summary (summary.txt,478 bytes, text/plain)
2019-11-01 12:17 UTC, Fab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2019-10-30 11:53:48 UTC
Hi,

I use gentoo on several systems, basically I'm using a build farm, then I'm deploying pre-built packages on others systems.
On all systems, I'm using :
> PORTAGE_ELOG_CLASSES="log warn error"
> PORTAGE_ELOG_SYSTEM="mail save_summary"

Then on local network I'm getting mails when portage wants to tell me something about some updated packages. This is great, but not sufficient IMO : when the entire emerge process succeeds (or fails and stops), I would like to receive a mail from emerge with a summary of the entire process : list and order of updated (binary or not) packages, versions, failures, ...

Is it possible ? portage-2.3.76-r1 here. Thank you.
Comment 1 Tomáš Mózes 2019-10-30 16:57:30 UTC
You can save the emerge output to a file and then send as an attachment. A few lines in bash.
Comment 2 Fab 2019-10-30 21:11:08 UTC
Created attachment 594604 [details]
emerge output

(In reply to Tomáš Mózes from comment #1)
> You can save the emerge output to a file and then send as an attachment. A
> few lines in bash.

Attached file is the emerge output, saved through script, of an update one of my systems. Do you think it is human readable in a mail client ?
Comment 3 Tomáš Mózes 2019-10-31 04:34:24 UTC
You can remove the colors
Comment 4 Tomáš Mózes 2019-10-31 04:42:03 UTC
https://dev.gentoo.org/~zmedico/portage/doc/man/emerge.1.html

Try these:
--color
--nospinner
--quiet
--quiet-build
Comment 5 Fab 2019-10-31 08:42:51 UTC
Of course I can remove the colors, of course I can do it quiet... but two hours sooner when I must determine if I can validate the command, I then wouldn't see nothing in my terminal. What I'm searching is a summary of what was really done, not the output of what would be (hopefully without error) done calculated two hours sooner.

I run emerge through app-misc/screen. When I lock the screen session, two hours later when I come back it can happen that the list of calculated dependencies has disappeared. And I do not remember what was those packages.

And :
>>> Emerging binary (17 of 43) app-text/libabw-0.1.3::gentoo
>>> Installing (17 of 43) app-text/libabw-0.1.3::gentoo
>>> Emerging binary (18 of 43) media-libs/libvisio-0.1.7::gentoo
>>> Emerging binary (19 of 43) dev-qt/qtcore-5.12.5-r1::gentoo
>>> Installing (18 of 43) media-libs/libvisio-0.1.7::gentoo
>>> Installing (19 of 43) dev-qt/qtcore-5.12.5-r1::gentoo
>>> Emerging binary (20 of 43) dev-qt/qtxml-5.12.5::gentoo
>>> Installing (20 of 43) dev-qt/qtxml-5.12.5::gentoo
>>> Emerging binary (21 of 43) dev-qt/qttest-5.12.5::gentoo
>>> Installing (21 of 43) dev-qt/qttest-5.12.5::gentoo
>>> Emerging binary (22 of 43) dev-qt/qtnetwork-5.12.5::gentoo
>>> Emerging binary (23 of 43) dev-qt/qtscript-5.12.5::gentoo
>>> Installing (22 of 43) dev-qt/qtnetwork-5.12.5::gentoo
>>> Emerging binary (24 of 43) dev-qt/linguist-tools-5.12.5::gentoo
>>> Emerging binary (25 of 43) dev-qt/qtdbus-5.12.5::gentoo
>>> Installing (23 of 43) dev-qt/qtscript-5.12.5::gentoo
>>> Installing (24 of 43) dev-qt/linguist-tools-5.12.5::gentoo

Seems to me really hard to read (and is also sometimes truncated).
Comment 6 Fab 2019-11-01 12:17:35 UTC
Created attachment 594728 [details]
summary