<?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>14406</bug_id>
          
          <creation_ts>2021-05-23 06:10:47 +0000</creation_ts>
          <short_desc>Ubuntu 16.04 Builder is not able to clone when using buildtools tarball</short_desc>
          <delta_ts>2021-05-27 15:09:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</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="Khem Raj">raj.khem</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>pidge</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90466</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2021-05-23 06:10:47 +0000</bug_when>
    <thetext>There is one recipe in meta-oe sdbus-c++ which fetches from git during do_configure ( I know its bad but thats not the point ), the git fetch fails because its trying to find CAFile in path where it does not exist in the buildtools tarball install location. when using git. I am sure one can reproduce this by sourcing the buildtools tarball env on the builder and then doing any git clone operation over htttps.


| [1/9] Performing download step (git clone) for &apos;googletest-populate&apos;
| Cloning into &apos;googletest-src&apos;...
| fatal: unable to access &apos;https://github.com/google/googletest.git/&apos;: error setting certificate verify locations:  CAfile: /opt/poky/3.2+snapshot/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt CApath: none
| Cloning into &apos;googletest-src&apos;...
| fatal: unable to access &apos;https://github.com/google/googletest.git/&apos;: error setting certificate verify locations:  CAfile: /opt/poky/3.2+snapshot/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt CApath: none
| Cloning into &apos;googletest-src&apos;...
| fatal: unable to access &apos;https://github.com/google/googletest.git/&apos;: error setting certificate verify locations:  CAfile: /opt/poky/3.2+snapshot/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt CApath: none
| -- Had to git clone more than once:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90467</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2021-05-23 14:40:05 +0000</bug_when>
    <thetext>I think buildtools tarball should include ca-certificates package as well for https to work</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90498</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-27 14:55:05 +0000</bug_when>
    <thetext>Trying to clone during do_configure should NOT work.
Build tools tarball does include the CA certs. 
bitbake is clearing env vars it breaks for you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90500</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-05-27 14:56:58 +0000</bug_when>
    <thetext>buildtools-tarball already contains ca-certs. The environment script for buildtools-tarball sets up the pieces needed to enable this to work and this is preserved in do_fetch. The envvars are not preserved for other tasks, hence this error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90504</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2021-05-27 15:09:32 +0000</bug_when>
    <thetext>yes the bug was not about the package, we all know what it is doing. It was more for buildtools tarball, if it was missing the certs or not, so it seems we are good on tarball side so its fine to close it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>