Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Should portage hide build output from the user by default?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 9, 10, 11  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

Show or hide build output by default?
emerge should hide build output by default (unless --quiet-build=n)
28%
 28%  [ 135 ]
emerge should show build output by default (unless --quiet-build=y)
51%
 51%  [ 240 ]
The -v option should control whether build output is shown or not by default
17%
 17%  [ 81 ]
Other (please comment)
2%
 2%  [ 10 ]
Total Votes : 466

Author Message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Mon Nov 14, 2011 1:44 am    Post subject: Should portage hide build output from the user by default? Reply with quote

There has recently been a discussion on gentoo-dev about making portage output less noisy
http://archives.gentoo.org/gentoo-dev/msg_4f0401066abe2dc04458a952ac2a17bd.xml

A solution was implemented to suppress the build output (the configure, make and install) by default, unless the user specifies --quiet-build=n explicitly. There were both supporters and critics of that idea, but no real data about what users think. A compromise was originally proposed on IRC by tommy and forwarded to the -dev mailiing list by me, to make -v (--verbose) control whether build output is shown or not by default.

What are your opinions?
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 229
Location: Detroit, MI, USA

PostPosted: Mon Nov 14, 2011 1:48 am    Post subject: Reply with quote

I voted for the first option (hide by default), but don't feel super-strongly about it. I really dislike tying it to the -v option, however.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Mon Nov 14, 2011 1:49 am    Post subject: Reply with quote

It is not tied to -v, the user can still override with --default-build=...
Back to top
View user's profile Send private message
jdhore
Retired Dev
Retired Dev


Joined: 13 Apr 2007
Posts: 106

PostPosted: Mon Nov 14, 2011 1:52 am    Post subject: Reply with quote

I think preferably build output should be shown by default and that's what i voted for. I'd personally also be fine with -v controlling display of build output as well because for me, it's basically become reflex to always call emerge with -av (when installing stuff/updating).

The --quiet-build=y option is still there if you want it, but IMO, the people who have been annoyed with long build output have already likely turned it on in the past and a large number really don't care so it's not helping or harming them either way, so why not keep to the default that's been used for 12 years now (in Gentoo) and display build stuff by default.
Back to top
View user's profile Send private message
floppymaster
Developer
Developer


Joined: 07 Jul 2010
Posts: 229
Location: Detroit, MI, USA

PostPosted: Mon Nov 14, 2011 1:55 am    Post subject: Reply with quote

chithanh wrote:
It is not tied to -v, the user can still override with --default-build=...

Right. I don't think -v should have any effect on it whatsoever.
Back to top
View user's profile Send private message
rafaelmartins
Retired Dev
Retired Dev


Joined: 11 Apr 2009
Posts: 2
Location: São Paulo/SP, Brazil

PostPosted: Mon Nov 14, 2011 1:58 am    Post subject: Reply with quote

I voted to maintain the old behavior (defaulting to --quiet-build=n). There's no reason to change this at this point, other to make some noise on the community, with no actual gain.
_________________
http://rafaelmartins.eng.br/
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Mon Nov 14, 2011 2:52 am    Post subject: Reply with quote

rafaelmartins wrote:
I voted to maintain the old behavior (defaulting to --quiet-build=n). There's no reason to change this at this point, other to make some noise on the community, with no actual gain.


Right. Lacking a clear beneficial reason (for the majority) there doesn't seem to be a logical reason for changing it. But for what it's worth it's not a big deal to me as long as I am able to change the behavior. That said if I specify -v I expect to see the output.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Nov 14, 2011 3:12 am    Post subject: Reply with quote

It isn't made clear in the poll that this only applies to emerge with no --jobs/-j parameter and as jdhore said even there users can already use --quiet-build=y to get rid of terminal output. So for most emerge's it's not an issue; many users have --jobs or -j N in their EMERGE_DEFAULT_OPTS, and we're only discussing the occasion when a single package is being built, or at least we would be if that were sanely handled, so jobs weren't considered, or --jobs 1 was handled properly (based on my experience of working against stable portage, it should be noted.)

With that in mind, I voted in favour of the existing defaults as well.

Personally I'd like to see better handling of --jobs as noted; -q / -v controlling the output verbosity seems like a natural fit and is what we do in update when --jobs isn't being used or only one package is being built. So in that sense it doesn't affect me, as it's no difficulty to make update use --quiet-build=n for single-stepped installs, and I only ever run emerge via update unless I'm checking -t. But it does seem ill thought-out to me, and could have done with a fuller discussion.
Back to top
View user's profile Send private message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 352
Location: California USA

PostPosted: Mon Nov 14, 2011 4:28 am    Post subject: Reply with quote

