<?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>15687</bug_id>
          
          <creation_ts>2024-12-11 23:14:52 +0000</creation_ts>
          <short_desc>Docs builds must use buildtools on older distros</short_desc>
          <delta_ts>2024-12-23 11:15:35 +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>5.1.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>Medium+</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>5.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Halstead">mhalstead</reporter>
          <assigned_to name="Antonin Godard">antonin.godard</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>100406</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2024-12-11 23:14:52 +0000</bug_when>
    <thetext>Docs builds are using the host python when buildtools are required and failing like this.

    subprocess.run([&quot;git&quot;, &quot;show&quot;, &quot;yocto-%s&quot; % release_series[activereleases[0]]], capture_output=True, check=True)
  File &quot;/usr/lib64/python3.6/subprocess.py&quot;, line 423, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument &apos;capture_output&apos;

From:
https://valkyrie.yoctoproject.org/#/builders/34/builds/86
https://valkyrie.yoctoproject.org/#/builders/34/builds/68

We could exclude older workers from docs builds or alter the build to make sure buildtools is used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100425</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-12-12 15:44:44 +0000</bug_when>
    <thetext>May be able to fix code to use older python syntax.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100491</commentid>
    <comment_count>2</comment_count>
    <who name="Antonin Godard">antonin.godard</who>
    <bug_when>2024-12-23 11:15:35 +0000</bug_when>
    <thetext>Fixed by commit: https://git.yoctoproject.org/yocto-docs/commit/?id=28850c974a3896895bc921c094071523218d6d07.

As suggested, I changed the calls to make them backward-compatible.

Closing!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>