<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1142</bug_id>
          
          <creation_ts>2011-06-06 13:40:40 +0000</creation_ts>
          <short_desc>git fetcher error when wrong protocol is specified is not helpful</short_desc>
          <delta_ts>2011-06-22 10:18:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>2011-06-20: Patch submitted to bitbake-devel list</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14190</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-06-06 13:40:40 +0000</bug_when>
    <thetext>Phil Bludnell noted that when you specify the wrong protocol in your recipe for a git-based SRC_URI, the error message is not helpful:

&quot;If you fail to specify the right protocol for the
git fetcher then you end up with something like:

ERROR: Function &apos;Fetcher failure for URL: &apos;None&apos;. Fetch command export
HOME=&quot;/home/pb&quot;; export
GIT_CONFIG=&quot;/home/pb/oe/build/tmp-eglibc/sysroots/x86_64-linux/usr/etc/gitconfig&quot;; export PATH=&quot;...&quot;; git ls-remote rsync://gitolite@cam-git/pb/linux-2.6.35 master failed with signal 128, output:
fatal: Could not make temporary directory: No such file or directory
&apos; failed

Usually the value of $PATH is about half a screenful so this error looks
more monstrous in real life than it probably does above, and it isn&apos;t
immediately apparent that the &quot;no such file or directory&quot; thing is a
result of having tried to fetch with the wrong URI scheme. 

This is made slightly more irritating by the fact that there isn&apos;t much
consistency between the different fetchers about the URI structure; some
of them want a &quot;proto&quot; attribute whereas others (including git) want
&quot;protocol&quot;, so it&apos;s harder than perhaps it ought to be to remember what
the correct naming is.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14384</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-06-22 10:18:49 +0000</bug_when>
    <thetext>Fixed in Poky master and bitbake master:

http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=48cd942be181f23e3b7d7cff1753013ed36c9486

http://git.openembedded.org/cgit.cgi/bitbake/commit/?id=a2a29b72275ab03a263f4479a590b92111a0d6a8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>