On 12/04/2024 10:33 AM, Xi Ruoyao wrote:
On Wed, 2024-12-04 at 10:28 +0800, Tiezhu Yang wrote:
On 12/03/2024 09:12 PM, Eric Gallager wrote:
On Tue, Dec 3, 2024 at 7:09 AM Tiezhu Yang <yangtie...@loongson.cn> wrote:
When executing the script download_prerequisites, the download speed may
be extremely slow and there is no any output, the users do not know what
happened.
Given the command wget and curl have options --verbose and --no-verbose,
add them for download_prerequisites to give a chance to see the details.
For how long have they had these options? My curl (8.10.1) doesn't
seem to be listing `--no-verbose` among its `--help all` list of
options...
In the curl man page [1] or "curl --manual | grep no-verbose",
there is "--no-verbose", but there is no this option in the
output of "curl --help". I do not know the internal history.
When executing the curl command, "--no-verbose" is a valid
option but seems no effect like the option "--silent".
In the current code, "curl -LO --no-verbose" looks like
somehow unreasonable, the output is not expected. Since
wget is a frequently-used command, is it possible to
remove the curl command in download_prerequisites?
Doing so may force many running CI systems to update their container
image. Don't do that.
AFAIK --no-verbose just cancels out a prior --verbose and it's not same
as --quiet. I.e. there are 3 different console output levels, --quiet,
--no-verbose (the default), and --verbose.
Try "curl --verbose example.org -Lo /dev/null", "curl example.org -Lo
/dev/null", and "curl --silent example.org -Lo /dev/null" yourself.
Thanks for your explanation. I tried to run the above three commands,
the output is different.
So if I understand correctly, "--no-verbose" is a valid option for curl
and wget, there is no need to change this patch.
Cc more Global Reviewers who can approve these changes.
https://inbox.sourceware.org/gcc-patches/20241203120801.15317-1-yangtie...@loongson.cn/
Thanks,
Tiezhu