<?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>13259</bug_id>
          
          <creation_ts>2019-04-02 15:16:23 +0000</creation_ts>
          <short_desc>Switch SDK to be a self extracting python script instead of a self extracting shell script</short_desc>
          <delta_ts>2025-05-13 12:02:14 +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>0.0.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Watt">JPEWhacker</reporter>
          <assigned_to name="Colin McAllister">colinmca242</assigned_to>
          <cc>colinmca242</cc>
    
    <cc>kergoth</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83408</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2019-04-02 15:16:23 +0000</bug_when>
    <thetext>The current SDKs generated by Yocto are self extracting shell scripts, but they invoke a number of python scripts as part of the extraction process. Reworking the entire process in Python should aid in maintenance. In addition to this, a python script would be more portable to other platforms (e.g. Windows) than a shell script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93913</commentid>
    <comment_count>1</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2022-08-25 15:38:54 +0000</bug_when>
    <thetext>This is a good idea. We could use PyOxidizer or similar to make it truly self-contained, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93915</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2022-08-25 15:45:26 +0000</bug_when>
    <thetext>My actual thought on how to do this is a bit simpler: There is a little know but very useful behavior of python that if you pass it a zip file that contians a file name __main__.py, it will extract the archive and execute the __main__.py program. These files are commonly given a .pyz extension in Windows, and for Unix, you can prefix the zip file with a &quot;#! /usr/bin/env python3&quot; because of how zip files are constructed (the TOC is actually at the end of the file).

The idea would be to include the normal SDK tar file in the zip archive, then rewrite the relocation portions into python and put the extraction + relocation in __main__.py.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95438</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-04-21 18:45:45 +0000</bug_when>
    <thetext>Moved en masse from 4.2 to 4.3 by Randy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100078</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-10-31 15:09:20 +0000</bug_when>
    <thetext>Bulk move of 5.1 bugs to 5.2. -- YP bug review (Randy)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>