@darnir Thank you for looking into this issue I'm having building wget-git. Since you thought it might have something to do with the particular setup of the machines I am building on, I thought building in a clean chroot might be the way to test your hunch. Following the wiki, I set about to build in a clean chroot the classic way. Interestingly, the build (makechrootpkg -c -r $CHROOT) failed, it appears, with the same error.
Making check in testenv
make[2]: Entering directory '/build/wget-git/src/wget/testenv'
make check-TESTS
make[3]: Entering directory '/build/wget-git/src/wget/testenv'
make[4]: Entering directory '/build/wget-git/src/wget/testenv'
PASS: Test-416.py
PASS: Test-auth-basic-fail.py
PASS: Test-auth-basic.py
PASS: Test-504.py
PASS: Test-auth-basic-netrc.py
PASS: Test-auth-basic-netrc-user-given.py
PASS: Test-auth-basic-netrc-pass-given.py
PASS: Test-auth-basic-no-netrc-fail.py
PASS: Test-auth-no-challenge.py
PASS: Test-auth-both.py
PASS: Test-auth-digest.py
PASS: Test-auth-no-challenge-url.py
PASS: Test-auth-retcode.py
PASS: Test-auth-with-content-disposition.py
PASS: Test-condget.py
PASS: Test-c-full.py
PASS: Test-Content-disposition-2.py
PASS: Test-cookie-401.py
PASS: Test-Content-disposition.py
PASS: Test--convert-links--content-on-error.py
PASS: Test-cookie-domain-mismatch.py
PASS: Test-cookie.py
PASS: Test-cookie-expires.py
PASS: Test-Head.py
PASS: Test--https-crl.py
PASS: Test--https.py
PASS: Test-hsts.py
PASS: Test-O.py
PASS: Test-missing-scheme-retval.py
PASS: Test-pinnedpubkey-der-https.py
PASS: Test-pinnedpubkey-hash-no-check-fail-https.py
PASS: Test-pinnedpubkey-der-no-check-https.py
PASS: Test-pinnedpubkey-hash-https.py
PASS: Test-pinnedpubkey-pem-fail-https.py
PASS: Test-Post.py
PASS: Test-pinnedpubkey-pem-https.py
PASS: Test-recursive-basic.py
PASS: Test-recursive-redirect.py
PASS: Test-recursive-include.py
PASS: Test-redirect.py
PASS: Test-redirect-crash.py
PASS: Test--rejected-log.py
PASS: Test--spider-r.py
PASS: Test-reserved-chars.py
FAIL: Test-no_proxy-env.py
============================================================================
Testsuite summary for wget 1.21.2.19-35a63-dirty
============================================================================
# TOTAL: 45
# PASS: 44
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See testenv/test-suite.log
Please report to bug-wget@gnu.org
============================================================================
make[4]: *** [Makefile:1919: test-suite.log] Error 1
make[4]: Leaving directory '/build/wget-git/src/wget/testenv'
make[3]: *** [Makefile:2027: check-TESTS] Error 2
make[3]: Leaving directory '/build/wget-git/src/wget/testenv'
make[2]: *** [Makefile:2092: check-am] Error 2
make[2]: Leaving directory '/build/wget-git/src/wget/testenv'
make[1]: *** [Makefile:1732: check-recursive] Error 1
make[1]: Leaving directory '/build/wget-git/src/wget'
make: *** [Makefile:2031: check] Error 2
==> ERROR: A failure occurred in check().
Aborting...
==> ERROR: Build failed, check /home/iegubkin/chroot/iegubkin/build
/home/iegubkin/chroot/iegubkin/build/wget-git/src/wget/testenv/test-suite.log
========================================================
wget 1.21.2.19-35a63-dirty: testenv/test-suite.log
========================================================
# TOTAL: 45
# PASS: 44
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: Test-no_proxy-env
=======================
Setting --no-config (noconfig) to 1
DEBUG output created by Wget 1.21.2.19-35a63-dirty on linux-gnu.
Reading HSTS entries from /build/wget-git/src/wget/testenv/Test-no_proxy-env.py-test/.wget-hsts
URI encoding = 'ANSI_X3.4-1968'
converted 'http://working1.localhost:46515/File1' (ANSI_X3.4-1968) -> 'http://working1.localhost:46515/File1' (UTF-8)
Converted file name 'File1' (UTF-8) -> 'File1' (ANSI_X3.4-1968)
--2022-01-21 21:29:43-- http://working1.localhost:46515/File1
Resolving working1.localhost (working1.localhost)... 127.0.0.1, ::1
Caching working1.localhost => 127.0.0.1 ::1
Connecting to working1.localhost (working1.localhost)|127.0.0.1|:46515... connected.
Created socket 3.
Releasing 0x00005598deccab50 (new refcount 1).
---request begin---
GET /File1 HTTP/1.1
Host: working1.localhost:46515
User-Agent: Wget/1.21.2.19-35a63-dirty
Accept: */*
Accept-Encoding: identity
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response... 127.0.0.1 - - [21/Jan/2022 21:29:43] "GET /File1 HTTP/1.1" 200 -
---response begin---
HTTP/1.1 200 OK
Server: BaseHTTP/0.6 Python/3.10.1
Date: Sat, 22 Jan 2022 02:29:43 GMT
content-type: text/plain
content-length: 24
---response end---
200 OK
Registered socket 3 for persistent reuse.
Length: 24 [text/plain]
Saving to: 'File1'
0K 100% 1.38M=0s
2022-01-21 21:29:43 (1.38 MB/s) - 'File1' saved [24/24]
URI encoding = 'ANSI_X3.4-1968'
converted 'http://working1.localhost:46515/File2' (ANSI_X3.4-1968) -> 'http://working1.localhost:46515/File2' (UTF-8)
Converted file name 'File2' (UTF-8) -> 'File2' (ANSI_X3.4-1968)
--2022-01-21 21:29:43-- http://working1.localhost:46515/File2
Reusing existing connection to working1.localhost:46515.
Reusing fd 3.
---request begin---
GET /File2 HTTP/1.1
Host: working1.localhost:46515
User-Agent: Wget/1.21.2.19-35a63-dirty
Accept: */*
Accept-Encoding: identity
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response... 127.0.0.1 - - [21/Jan/2022 21:29:43] "GET /File2 HTTP/1.1" 200 -
---response begin---
HTTP/1.1 200 OK
Server: BaseHTTP/0.6 Python/3.10.1
Date: Sat, 22 Jan 2022 02:29:43 GMT
content-type: text/plain
content-length: 20
---response end---
200 OK
Length: 20 [text/plain]
Saving to: 'File2'
0K 100% 1.10M=0s
2022-01-21 21:29:43 (1.10 MB/s) - 'File2' saved [20/20]
FINISHED --2022-01-21 21:29:43--
Total wall clock time: 0.03s
Downloaded: 2 files, 44 in 0s (1.24 MB/s)
Setting --no-config (noconfig) to 1
DEBUG output created by Wget 1.21.2.19-35a63-dirty on linux-gnu.
Reading HSTS entries from /build/wget-git/src/wget/testenv/Test-no_proxy-env.py-test/.wget-hsts
URI encoding = 'ANSI_X3.4-1968'
converted 'http://www.working1.localhost:37607/File1' (ANSI_X3.4-1968) -> 'http://www.working1.localhost:37607/File1' (UTF-8)
Converted file name 'File1' (UTF-8) -> 'File1' (ANSI_X3.4-1968)
--2022-01-21 21:29:43-- http://www.working1.localhost:37607/File1
Resolving www.working1.localhost (www.working1.localhost)... 127.0.0.1, ::1
Caching www.working1.localhost => 127.0.0.1 ::1
Connecting to www.working1.localhost (www.working1.localhost)|127.0.0.1|:37607... connected.
Created socket 3.
Releasing 0x0000557a70ee2b70 (new refcount 1).
---request begin---
GET /File1 HTTP/1.1
Host: www.working1.localhost:37607
User-Agent: Wget/1.21.2.19-35a63-dirty
Accept: */*
Accept-Encoding: identity
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response... 127.0.0.1 - - [21/Jan/2022 21:29:43] "GET /File1 HTTP/1.1" 200 -
---response begin---
HTTP/1.1 200 OK
Server: BaseHTTP/0.6 Python/3.10.1
Date: Sat, 22 Jan 2022 02:29:43 GMT
content-type: text/plain
content-length: 24
---response end---
200 OK
Registered socket 3 for persistent reuse.
Length: 24 [text/plain]
Saving to: 'File1'
0K 100% 1.20M=0s
2022-01-21 21:29:43 (1.20 MB/s) - 'File1' saved [24/24]
URI encoding = 'ANSI_X3.4-1968'
converted 'http://www.working1.localhost:37607/File2' (ANSI_X3.4-1968) -> 'http://www.working1.localhost:37607/File2' (UTF-8)
Converted file name 'File2' (UTF-8) -> 'File2' (ANSI_X3.4-1968)
--2022-01-21 21:29:43-- http://www.working1.localhost:37607/File2
Reusing existing connection to www.working1.localhost:37607.
Reusing fd 3.
---request begin---
GET /File2 HTTP/1.1
Host: www.working1.localhost:37607
User-Agent: Wget/1.21.2.19-35a63-dirty
Accept: */*
Accept-Encoding: identity
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response... 127.0.0.1 - - [21/Jan/2022 21:29:43] "GET /File2 HTTP/1.1" 200 -
---response begin---
HTTP/1.1 200 OK
Server: BaseHTTP/0.6 Python/3.10.1
Date: Sat, 22 Jan 2022 02:29:43 GMT
content-type: text/plain
content-length: 20
---response end---
200 OK
Length: 20 [text/plain]
Saving to: 'File2'
0K 100% 1.16M=0s
2022-01-21 21:29:43 (1.16 MB/s) - 'File2' saved [20/20]
FINISHED --2022-01-21 21:29:43--
Total wall clock time: 0.03s
Downloaded: 2 files, 44 in 0s (1.18 MB/s)
Setting --no-config (noconfig) to 1
DEBUG output created by Wget 1.21.2.19-35a63-dirty on linux-gnu.
Reading HSTS entries from /build/wget-git/src/wget/testenv/Test-no_proxy-env.py-test/.wget-hsts
URI encoding = 'ANSI_X3.4-1968'
converted 'http://working2.localhost:35093/File1' (ANSI_X3.4-1968) -> 'http://working2.localhost:35093/File1' (UTF-8)
URI encoding = 'ANSI_X3.4-1968'
Converted file name 'File1' (UTF-8) -> 'File1' (ANSI_X3.4-1968)
--2022-01-21 21:29:44-- http://working2.localhost:35093/File1
Resolving nonexisting.localhost (nonexisting.localhost)... 127.0.0.1, ::1
Caching nonexisting.localhost => 127.0.0.1 ::1
Connecting to nonexisting.localhost (nonexisting.localhost)|127.0.0.1|:8080... connected.
Created socket 3.
Releasing 0x0000555def528c80 (new refcount 1).
---request begin---
GET http://working2.localhost:35093/File1 HTTP/1.1
Host: working2.localhost:35093
User-Agent: Wget/1.21.2.19-35a63-dirty
Accept: */*
Accept-Encoding: identity
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
---request end---
Proxy request sent, awaiting response...
---response begin---
HTTP/1.1 404 Not Found
Server: nginx/1.21.4
Date: Sat, 22 Jan 2022 02:29:44 GMT
Content-Type: text/html
Content-Length: 153
Connection: keep-alive
---response end---
404 Not Found
Registered socket 3 for persistent reuse.
Skipping 153 bytes of body: [<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.21.4</center>
</body>
</html>
] done.
2022-01-21 21:29:44 ERROR 404: Not Found.
URI encoding = 'ANSI_X3.4-1968'
converted 'http://working2.localhost:35093/File2' (ANSI_X3.4-1968) -> 'http://working2.localhost:35093/File2' (UTF-8)
URI encoding = 'ANSI_X3.4-1968'
Converted file name 'File2' (UTF-8) -> 'File2' (ANSI_X3.4-1968)
--2022-01-21 21:29:44-- http://working2.localhost:35093/File2
Reusing existing connection to nonexisting.localhost:8080.
Reusing fd 3.
---request begin---
GET http://working2.localhost:35093/File2 HTTP/1.1
Host: working2.localhost:35093
User-Agent: Wget/1.21.2.19-35a63-dirty
Accept: */*
Accept-Encoding: identity
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
---request end---
Proxy request sent, awaiting response...
---response begin---
HTTP/1.1 404 Not Found
Server: nginx/1.21.4
Date: Sat, 22 Jan 2022 02:29:44 GMT
Content-Type: text/html
Content-Length: 153
Connection: keep-alive
---response end---
404 Not Found
Skipping 153 bytes of body: [<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.21.4</center>
</body>
</html>
] done.
2022-01-21 21:29:44 ERROR 404: Not Found.
Running Test Test-no_proxy-env.py
/build/wget-git/src/wget/src/wget --debug --no-config http://working1.localhost:46515/File1 http://working1.localhost:46515/File2
['/build/wget-git/src/wget/src/wget', '--debug', '--no-config', 'http://working1.localhost:46515/File1', 'http://working1.localhost:46515/File2']
{'HOME': '/build/wget-git/src/wget/testenv/Test-no_proxy-env.py-test', 'http_proxy': 'nonexisting.localhost:8080', 'no_proxy': 'working1.localhost,.working2.localhost'}
Test Passed.
Running Test Test-no_proxy-env.py
/build/wget-git/src/wget/src/wget --debug --no-config http://www.working1.localhost:37607/File1 http://www.working1.localhost:37607/File2
['/build/wget-git/src/wget/src/wget', '--debug', '--no-config', 'http://www.working1.localhost:37607/File1', 'http://www.working1.localhost:37607/File2']
{'HOME': '/build/wget-git/src/wget/testenv/Test-no_proxy-env.py-test', 'http_proxy': 'nonexisting.localhost:8080', 'no_proxy': 'working1.localhost,.working2.localhost'}
Test Passed.
Running Test Test-no_proxy-env.py
/build/wget-git/src/wget/src/wget --debug --no-config http://working2.localhost:35093/File1 http://working2.localhost:35093/File2
['/build/wget-git/src/wget/src/wget', '--debug', '--no-config', 'http://working2.localhost:35093/File1', 'http://working2.localhost:35093/File2']
{'HOME': '/build/wget-git/src/wget/testenv/Test-no_proxy-env.py-test', 'http_proxy': 'nonexisting.localhost:8080', 'no_proxy': 'working1.localhost,.working2.localhost'}
Error: Return codes do not match.
Expected: 4
Actual: 8.
Traceback (most recent call last):
File "/build/wget-git/src/wget/testenv/./Test-no_proxy-env.py", line 125, in <module>
).begin ()
File "/build/wget-git/src/wget/testenv/test/http_test.py", line 41, in begin
self.do_test()
File "/build/wget-git/src/wget/testenv/test/base_test.py", line 198, in do_test
self.post_hook_call()
File "/build/wget-git/src/wget/testenv/test/base_test.py", line 217, in post_hook_call
self.hook_call(self.post_configs, 'Post Test Function')
File "/build/wget-git/src/wget/testenv/test/base_test.py", line 207, in hook_call
conf.find_conf(conf_name)(conf_arg)(self)
File "/build/wget-git/src/wget/testenv/conf/expected_ret_code.py", line 27, in __call__
raise TestFailed(failure)
exc.test_failed.TestFailed: Return codes do not match.
Expected: 4
Actual: 8
FAIL Test-no_proxy-env.py (exit status: 1)
Pinned Comments
darnir commented on 2021-11-15 18:43 (UTC)
This is a VCS tracking packaging. It doesn't need to be updated to track newer commits made to the upstream trunk.
If you update / install the package, it should always build against the latest upstream.
All packages in base-devel are expected to be installed. They will NOT be added to the makedepends.
Due to changes upstream from Wget's control, it's build process now depends on Wget :(. I've fixed the package here. That means, if Wget is not already installed from [extra], then the built version will not contain internationalization support / translations. Force a rebuild of the package after wget is already installed to get them automatically.