Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Removing or stopping binary emerges from being in emerge.log
Date: Sun, 06 Mar 2022 13:13:26
Message-Id: 20220306131313.1231cd39@digimed.co.uk
In Reply to: Re: [gentoo-user] Removing or stopping binary emerges from being in emerge.log by Daniel Pielmeier
1 On Sun, 6 Mar 2022 09:50:00 +0100, Daniel Pielmeier wrote:
2
3 > Dale schrieb am 06.03.22 um 06:53:
4 > >
5 > > I have a chroot environment that I do updates in.  Once the updates
6 > > are done, I copy the binaries and distfiles over to my running system
7 > > and use the -k option to update everything in my real system.  It
8 > > comes in real handy when libreoffice, Firefox, qtwebengine and other
9 > > large time consuming packages are being updated.  The bad thing is, I
10 > > have the full length of build time in the chroot but the binary
11 > > install on my running system.  Is there a way to either stop it from
12 > > logging binary updates or removing them after it is done?  I'd rather
13 > > it not keep those times in either place really.  I can't find a
14 > > emerge option.  It seems to record everything regardless.  My reason
15 > > for this, the binary install times throws off genlop -c and its
16 > > estimates.
17
18 > There is a long-standing bug [1] regrading this issue but given genlop
19 > currently is not actively developed I don't think there will be a
20 > solution soon. It should be possible to exclude binary merges as they
21 > can be identified in emerge.log which is read by genlop to generate the
22 > output.
23 >
24 > Also I don't think there is an option in portage to not log binary
25 > merges.
26
27 It looks that way, man emerge says
28
29 /var/log/emerge.log
30 Contains a log of all emerge output. This file is always
31 appended to, so if you want to clean it, you need to do so
32 manually.
33
34 However, genlop can, AFAIR, be pointed to a different log file, so you
35 could maybe use grep or sed to remove the binary entries and output to a
36 log that is read by genlop.
37
38 However, I do wonder why the chroot and the host are both writing to the
39 same log file, surely the chroot builds are logged within the chroot.
40
41
42 --
43 Neil Bothwick
44
45 New sig wanted good price paid.

Replies