[PATCH] option to prefer HTTP for downloads
Yann E MORIN
yann.morin.1998@orange.fr
Fri Apr 11 14:27:00 GMT 2008
Matthias,
"Matthias Kaehlcke" <matthias@kaehlcke.net> wrote:
> when trying to build a toolchain with crosstool-ng, the process
> got stuck in the download of the kernel headers from the kernel.org
> FTP server. i tried the same from another box in another network
> without problems. i suppose that the firewall of the corporate network
> is restricting the access to the FTP server.
I have a pending change in my local tree that will add setting http_proxy
and ftp_proxy in the environment for those using proxies. Also, using
tsocks should be added as well...
When you say "got stuck", did it really got stuck and nothing happened,
or did the build failed?
> here is a small patch that adds the option to download the tarballs
> preferably from HTTP servers.
You mismatched spaces vs. tabs, but looks good. I will apply a slightly
modified version of your patch with space fixes and something like the
following here and there:
[ "${CT_PREFER_HTTP_DOWNLOAD}" = "y" ] && scheme=http || scheme=ftp
...
CT_GetFile something "${scheme}://some.place/some/dir"
That should be easier to maintain the list of URIs (no need to duplicate).
Or we could simply try each scheme in turn, until one succeeds.
Thank you for your input!
Regards,
Yann E. MORIN.
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list