Both bootstrap-bash.sh and bootstrap-prefix.sh try to fetch naively from http://distfiles.gentoo.org/${FOO}. e.g. in bug 921535, we had http://mirrors.tuna.tsinghua.edu.cn/gentoo/distfiles/m4-1.4.19.tar.xz. We need to fetch layout.conf from the mirror we're using and b2sum the filename accordingly (and cut it) if it uses the new GLEP 75 layout.
better use the proxy then when b2sum is not available...
I don't quite get this, the redirectory proxy is already in the default list (DISTFILES_G_O). % curl -v "http://distfiles.prefix.bitzolder.nl/distfiles/m4-1.4.19.tar.xz" * Host distfiles.prefix.bitzolder.nl:80 was resolved. > GET /distfiles/m4-1.4.19.tar.xz HTTP/1.1 > Host: distfiles.prefix.bitzolder.nl > User-Agent: curl/8.6.0 > Accept: */* > < HTTP/1.1 302 Look Elsewhere < Server: nginx/1.25.4 < Date: Sun, 18 Feb 2024 20:00:27 GMT < Transfer-Encoding: chunked < Connection: keep-alive < Keep-Alive: timeout=20 < Location: http://distfiles.gentoo.org/distfiles/58/m4-1.4.19.tar.xz < * Leftovers after chunking: 5 bytes * Connection #0 to host distfiles.prefix.bitzolder.nl left intact So the we should fall-back to GLEP-75 layout urls.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7cda6224d12a9cf15358bf4c610e0befdb9a894e commit 7cda6224d12a9cf15358bf4c610e0befdb9a894e Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2024-02-18 20:03:10 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2024-02-18 20:03:10 +0000 scripts/bootstrap-bash: default to prefix redirector for GLEP 57 Bug: https://bugs.gentoo.org/921541 Signed-off-by: Fabian Groffen <grobian@gentoo.org> scripts/bootstrap-bash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)