Ever since I added --jobs support, I've felt that suppression of build output would be a better default for at least the following reasons:

    I estimate that the flooding of the terminal with build output is useless for more than 99% of users. Usually, there's too much information scrolling by at too high of a rate for it to be intelligible. Having this as the default behavior is ridiculous and leads to jokes like apt-gentoo [1]. Generally, people who want to analyze build output are best served by PORT_LOGDIR.

    With --quiet-build, the user is presented with a useful summary of overall progress, along with current load average data. Why should we expose new users to legacy defaults that are useless to more than 99% of users, when they would most likely prefer the --quiet-build display?


Some of those who seek to revert the --quiet-build default have attacked my 99% estimate, but I stand by it. You have to factor in the "silent majority" that welcomes the change and does not express it publicly. A forum thread like this one tends to attract a "vocal minority", which tends to skew results in way that does not give a fair statistical representation of the gentoo population as a whole (it excludes the "silent majority").

chithanh wrote:
The -v option should control whether build output is shown or not by default


I think that would be too fragile because you could easily have people using -v and getting the --quiet-build=n behavior even though they didn't want it. I think most people would prefer to avoid the --quiet-build=n behavior since, generally, people who want to analyze build output are better served by PORT_LOGDIR.
_________________
Zac
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2550
Location: Here and Away Again

PostPosted: Mon Nov 14, 2011 5:09 am    Post subject: Reply with quote

I voted for emerge should show build output by default (unless --quiet-build=y) though I have very mixed feelings about it. Not showing it by default is probably the more sane way to go. It's like a silly feature I like to keep; I did find it interesting as a new user, maybe a little bit overwhelming, but more interested than anything. I did like it, and usually never hide it unless running with --jobs but it indeed is not like I ever needed it.

The more I think about it, the more indecisive I become about which one I would put in place, as a default.
I am glad that I don't have to make that decision! ^^;
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Mon Nov 14, 2011 8:53 am    Post subject: Reply with quote

I voted for 'emerge should hide build output by default (unless --quiet-build=n) because with MAKEOPTS="-j4" the output is useless anyway.
Whenever something goes wrong i have to re-emerge with 'FEATURES='-ccache' MAKEOPTS='-j1' emerge -1 sys-apps/xxx, from now on i'll just add and --quiet-build=n to this line :wink:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
keeperofdakeys
n00b
n00b


Joined: 22 Nov 2010
Posts: 6

PostPosted: Mon Nov 14, 2011 9:32 am    Post subject: Reply with quote

Personally I think the build log shouldn't be shown by default, there are too few cases where I actually want it; the build summary is much more useful. I also think binding it to -v is a horrible idea, as I use the -v output for a lot of build considerations, of which I don't need the build output. So I suggest to make --quiet-build=y default, but add a single character flag that is an alias to --quiet-build=n. For those people that actually want the functionality, a single flag should be easy to activate when they require it.
Back to top
View user's profile Send private message
Trog Dog
Apprentice
Apprentice


Joined: 04 Aug 2007
Posts: 282

PostPosted: Mon Nov 14, 2011 9:37 am    Post subject: Reply with quote

I voted for for the output to be shown as the default. I feel it lets newbs know that their machine is actually doing something during an emerge and it's not stalled.
_________________
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Nov 14, 2011 11:22 am    Post subject: Reply with quote

davidm wrote:
rafaelmartins wrote:
I voted to maintain the old behavior (defaulting to --quiet-build=n). There's no reason to change this at this point, other to make some noise on the community, with no actual gain.


Right. Lacking a clear beneficial reason (for the majority) there doesn't seem to be a logical reason for changing it.

+1
Trog Dog wrote:
I voted for for the output to be shown as the default.

<respectfully joking>Could this option not be applied to your signature ?<respectfully joking>
_________________
Back to top
View user's profile Send private message
golagoda
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2011
Posts: 105
Location: Australia

PostPosted: Mon Nov 14, 2011 12:00 pm    Post subject: Reply with quote

Voted for 'emerge should show build output by default (unless --quiet-build=y)'

It's just too late to change the default behavior of such a big thing, sure I'd like to have it like that 90% of the time and I do but it should not be the default.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Nov 14, 2011 12:02 pm    Post subject: Reply with quote

aCOSwt wrote:
davidm wrote:
rafaelmartins wrote:
I voted to maintain the old behavior (defaulting to --quiet-build=n). There's no reason to change this at this point, other to make some noise on the community, with no actual gain.


Right. Lacking a clear beneficial reason (for the majority) there doesn't seem to be a logical reason for changing it.

+1
Trog Dog wrote:
I voted for for the output to be shown as the default.

<respectfully joking>Could this option not be applied to your signature ?<respectfully joking>


