<?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>16315</bug_id>
          
          <creation_ts>2026-06-15 08:39:27 +0000</creation_ts>
          <short_desc>AB-INT: do_create_recipe_spdx: cp: cannot stat &apos;./*&apos;: No such file or directory</short_desc>
          <delta_ts>2026-06-18 14:36:07 +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>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>richard.purdie</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>105866</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-06-15 08:39:27 +0000</bug_when>
    <thetext>We got a job were all steps failed several time because of this error, on various recipes.

ERROR: gettext-minimal-native-1.0-r0 do_create_recipe_spdx: 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:sstate_task_postfunc(d)
     0003:
File: &apos;/srv/pokybuild/yocto-worker/poky-tiny/build/layers/openembedded-core/meta/classes-global/sstate.bbclass&apos;, lineno: 782, function: sstate_task_postfunc
     0778:
     0779:    sstateinst = d.getVar(&quot;SSTATE_INSTDIR&quot;)
     0780:    d.setVar(&apos;SSTATE_FIXMEDIR&apos;, shared_state[&apos;fixmedir&apos;])
     0781:
 *** 0782:    sstate_installpkgdir(shared_state, d)
     0783:
     0784:    bb.utils.remove(d.getVar(&quot;SSTATE_BUILDDIR&quot;), recurse=True)
     0785:}
     0786:sstate_task_postfunc[dirs] = &quot;${WORKDIR}&quot;
File: &apos;/srv/pokybuild/yocto-worker/poky-tiny/build/layers/openembedded-core/meta/classes-global/sstate.bbclass&apos;, lineno: 403, function: sstate_installpkgdir
     0399:    for f in (d.getVar(&apos;SSTATEPOSTUNPACKFUNCS&apos;) or &apos;&apos;).split():
     0400:        # All hooks should run in the SSTATE_INSTDIR
     0401:        bb.build.exec_func(f, d, (sstateinst,))
     0402:
 *** 0403:    sstate_install(ss, d)
     0404:
     0405:    return True
     0406:
     0407:python sstate_hardcode_path_unpack () {
File: &apos;/srv/pokybuild/yocto-worker/poky-tiny/build/layers/openembedded-core/meta/classes-global/sstate.bbclass&apos;, lineno: 331, function: sstate_install
     0327:
     0328:    # Run the actual file install
     0329:    for state in ss[&apos;dirs&apos;]:
     0330:        if os.path.exists(state[1]):
 *** 0331:            oe.path.copyhardlinktree(state[1], state[2])
     0332:
     0333:    for plain in ss[&apos;plaindirs&apos;]:
     0334:        workdir = d.getVar(&apos;WORKDIR&apos;)
     0335:        sharedworkdir = os.path.join(d.getVar(&apos;TMPDIR&apos;), &quot;work-shared&quot;)
File: &apos;/srv/pokybuild/yocto-worker/poky-tiny/build/layers/openembedded-core/meta/lib/oe/path.py&apos;, lineno: 138, function: copyhardlinktree
     0134:        else:
     0135:            source = src
     0136:            s_dir = os.getcwd()
     0137:        cmd = [&apos;cp&apos;, &apos;-afl&apos;, &apos;--preserve=xattr&apos;, source, os.path.realpath(dst)]
 *** 0138:        subprocess.check_output(cmd, cwd=s_dir, stderr=subprocess.STDOUT)
     0139:    else:
     0140:        copytree(src, dst)
     0141:
     0142:def copyhardlink(src, dst):
File: &apos;/srv/pokybuild/yocto-worker/poky-tiny/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.13/subprocess.py&apos;, lineno: 472, function: check_output
     0468:        else:
     0469:            empty = b&apos;&apos;
     0470:        kwargs[&apos;input&apos;] = empty
     0471:
 *** 0472:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
     0473:               **kwargs).stdout
     0474:
     0475:
     0476:class CompletedProcess(object):
File: &apos;/srv/pokybuild/yocto-worker/poky-tiny/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.13/subprocess.py&apos;, lineno: 577, function: run
     0573:            # We don&apos;t call process.wait() as .__exit__ does that for us.
     0574:            raise
     0575:        retcode = process.poll()
     0576:        if check and retcode:
 *** 0577:            raise CalledProcessError(retcode, process.args,
     0578:                                     output=stdout, stderr=stderr)
     0579:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0580:
     0581:
Exception: subprocess.CalledProcessError: Command &apos;[&apos;cp&apos;, &apos;-afl&apos;, &apos;--preserve=xattr&apos;, &apos;./*&apos;, &apos;/srv/pokybuild/yocto-worker/poky-tiny/build/build/tmp/deploy/spdx/3.0.1&apos;]&apos; returned non-zero exit status 1.

Subprocess output:
cp: cannot stat &apos;./*&apos;: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105872</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-06-15 09:02:37 +0000</bug_when>
    <thetext>poky-tiny alma9-vk-2 master-next&amp;master completed at 2026-06-11 13:49:14+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/50/builds/3936/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105935</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-06-18 14:36:07 +0000</bug_when>
    <thetext>This was a broken shell=True change and wasn&apos;t merged.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>