[bitbake-devel] bitbake fetching fails on git repo but can manually git clone

Paul Eggleton paul.eggleton at linux.intel.com
Mon Mar 21 01:47:21 UTC 2016


Hi Luwei,

On Fri, 18 Mar 2016 08:32:04 Zhou, Luwei wrote:
> I am new to yocto and hope the mail list is the right place to ask.
> 
> I am using jethro 2.0 to build my yocto system. I have met some weird issue
> when bitbake fetching source. When I try bitbake image, there would be
> fetching error caused by some components(mraa etc). I have tried enabling
> -D option when running bitbake -D mraa -c fetch to see the log.  I can see
> bitbake will first trying using git clone to fetch the code and failed(with
> a return of warning) and then trying mirror still failed with error.
> However, When I manually run the command  below:
> 
> git -c core.fsyncobjectfiles=0 clone --bare --mirror
> git://github.com/intel-iot-devkit/mraa.git
> /home/luweizho/build/ambr-yocto-build/build/downloads/git2/github.com.intel
> -iot-devkit.mraa.git
> 
> The git clone can be completed. My current setting is below. It is kind of
> weird.  Why git clone can work manually but bitbake fetching would return
> warning and then fail. I have checked the wiki below and didn't find out
> the reason.
> https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy

I've just noticed this page is significantly out-of-date and have updated it.
 
> My ~/.bashrc proxy settingis:
> ...

I suspect the reason this is failing is that SOCKS_SERVER isn't being allowed 
through into the environment where the fetcher is running. However, instead of 
fixing that I would suggest using our git proxy script (scripts/oe-git-proxy) 
and setting ALL_PROXY instead of SOCKS_SERVER (the syntax is slightly different 
though, see the updated wiki page or the script file itself for details).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the bitbake-devel mailing list