<?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>2042</bug_id>
          
          <creation_ts>2012-02-29 01:00:40 +0000</creation_ts>
          <short_desc>GIT proxy configuration broken</short_desc>
          <delta_ts>2012-03-01 16:36:52 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Inaky Perez-Gonzalez">inaky.perez-gonzalez</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>18794</commentid>
    <comment_count>0</comment_count>
    <who name="Inaky Perez-Gonzalez">inaky.perez-gonzalez</who>
    <bug_when>2012-02-29 01:00:40 +0000</bug_when>
    <thetext>SOCKS proxy specification with git was using conflicting methods and
thus was failing when mixed SOCKS needs were in place (requiring no
proxy for some hosts and proxy for the rest)L

- GIT_PROXY_COMMAND is an environment variable GIT uses to OVERRIDE
  all proxy configuration in ~/.gitconfig or any other gitconfig. By
  using it to configure, it was breaking havoc on site git
  configuration or the one generated by bitbake in tmp/.

  Renamed to OE_GIT_PROXY_COMMAND in
  bitbake/lib/bb/fetch*/__init__.py, meta-yocto/conf/site.conf.sample
  (with a doc tidbit on the name chosen), meta/classes/base.bbclass.

- The gitconfig generated by bitbake was wrong. There was a typo error
  (gitproxy vs gitProxy), thus all lines were being ignored. Fixed in
  meta/classes/base.bbclass.

- The gitconfig generated was being placed in
  ${STAGING_DIR_NATIVE}/usr/etc/gitconfig; git was looking for it in
  ${STAGING_DIR_NATIVE}/etc/gitconfig. Fixed that in
  meta/classes/base.bbclass, at the same time creating a
  GIT_CONFIG_PATH variable, since it is also referenced in
  generate_git_config() and have all instances refer to that.


Fix at

http://otcgit.jf.intel.com/?p=inaky/ccd-yocto.git;a=patch;h=2905fdeb4ed38499b172ea3ec68eaca2a1fb049c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18806</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-02-29 10:43:09 +0000</bug_when>
    <thetext>I think the trouble there is we did two different things with the same variable name unintentionally. I suspect your patch is fine without the changes in bitbake&apos;s exportvars list.

If GIT_PROXY_COMMAND is set, we likely do really want to override all of gits proxy settings. I think the OE_GIT_PROXY_COMMAND makes sense where we want to use the command in our own .gitconfig. 

Could you test if this all works without the changes to the two bitbake files? If so I&apos;ll take that patch...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18807</commentid>
    <comment_count>2</comment_count>
    <who name="Inaky Perez-Gonzalez">inaky.perez-gonzalez</who>
    <bug_when>2012-02-29 18:31:41 +0000</bug_when>
    <thetext>Just to confirm, the bitbake files are the bitbake/lib/fetch*/__init__.py files, correct?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18808</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-02-29 18:37:39 +0000</bug_when>
    <thetext>Correct, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18810</commentid>
    <comment_count>4</comment_count>
    <who name="Inaky Perez-Gonzalez">inaky.perez-gonzalez</who>
    <bug_when>2012-02-29 20:08:54 +0000</bug_when>
    <thetext>It did work, new patch:

http://otcgit.jf.intel.com/?p=inaky/ccd-yocto.git;a=patch;h=ef9d924f3216811b0fb1a300fa12d4cde18816eb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18827</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-01 16:36:52 +0000</bug_when>
    <thetext>Fixed in master with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7bb36e5da0d28404d7b272135045cdb5cb160472</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>