<?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>13832</bug_id>
          
          <creation_ts>2020-03-12 15:42:38 +0000</creation_ts>
          <short_desc>Add script to setup buildtools-extended-tarball</short_desc>
          <delta_ts>2020-04-08 17:55:02 +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>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>3.1</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>kai.kang</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86712</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-12 15:42:38 +0000</bug_when>
    <thetext>For distros where buildtools-extended-tarball is required, such as CentOS-7 (because the default buildtools are too old), we need a script to make it straightforward for users to install. While it is tempting to have this be installed by bitbake, as is done with uninative, the consensus is that it must already be present before the oe-init-buildenv script is run. Hence the need for a standalone script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86714</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-12 15:47:57 +0000</bug_when>
    <thetext>Reference to original buildtools-extended-tarball bug:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13714</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86813</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-26 04:30:31 +0000</bug_when>
    <thetext>Patch submitted:
https://patchwork.openembedded.org/patch/171323/

Tested for the example usage in the commit log (and in the script itself) on CentOS-7 and Fedora-29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86814</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-26 04:38:44 +0000</bug_when>
    <thetext>Also on poky-contrib:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/install-buildtools_13832

NOTE:
Because os.system or subprocess calls run in a new session, it does not appear possible to have this script run the environment setup script in the shell session in which it was called. The user will still have to source the environment script to make the buildtools enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86827</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-26 14:55:55 +0000</bug_when>
    <thetext>The default for the installer is to install in /opt/poky/&lt;installer-version&gt;, this is not desired since it requires the user to put in their sudo password. Instead, like what is done on the AutoBuilder, install in a &quot;buildtools&quot; directory next to the &quot;scripts&quot; directory by default (users can set directory with the -d/--directory argument).

The error in sanity checker that says &quot;your version of tar is too old&quot; (paraphrasing) should be updated to recommend running the install-buildtools script.

Typo in the first patch in the example usage (--install-version should be --installer-version) and also the commit message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86830</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-26 15:12:44 +0000</bug_when>
    <thetext>The &quot;buildtools&quot; directory that is going to be used/created by default needs to be added to .gitignore</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86832</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-26 15:17:02 +0000</bug_when>
    <thetext>./meta/classes/sanity.bbclass:        return &quot;Your version of tar is older than 1.28 and does not have the support needed to enable reproducible builds. Please install a newer version of tar (you could use the projects buildtools-tarball from our last release).\n&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86834</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-26 15:25:28 +0000</bug_when>
    <thetext>message in sanity.bbclass if git is too old or tar is too old

add something to build-environnment checks earlier, where it checks if the python version is too old (&lt;3.5)

gcc &gt; 5.0, RP thinks there is a check somewhere the version just needs to be bumped. Look in the history of sanity.bbclass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86874</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-30 19:51:44 +0000</bug_when>
    <thetext>The original patch has been merged, but the additional changes discussed above are now submitted:
https://patchwork.openembedded.org/series/23493/

Also available on openembedded-core-contrib:
https://git.openembedded.org/openembedded-core-contrib/log/?h=timo/install-buildtools_13832_fixes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86878</commentid>
    <comment_count>9</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-03-31 20:06:29 +0000</bug_when>
    <thetext>v2 patches submitted (addressing review comments, fixes, and bumping to M3 release by default):
https://patchwork.openembedded.org/series/23509/

Also available on openembedded-core-contrib:
https://git.openembedded.org/openembedded-core-contrib/log/?h=timo/install-buildtools_13832_fixes_v2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86910</commentid>
    <comment_count>10</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-04-03 23:16:53 +0000</bug_when>
    <thetext>Thanks to testing by and input from Andre McCurdy, we have refactored the script to work with Python 3.4+

Patch submitted:
https://patchwork.openembedded.org/patch/171593/

Also available on openembedded-core-contrib:
https://git.openembedded.org/openembedded-core-contrib/log/?h=timo/install-buildtools_py34</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86937</commentid>
    <comment_count>11</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-04-08 17:55:02 +0000</bug_when>
    <thetext>merged to dunfell/3.1.rc1. If there are any new issues, please file new bugs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>