<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi all<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am new to yocto and hope the mail list is the right place to ask.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">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 &#8211;D option when running bitbake -D mraa -c fetch to see the log.&nbsp; 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&nbsp; below:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">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<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>
<p class="MsoNormal"><span style="color:#1F497D">The git clone can be completed. My current setting is below. It is kind of weird. &nbsp;Why git clone can work manually but bitbake fetching would return warning and then fail.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy">https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">~/.bashrc:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export SOCKS_SERVER=proxy-png.intel.com<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export HTTP_PROXY=http://proxy-chain.intel.com:911<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export HTTPS_PROXY=https://proxy-chain.intel.com:912<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export HTTP_DIRECT=intel.com,.intel.com,10.0.0.0/8,192.168.0.0/16,localhost,127.0.0.0/8,134.134.0.0/16<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export FTP_PROXY=$HTTP_PROXY<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export ftp_proxy=$HTTP_PROXY<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export http_proxy=$HTTP_PROXY<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export https_proxy=$HTTPS_PROXY<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export NO_PROXY=$HTTP_DIRECT<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export no_proxy=$NO_PROXY<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">export GIT_PROXY_COMMAND=/home/luweizho/tool/gitproxy.sh<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">luweizho@pglvm2014-v03:~/build/ambr-yocto-build/build$ cat ~/tool/gitproxy.sh<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">#!/bin/sh<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D">exec socat stdio SOCKS:$SOCKS_SERVER:$1:$2<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The following is the warning message when running bitbake -D mraa -c fetch. After the warning, bitbake would try the mirror link by http and fails.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#1F497D">DEBUG: Fetcher accessed the network with the command
</span><span style="font-size:9.0pt;color:red">git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/intel-iot-devkit/mraa.git</span><span style="font-size:9.0pt;color:#1F497D"> /home/luweizho/build/ambr-yocto-build/build/downloads/git2/github.com.intel-iot-devkit.mraa.git<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#1F497D">DEBUG: </span><span style="font-size:9.0pt;color:red">Running export no_proxy=&quot;intel.com,.intel.com,10.0.0.0/8,192.168.0.0/16,localhost,127.0.0.0/8,134.134.0.0/16&quot;; export NO_PROXY=&quot;intel.com,.intel.com,10.0.0.0/8,192.168.0.0/16,localhost,127.0.0.0/8,134.134.0.0/16&quot;;
 export ftp_proxy=&quot;<a href="http://proxy-chain.intel.com:911"><span style="color:#0563C1">http://proxy-chain.intel.com:911</span></a>&quot;; export FTP_PROXY=&quot;<a href="http://proxy-chain.intel.com:911"><span style="color:#0563C1">http://proxy-chain.intel.com:911</span></a>&quot;;
 export https_proxy=&quot;<a href="https://proxy-chain.intel.com:912"><span style="color:#0563C1">https://proxy-chain.intel.com:912</span></a>&quot;; export HTTPS_PROXY=&quot;<a href="https://proxy-chain.intel.com:912"><span style="color:#0563C1">https://proxy-chain.intel.com:912</span></a>&quot;;
 export http_proxy=&quot;<a href="http://proxy-chain.intel.com:911"><span style="color:#0563C1">http://proxy-chain.intel.com:911</span></a>&quot;; export HTTP_PROXY=&quot;<a href="http://proxy-chain.intel.com:911"><span style="color:#0563C1">http://proxy-chain.intel.com:911</span></a>&quot;;
 export PATH=&quot;/home/luweizho/build/ambr-yocto-build/build/tmp/sysroots/x86_64-linux/usr/bin/python-native:/home/luweizho/build/ambr-yocto-build/scripts:/home/luweizho/build/ambr-yocto-build/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/luweizho/build/ambr-yocto-build/build/tmp/sysroots/intel-corei7-64/usr/bin/crossscripts:/home/luweizho/build/ambr-yocto-build/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/luweizho/build/ambr-yocto-build/build/tmp/sysroots/x86_64-linux/usr/bin:/home/luweizho/build/ambr-yocto-build/build/tmp/sysroots/x86_64-linux/sbin:/home/luweizho/build/ambr-yocto-build/build/tmp/sysroots/x86_64-linux/bin:/home/luweizho/build/ambr-yocto-build/scripts:/home/luweizho/build/ambr-yocto-build/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games&quot;;
 export HOME=&quot;/home/luweizho&quot;; 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<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#1F497D">WARNING: Failed to fetch URL git://github.com/intel-iot-devkit/mraa.git;protocol=git;rev=ba5318fee92e63e1481ad1392ec56e7a6ebaf4fe, attempting MIRRORS if available<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="color:#1F497D">Best Regards<o:p></o:p></span></a></p>
<p class="MsoNormal"><span style="color:#1F497D">Luwei<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>