Summary: | sys-apps/portage: emerge should use FETCHCOMMAND when downloading binary packages | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Jason Waldhelm <jason> |
Component: | Core - Configuration | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | 2.2 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jason Waldhelm
2011-06-13 18:15:17 UTC
The binhost code doesn't use FETCHCOMMAND to fetch the package metadata. Instead, it uses python's urlopen function, so maybe that's that source of your trouble. When actually fetching the binary packages themselves (not the metadata), FETCHCOMMAND is use. Then has something changed in the handling of this between 2.2.0_alpha6 and _alpha40? I have machines using the same BINHOST configuration on _alpha6 that work just fine. Nothing has really changed. However, this fallback code was added which calls FETCHCOMMAND_$PROTOCOL if urlopen fails: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=53f096c5d72dd15336fdf921f29ceae9b5842148 If the behavior has changed, it might be due to upgrading to a new version of python with different urlopen behavior. The working one is on python-2.6 and the "broken" is on python-2.7 As a workaround, you might be able to use the FETCHCOMMAND_$PROTOCOL fallback that I mentioned in comment #3. In order to do that, you can define FETCHCOMMAND_HTTP=${FETCHCOMMAND} in make.conf (or do that for whatever protocol you happen to be using). I must not be doing something properly. I added to make.conf: FETCHCOMMAND_FTP=${FETCHCOMMAND} and added "--bind-address=172.31.1.1" to FETCHCOMMAND, yet still have problems. I'm not sure I'm understanding how to set FETCHCOMMAND_* correctly. FETCHCOMMAND has been mostly ignored since we added Package index support in 2007: https://gitweb.gentoo.org/proj/portage.git/commit/?id=00152eff9e23a6a6f0efb226c3f234bcd9c20865 For awhile we did use FETCHCOMMAND_HTTPS for versions of python that did not support certificate/hostname verification (bug 668302): https://gitweb.gentoo.org/proj/portage.git/commit/?id=b5969af9f575e4e4b669f44e76ad01f0dbc2dd27 Marking as a duplicate of bug 668302 since there's newer discussion there. *** This bug has been marked as a duplicate of bug 668302 *** |