zephyrproject-rtos / sdk-ng

Zephyr SDK (Toolchains, Development Tools)
Apache License 2.0
175 stars 127 forks source link

setup.sh wget invocation doesn't work with wget2 in newer distros: "Unknown option 'show-progress'" #771

Open karlp opened 2 months ago

karlp commented 2 months ago

The wget --show-progress line here https://github.com/zephyrproject-rtos/sdk-ng/blob/main/scripts/template_setup_posix#L218 doesn't work with the wget2 installed as wget on, for instance, fedora40.

I'm not sure what the right solution here is :)

using --progress=bar:force instead of --show-progress appears to be both forwards and backwards compatible, but I don't have extensive tests, just reading the man pages for both versions.

captcha1 commented 1 month ago

I get this error on Fedora 40 as well.

Maybe should be a separate bug report, but I also notice it does "wget", then "tar" and removes the intermediate file, whereas it's faster and uses less disk space to do :

wget -O - "${toolchain_uri}" | tar xJ