by keithspg » Wed Jun 22, 2022 12:25 am
I can confirm that on armv7 that this patch fixes this problem with wget.
How did you get it to compile? I used the arch PKGBUILD and added the appropriate architectures and when I tried to build it on aarch64, I get a failure.
$this->bbcode_second_pass_code('', '============================================================================
Testsuite summary for wget 1.21.3
============================================================================
# TOTAL: 94
# PASS: 87
# SKIP: 1
# XFAIL: 0
# FAIL: 6
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to bug-wget@gnu.org
============================================================================
make[4]: *** [Makefile:2103: test-suite.log] Error 1
')
and it fails to build an executable. I comment out the tests and it builds.
The failed tests are ftp-iri, ftp-iri-fallback, ftp-iri-recursive, ftp-iri-disabled, iri-disabled, iri-list
When I try on armv7, I get 11 test failures. The same 6 as above plus: https-pfs, https-tlsv1, https-tlsv1x, https-clientcert, https-crl. When I add your patch, I am back to the same 6 test failures as with aarch64. This cast patch fixes this problem with the https certificate check for armv7.
The questions I have are 1) how did this binary get built from the PKGBUILD in the first place for armv7 and aarch64 and 2) what else needs to get fixed for the iri faiulres (whatever they are). AFAIK, the PKGBUILDS for the Arch Arm packages are what is used to build the binaries. Many are copies of the x86_64 PKGBUILDS and need only to add the proper architecture to build. I do not understand how nobody saw that it was not building properly.
I am using this in a script to check if I am online:
$this->bbcode_second_pass_code('', 'wget --force-html --spider --connect-timeout=1 --timeout=10 --tries=2 https://www.google.com/')
and now after this patch, it works properly, I get this as a response which matches what I get on aarch64 and x86_64:
$this->bbcode_second_pass_code('', '# wget --force-html --spider --connect-timeout=1 --timeout=10 --tries=2 https://www.google.com/
Spider mode enabled. Check if remote file exists.
--2022-06-21 13:18:07-- https://www.google.com/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving www.google.com (www.google.com)... 142.250.190.132, 2607:f8b0:4009:81b::2004
Connecting to www.google.com (www.google.com)|142.250.190.132|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.')