public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Re: Suppressing some "emerge" output
@ 2024-10-23 16:35 Dr Rainer Woitok
  2024-10-23 16:40 ` Eli Schwartz
  0 siblings, 1 reply; 2+ messages in thread
From: Dr Rainer Woitok @ 2024-10-23 16:35 UTC (permalink / raw
  To: Gentoo-User

On Wed, 09 Oct 2024 17:25:13 +0200 I myself wrote:

> ...
> after a recent KDE upgrade  among other new packages  "emerge"  also in-
> stalled "dev-qt/qtwebengine" as a new dependency.  Since on my five year
> old laptop  this package requires about  6 hours 20 minutes to build,  I
> decided to slightly redesign my package managing script and to use bina-
> ry packages for long bilding dependencies I build with default USE flags
> anyway.
> 
> It works,  but is there a way (short of using "|grep -v ...") to prevent
> "emerge" from spitting  plenty of noisy  but rather  irrelevant progress
> messages to  standard output  (which it  also logs  to "/var/log/emerge-
> fetch.log")?

I meanwhile learned two things:

1. Running "emerge --ask ... | grep -v ..." does't work nicely,  because
   after "emerge"  has produced its output  it doesn't immediately close
   its output stream,  while "grep" waits for more input to fill its in-
   ternal buffer.   So the pipe stalls  without asking whether or not to
   continue and one has to blindly type "y" or "n".

2. By accidentally running  an unrelated  "wget" command  without option
   "--quiet" I realized that these noisy progress messages most probably
   originate from a call to "wget" issued by "emerge" directly.

So I appended the line "quiet = on" to file "/etc/wgetrc" and that real-
ly suppressed all these progress messages.   The only question remaining
now is whether "emerge" calling "wget" without "--quiet" option is a bug
or a feature.  Opinions?

Sincerely,
  Rainer


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Re: Suppressing some "emerge" output
  2024-10-23 16:35 [gentoo-user] Re: Suppressing some "emerge" output Dr Rainer Woitok
@ 2024-10-23 16:40 ` Eli Schwartz
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Schwartz @ 2024-10-23 16:40 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 584 bytes --]

On 10/23/24 12:35 PM, Dr Rainer Woitok wrote:
> So I appended the line "quiet = on" to file "/etc/wgetrc" and that real-
> ly suppressed all these progress messages.   The only question remaining
> now is whether "emerge" calling "wget" without "--quiet" option is a bug
> or a feature.  Opinions?


An interactive user should be able to see how long they are going to
wait for a download to complete. That's why wget defaults to this.

If users wish to not have that feedback, they can define FETCHCOMMAND in
make.conf to contain the --quiet flag.


-- 
Eli Schwartz

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-23 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 16:35 [gentoo-user] Re: Suppressing some "emerge" output Dr Rainer Woitok
2024-10-23 16:40 ` Eli Schwartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox