Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927395

Summary: sys-apps/portage: add a save_summary variant to only save the summary
Product: Portage Development Reporter: Pacho Ramos <pacho>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: pacho, zmedico
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pacho Ramos gentoo-dev 2024-03-21 10:06:51 UTC
Hello,

One thing I often need to remember to do on the systems I maintain is to clean old /var/log/portage/*.log files from time to time as, otherwise, they will progressively grow a lot along time.

Personally, I always set:
PORTAGE_ELOG_SYSTEM="save_summary"

Because I am (only) interested on simply reviewing summary.log after udpating the systems. However, I cannot find a way to only save that summary.log without also saving all the other full logs.

Maybe a variant could be added... or "save_summary" could be changed to have:
save -> for saving the full logs
summary -> for saving only the summary

And people wanting both would set "save summary" (both keys).

Thanks a lot
Comment 1 Zac Medico gentoo-dev 2024-03-21 15:49:47 UTC
It looks like you have PORTAGE_LOGDIR (or the older PORT_LOGDIR variable) set, and that enables build logs which are entirely separate from the elog framework.
Comment 2 Pacho Ramos gentoo-dev 2024-03-25 18:20:00 UTC
Ah, indeed, I have PORT_LOGDIR="/var/log/portage". Probably I set it many years ago to try to specify where logs in general (also the summary.log) was going to be located