* [PATCH] bitbake.conf:update FETCHCMD_wget with --no-passive-ftp
@ 2019-02-22 6:03 Liu Haitao
2019-02-22 7:17 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Liu Haitao @ 2019-02-22 6:03 UTC (permalink / raw)
To: richard.purdie, openembedded-core
When fetching the source of alsa it would trigger the following WARNING:
|WARNING: alsa-lib-1.1.6-r0 do_fetch: Failed to fetch URL
|ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.6.tar.bz2, attempting MIRRORS if
|available
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.
Signed-off-by: Liu Haitao <haitao.liu@windriver.com>
---
meta/conf/bitbake.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 435646a946..357de41780 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -666,7 +666,7 @@ SRC_URI[vardepsexclude] += "\
FETCHCMD_svn = "/usr/bin/env svn --non-interactive --trust-server-cert"
FETCHCMD_cvs = "/usr/bin/env cvs"
-FETCHCMD_wget = "/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate"
+FETCHCMD_wget = "/usr/bin/env wget -t 2 -T 30 --no-passive-ftp --no-check-certificate"
FETCHCMD_bzr = "/usr/bin/env bzr"
FETCHCMD_hg = "/usr/bin/env hg"
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] bitbake.conf:update FETCHCMD_wget with --no-passive-ftp
2019-02-22 6:03 [PATCH] bitbake.conf:update FETCHCMD_wget with --no-passive-ftp Liu Haitao
@ 2019-02-22 7:17 ` Richard Purdie
2019-02-22 8:15 ` Haitaoliu
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2019-02-22 7:17 UTC (permalink / raw)
To: Liu Haitao, openembedded-core
On Fri, 2019-02-22 at 14:03 +0800, Liu Haitao wrote:
> When fetching the source of alsa it would trigger the following
> WARNING:
>
> > WARNING: alsa-lib-1.1.6-r0 do_fetch: Failed to fetch URL
> > ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.6.tar.bz2,
> > attempting MIRRORS if
> > available
>
> 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.
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?
We're trying to get away from having ftp urls in oe-core at all so
hopefully this isn't a big deal.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] bitbake.conf:update FETCHCMD_wget with --no-passive-ftp
2019-02-22 7:17 ` Richard Purdie
@ 2019-02-22 8:15 ` Haitaoliu
0 siblings, 0 replies; 3+ messages in thread
From: Haitaoliu @ 2019-02-22 8:15 UTC (permalink / raw)
To: Richard Purdie, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]
On 2019/2/22 下午3:17, Richard Purdie wrote:
> On Fri, 2019-02-22 at 14:03 +0800, Liu Haitao wrote:
>> When fetching the source of alsa it would trigger the following
>> WARNING:
>>
>>> WARNING: alsa-lib-1.1.6-r0 do_fetch: Failed to fetch URL
>>> ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.6.tar.bz2,
>>> attempting MIRRORS if
>>> available
>> 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.
> 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?
>
This change maybe make some trouble for others. But I have not found any
errors since applying the change into the latest yocto.
Each of two mode(active and passive) has its own advantages and
disadvantages. Now most servers and firewalls support passive ftp,
while the ALSA is an exception that does not support it.
> We're trying to get away from having ftp urls in oe-core at all so
> hopefully this isn't a big deal.
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.
"https://www.alsa-project.org/files/pub/lib/alsa-lib-1.1.6.tar.bz2"
thanks,
haitao
> Cheers,
>
> Richard
>
>
[-- Attachment #2: Type: text/html, Size: 3265 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-22 8:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-22 6:03 [PATCH] bitbake.conf:update FETCHCMD_wget with --no-passive-ftp Liu Haitao
2019-02-22 7:17 ` Richard Purdie
2019-02-22 8:15 ` Haitaoliu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox