Error fetching binhost package info from
Is this a mistake on the website, or do I need to change something in the configuration?
Thanks,
Kai
Retired Dev
Зарегистрирован: 14 мар 2003
Сообщений: 9362
Откуда: beyond the rim
Добавлено: ср сен 05, 2012 10:43 am Заголовок сообщения: | |
Is your python built with USE=ssl enabled? (just random guessing here) |
n00b
Зарегистрирован: 01 сен 2011
Сообщений: 46
Добавлено: ср сен 05, 2012 3:54 pm Заголовок сообщения: | |
It is compiled with ssl, both in version 2.7 and 3.2. Any other ideas? What should my config contain except those binhost lines? Kai |
Retired Dev
Зарегистрирован: 14 мар 2003
Сообщений: 9362
Откуда: beyond the rim
Добавлено: вт сен 25, 2012 8:33 am Заголовок сообщения: | |
Checking the relevant python documentation doesn’t say anything about FTPS support in the used urllib module (the urllib2 module mentions it at least). One thing you could try is to define a FETCHCOMMAND_FTPS variable in your make.conf with a command that supports ftps:// urls (see FETCHCOMMAND documentation/examples for variables supported) as portage should use that if urlopen fails. |
n00b
Зарегистрирован: 01 сен 2011
Сообщений: 46
Добавлено: вт сен 25, 2012 12:24 pm Заголовок сообщения: | |||||
I have tried that with the following lines in make.conf (replacing the binhost with the correct details):
However, this fails with the following:
Note it does not suggest the binary (which is definitely available) so it must be falling back to another source (probably the official mirrors). Fetching with cURL into a normal directory works fine. I’m not sure what I’m missing or whether portage simply does not support this. I’ve been considering a switch to Paludis for this reason, do you have any idea whether this would help? Kai |
Retired Dev
Зарегистрирован: 14 мар 2003
Сообщений: 9362
Откуда: beyond the rim
Добавлено: вт сен 25, 2012 12:53 pm Заголовок сообщения: | |
Yeah, was afraid of it insisting on the Packages file and not using FETCHCOMMAND for that. Could file an enhancement request at bugs.gentoo.org about that (supporting FETCHCOMMAND for Packages file and/or using urllib2). |
n00b
Зарегистрирован: 01 сен 2011
Сообщений: 46
Добавлено: вт сен 25, 2012 2:58 pm Заголовок сообщения: | |
To me it looked like it was fetching the packages file correctly, since it shows a curl-style progress indicator. I’ve looked at the portage source but have been unable to find where it tries to get the TIMESTAMP header from. Do you have any other ideas? If not, I’ll go file that bug report. Kai |
n00b
Зарегистрирован: 01 сен 2011
Сообщений: 46
Добавлено: вт сен 25, 2012 10:40 pm Заголовок сообщения: | |||
Further errors when using —pretend :
I’m tempted to open a request for general cURL support, but I suppose that might not get a very good response since the developers seem to have decided on wget. Any ideas on how this would work with Paludis? Kai |
Retired Dev
Зарегистрирован: 14 мар 2003
Сообщений: 9362
Откуда: beyond the rim
Добавлено: чт сен 27, 2012 6:52 am Заголовок сообщения: | |
Curl is just as supported as wget, the latter is simply the default for fetching distfiles that’s all. For binpkgs the default is to use pythons urllib and only if that fails falling back to FETCHCOMMAND_*. I don’t know how well tested the latter is though. Maybe adjusting permissions on $DISTDIR helps already. If you want to look at the relevant code see http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=blob;f=pym/portage/dbapi/bintree.py starting at the for-loop around line 830, and more specifically the else-clause and following code around line 900. |
Список форумов: Gentoo Forums | Часовой пояс: GMT | |
Страница 1 из 1 |
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете голосовать в опросах |
Retired Dev
Зарегистрирован: 14 мар 2003
Сообщений: 9362
Откуда: beyond the rim
Добавлено: ср сен 05, 2012 10:43 am Заголовок сообщения: | |
Is your python built with USE=ssl enabled? (just random guessing here) |
n00b
Зарегистрирован: 01 сен 2011
Сообщений: 46
Добавлено: ср сен 05, 2012 3:54 pm Заголовок сообщения: | |
It is compiled with ssl, both in version 2.7 and 3.2. Any other ideas? What should my config contain except those binhost lines? Kai |
Retired Dev
Зарегистрирован: 14 мар 2003
Сообщений: 9362
Откуда: beyond the rim
Добавлено: вт сен 25, 2012 8:33 am Заголовок сообщения: | |
Checking the relevant python documentation doesn’t say anything about FTPS support in the used urllib module (the urllib2 module mentions it at least). One thing you could try is to define a FETCHCOMMAND_FTPS variable in your make.conf with a command that supports ftps:// urls (see FETCHCOMMAND documentation/examples for variables supported) as portage should use that if urlopen fails. |
n00b
Зарегистрирован: 01 сен 2011
Сообщений: 46
Добавлено: вт сен 25, 2012 12:24 pm Заголовок сообщения: | |||||
I have tried that with the following lines in make.conf (replacing the binhost with the correct details):
However, this fails with the following:
Note it does not suggest the binary (which is definitely available) so it must be falling back to another source (probably the official mirrors). Fetching with cURL into a normal directory works fine. I’m not sure what I’m missing or whether portage simply does not support this. I’ve been considering a switch to Paludis for this reason, do you have any idea whether this would help? Kai |
Retired Dev
Зарегистрирован: 14 мар 2003
Сообщений: 9362
Откуда: beyond the rim
Добавлено: вт сен 25, 2012 12:53 pm Заголовок сообщения: | |
Yeah, was afraid of it insisting on the Packages file and not using FETCHCOMMAND for that. Could file an enhancement request at bugs.gentoo.org about that (supporting FETCHCOMMAND for Packages file and/or using urllib2). |
n00b
Зарегистрирован: 01 сен 2011
Сообщений: 46
Добавлено: вт сен 25, 2012 2:58 pm Заголовок сообщения: | |
To me it looked like it was fetching the packages file correctly, since it shows a curl-style progress indicator. I’ve looked at the portage source but have been unable to find where it tries to get the TIMESTAMP header from. Do you have any other ideas? If not, I’ll go file that bug report. Kai |
n00b
Зарегистрирован: 01 сен 2011
Сообщений: 46
Добавлено: вт сен 25, 2012 10:40 pm Заголовок сообщения: | |||
Further errors when using —pretend :
I’m tempted to open a request for general cURL support, but I suppose that might not get a very good response since the developers seem to have decided on wget. Any ideas on how this would work with Paludis? Kai |
Retired Dev
Зарегистрирован: 14 мар 2003
Сообщений: 9362
Откуда: beyond the rim
Добавлено: чт сен 27, 2012 6:52 am Заголовок сообщения: | |
Curl is just as supported as wget, the latter is simply the default for fetching distfiles that’s all. For binpkgs the default is to use pythons urllib and only if that fails falling back to FETCHCOMMAND_*. I don’t know how well tested the latter is though. Maybe adjusting permissions on $DISTDIR helps already. If you want to look at the relevant code see http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=blob;f=pym/portage/dbapi/bintree.py starting at the for-loop around line 830, and more specifically the else-clause and following code around line 900. |
Список форумов: Gentoo Forums | Часовой пояс: GMT | |
Страница 1 из 1 |
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете голосовать в опросах |