<?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>15617</bug_id>
          
          <creation_ts>2024-10-10 13:08:24 +0000</creation_ts>
          <short_desc>Conflict between generated pyc files and shipped pyc files in sysroot</short_desc>
          <delta_ts>2026-01-29 15:58:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</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>normal</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</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>99814</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-10-10 13:08:24 +0000</bug_when>
    <thetext>Seen during oe-selftest-centos on alma9-vk-2

ERROR: ovmf-edk2-stable202408-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_func_python() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/meta/classes-global/staging.bbclass&apos;, lineno: 624, function: extend_recipe_sysroot
     0620:
     0621:    # Handle deferred binfiles
     0622:    for l in binfiles:
     0623:        (targetdir, dest) = binfiles[l]
 *** 0624:        staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0625:
     0626:    bb.note(&quot;Installed into sysroot: %s&quot; % str(msg_adding))
     0627:    bb.note(&quot;Skipping as already exists in sysroot: %s&quot; % str(msg_exists))
     0628:
File: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/meta/classes-global/staging.bbclass&apos;, lineno: 165, function: staging_copyfile
     0161:        os.symlink(linkto, dest)
     0162:        #bb.warn(c)
     0163:    else:
     0164:        try:
 *** 0165:            os.link(c, dest)
     0166:        except OSError as err:
     0167:            if err.errno == errno.EXDEV:
     0168:                bb.utils.copyfile(c, dest)
     0169:            else:
Exception: FileExistsError: [Errno 17] File exists: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-78767/tmp/sysroots-components/x86_64/ovmf-native/usr/bin/edk2_basetools/BaseTools/Source/Python/build/__pycache__/buildoptions.cpython-39.pyc&apos; -&gt; &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-78767/tmp/work/core2-64-poky-linux/ovmf/edk2-stable202408/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/build/__pycache__/buildoptions.cpython-39.pyc&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99825</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-10-10 15:04:33 +0000</bug_when>
    <thetext>We should not be shipping native .pyc files, since they can be built by host python.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99916</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-10-17 15:11:04 +0000</bug_when>
    <thetext>We fixed immediate ovmf issue: https://git.yoctoproject.org/poky/commit/?id=a375e2d35dbf2c7b32a3640a160244b3c689c02e so we can drop to medium+</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99919</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-10-17 15:13:00 +0000</bug_when>
    <thetext>Generalising the summary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104102</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-29 15:58:31 +0000</bug_when>
    <thetext>Not AB-INT but could still be a problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>