<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 2019/2/22 下午3:17, Richard Purdie
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:939bc06d030a91fc7f2376171997fdd010124b5d.camel@linuxfoundation.org">
<pre class="moz-quote-pre" wrap="">On Fri, 2019-02-22 at 14:03 +0800, Liu Haitao wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">When fetching the source of alsa it would trigger the following
WARNING:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">WARNING: alsa-lib-1.1.6-r0 do_fetch: Failed to fetch URL
<a class="moz-txt-link-freetext" href="ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.6.tar.bz2">ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.6.tar.bz2</a>,
attempting MIRRORS if
available
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Bitbake would use wget with "--no-passive" to fetch the source.
Behind most firewall and NAT
configurations it could work well.However, in some rare firewall
configurations,
active FTP actually works when passive FTP doesn't.
So disable the use of the passive FTP transfer mode for wget.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
As you say, its much more likely that passive ftp would work than
active ftp, so this change would make things worse for more people?
</pre>
</blockquote>
<p><span><span><span>This change maybe make some trouble for others.
But I have not found any errors since applying the change
into the latest yocto.<br>
</span></span></span></p>
<p><span> </span><span><span>Each of two mode(active and passive)
has its own </span><span id="tran_2_5" class=""></span><span></span><span
id="tran_2_6" class=""></span><span>advantages and
disadvantages</span><span>. Now most servers and firewalls
support passive ftp,</span></span></p>
<p><span><span> while the ALSA is an exception that does not support
it. <br>
</span></span></p>
<p><span><span></span></span></p>
<blockquote type="cite"
cite="mid:939bc06d030a91fc7f2376171997fdd010124b5d.camel@linuxfoundation.org">
<pre class="moz-quote-pre" wrap="">
We're trying to get away from having ftp urls in oe-core at all so
hopefully this isn't a big deal.
</pre>
</blockquote>
<p>Thanks for your reminding, I could try to use https url instead
of ftp url in alsa-lib_1.1.6.bb. The alsa also provides the HTTP
server for downing the packages.
<a class="moz-txt-link-rfc2396E" href="https://www.alsa-project.org/files/pub/lib/alsa-lib-1.1.6.tar.bz2">"https://www.alsa-project.org/files/pub/lib/alsa-lib-1.1.6.tar.bz2"</a>
<br>
</p>
<p>thanks,</p>
<p>haitao<br>
</p>
<blockquote type="cite"
cite="mid:939bc06d030a91fc7f2376171997fdd010124b5d.camel@linuxfoundation.org">
<pre class="moz-quote-pre" wrap="">
Cheers,
Richard
</pre>
</blockquote>
</body>
</html>