Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] have portage be quiet by default
Date: Mon, 14 Nov 2011 15:20:12
Message-Id: 4EC13187.7010908@gentoo.org
In Reply to: Re: [gentoo-dev] have portage be quiet by default by Alex Alexander
1 On 11/14/2011 12:25 AM, Alex Alexander wrote:
2 > On Sun, Nov 13, 2011 at 05:59:21PM -0800, Zac Medico wrote:
3 >> Well, it's much easier to gather interest and get feedback if we deploy
4 >> the change and ask questions later.
5 >
6 > What if we tried solving this problem by providing more options instead
7 > of trying to guess what the users want? :)
8 >
9 > Imagine the following output (when jobs == 1):
10 >
11 >>>> Verifying ebuild manifests
12 >>>> Emerging (1 of 1) www-client/chromium-16.0.912.36
13 >>>> Quiet building enabled. Enable for [P]ackage or [S]ession. [L]earn more.
14 >>>> Jobs: 0 of 1 complete, 1 running Load avg: 0.23, 0.18, 0.10
15 >
16 > Pressing P would only show the log for the actively built package.
17 > Pressing S would show all the logs for this session, starting with the
18 > active one.
19 >
20 > Pressing L would print out a short set of instructions, something
21 > like:
22 >
23 > "To make portage output easier to track and understand, --quiet-build
24 > has been enabled by default. You may restore the old, verbose behavior
25 > temporarily by using the P and S commands, or permanently by adding
26 > '--quiet-build=n' to your make.conf's EMERGE_DEFAULT_OPTS."
27 >
28 > I believe many users would appreciate the ability to output logs on
29 > demand. :)
30
31 I think that would be an interesting option. We could put stdin in raw
32 mode, like dispatch-conf does, in order to read single characters of
33 input instead of whole lines.
34
35 I can imagine that this option wouldn't be desired by some people, if
36 only because emerge would consume all keystrokes from the input buffer.
37 In the past we had a few portage releases that consumed keystrokes like
38 that (it was part of the support for interactive ebuilds), and I recall
39 someone (I think it was grobian) complaining because he had a habit of
40 typing his next shell command before emerge had completed.
41 --
42 Thanks,
43 Zac

Replies

Subject Author
Re: [gentoo-dev] have portage be quiet by default Alex Alexander <wired@g.o>