Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921541 - bootstrap-bash.sh, bootstrap-prefix.sh: needs porting to GLEP 75
Summary: bootstrap-bash.sh, bootstrap-prefix.sh: needs porting to GLEP 75
Status: CONFIRMED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-07 08:11 UTC by Sam James
Modified: 2024-02-18 20:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-07 08:11:19 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2024-01-12 15:37:41 UTC
better use the proxy then when b2sum is not available...
Comment 2 Fabian Groffen gentoo-dev 2024-02-18 20:01:28 UTC
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.
Comment 3 Larry the Git Cow gentoo-dev 2024-02-18 20:03:30 UTC
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(-)