If I just emerge one package, it shows at the end in the output something like, installing... and then which binaries and files are copied where. I can see straight away what got installed and how to start the program. :idea:

Maybe, we could break it down into:
emerge output
configure/build output
install output
?

At the moment it gives very very little information, only which package it currently works on.
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Mon Nov 14, 2011 12:27 pm    Post subject: Reply with quote

As posted on -dev, I like it the way it was. When something fails, I can see the error and I have something to google for without going into dig mode in some file somewhere in /var.

I also don't like this being tied to -v. I have -v set in make.conf because I always check USE flag changes. That usually saves me from having to compile something twice, which can mean a LOT on my old rig.

I also like something someone else said. You can see what files were installed and see what to run to start it. I hadn't even thought of that one but I do that sometimes too. Just scroll up and see what went into *bin to use it.

Leave it like it was, let people that want it suppressed change the default. That's what people expect.

:D :D
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
few
Guru
Guru


Joined: 03 Mar 2008
Posts: 448

PostPosted: Mon Nov 14, 2011 12:37 pm    Post subject: Reply with quote

A more interesting poll would be why people actually want a particular behaviour.

I see lots of people starting with "I want the old behaviour, because if something fails..." and then complaining about that it's too hard to find the log. This is just wrong as it a) points you to the log file and b) dumps the log onto you if only one thing failed. Maybe this is just of a matter of communicationg what the new behaviour really is instead of letting people guess what it is.
Back to top
View user's profile Send private message
Trog Dog
Apprentice
Apprentice


Joined: 04 Aug 2007
Posts: 282

PostPosted: Mon Nov 14, 2011 2:41 pm    Post subject: Reply with quote

aCOSwt wrote:
<respectfully joking>Could this option not be applied to your signature ?<respectfully joking>


OT: <respectfully explaining>http://www.ted.com/talks/jay_bradner_open_source_cancer_research.html ;)

OT2: comiserations les blues
_________________
CIC1=CC=C(C2=N[C@@H](CC(OC(C)(C)C)=O)C3=NN=C(C)N3C4=C2C(C)=C(C)S4)C=C1
Back to top
View user's profile Send private message
cryptosteve
Veteran
Veteran


Joined: 04 Jan 2004
Posts: 1169
Location: GER

PostPosted: Mon Nov 14, 2011 2:49 pm    Post subject: Reply with quote

It's ok for me now. I can configure a verbose output as easy as I have configured a silent build before.
_________________
- born to create drama -
gpg: 0x9B6C7E15
CS Virtual Travel Bug: VF6G5D
Back to top
View user's profile Send private message
yermandu
n00b
n00b


Joined: 16 Oct 2009
Posts: 12
Location: Shamballa

PostPosted: Mon Nov 14, 2011 4:39 pm    Post subject: Reply with quote

emerge should hide build output by default , we have the choice to show output with another options, i think is nice.
_________________
[yermandu]
Back to top
View user's profile Send private message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 528

PostPosted: Mon Nov 14, 2011 5:26 pm    Post subject: Reply with quote

I think that emerge process should be visible as default (--quiet-build=n).
Because in this way I can see the progress and where is it (fetch, configure, compile, install).
Back to top
View user's profile Send private message
saellaven
l33t
l33t


Joined: 23 Jul 2006
Posts: 646

PostPosted: Mon Nov 14, 2011 5:41 pm    Post subject: Reply with quote

when I'm building a single package, especially if it is failing, I like watching the output go by. When I'm building in parallel (--jobs option), I prefer the current behavior where it shows what jobs it is working on rather than the output. I can always pull up the build logs of specific packages as it goes or if they fail.

It's not like turning off the noise also turns off the logging.
_________________
Ryzen 3700X, Asus Prime X570-Pro, 64 GB DDR4 3200, GeForce GTX 1660 Super
openrc-0.17, ~vanilla-sources, ~nvidia-drivers, ~gcc
Back to top
View user's profile Send private message
chrisstankevitz
Guru
Guru


Joined: 14 Dec 2003
Posts: 472
Location: Santa Barbara, CA, USA

PostPosted: Mon Nov 14, 2011 5:47 pm    Post subject: Reply with quote

Show the output or don't -- either decision will be fine and neither decision will be thought of as a "major mistake" in the future.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Mon Nov 14, 2011 5:56 pm    Post subject: Reply with quote

voted: hide by default

I've got it turned off for a long time, mainly because it dramatically slows down the built when on VT (yeah, crappy driver). Unless something fails, I won't need it and in that case, there's still the .log.

No to binding it to -v, confusing for me.
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2, 3 ... 9, 10, 11  Next
Page 1 of 11

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum