Bug 16315 - AB-INT: do_create_recipe_spdx: cp: cannot stat './*': No such file or directory
Summary: AB-INT: do_create_recipe_spdx: cp: cannot stat './*': No such file or directory
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 0.0.0
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2026-06-15 08:39 UTC by Mathieu Dubois-Briand
Modified: 2026-06-18 14:36 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2026-06-15 08:39:27 UTC
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: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:sstate_task_postfunc(d)
     0003:
File: '/srv/pokybuild/yocto-worker/poky-tiny/build/layers/openembedded-core/meta/classes-global/sstate.bbclass', lineno: 782, function: sstate_task_postfunc
     0778:
     0779:    sstateinst = d.getVar("SSTATE_INSTDIR")
     0780:    d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])
     0781:
 *** 0782:    sstate_installpkgdir(shared_state, d)
     0783:
     0784:    bb.utils.remove(d.getVar("SSTATE_BUILDDIR"), recurse=True)
     0785:}
     0786:sstate_task_postfunc[dirs] = "${WORKDIR}"
File: '/srv/pokybuild/yocto-worker/poky-tiny/build/layers/openembedded-core/meta/classes-global/sstate.bbclass', lineno: 403, function: sstate_installpkgdir
     0399:    for f in (d.getVar('SSTATEPOSTUNPACKFUNCS') or '').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: '/srv/pokybuild/yocto-worker/poky-tiny/build/layers/openembedded-core/meta/classes-global/sstate.bbclass', lineno: 331, function: sstate_install
     0327:
     0328:    # Run the actual file install
     0329:    for state in ss['dirs']:
     0330:        if os.path.exists(state[1]):
 *** 0331:            oe.path.copyhardlinktree(state[1], state[2])
     0332:
     0333:    for plain in ss['plaindirs']:
     0334:        workdir = d.getVar('WORKDIR')
     0335:        sharedworkdir = os.path.join(d.getVar('TMPDIR'), "work-shared")
File: '/srv/pokybuild/yocto-worker/poky-tiny/build/layers/openembedded-core/meta/lib/oe/path.py', lineno: 138, function: copyhardlinktree
     0134:        else:
     0135:            source = src
     0136:            s_dir = os.getcwd()
     0137:        cmd = ['cp', '-afl', '--preserve=xattr', 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: '/srv/pokybuild/yocto-worker/poky-tiny/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.13/subprocess.py', lineno: 472, function: check_output
     0468:        else:
     0469:            empty = b''
     0470:        kwargs['input'] = empty
     0471:
 *** 0472:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
     0473:               **kwargs).stdout
     0474:
     0475:
     0476:class CompletedProcess(object):
File: '/srv/pokybuild/yocto-worker/poky-tiny/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.13/subprocess.py', lineno: 577, function: run
     0573:            # We don'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 '['cp', '-afl', '--preserve=xattr', './*', '/srv/pokybuild/yocto-worker/poky-tiny/build/build/tmp/deploy/spdx/3.0.1']' returned non-zero exit status 1.

Subprocess output:
cp: cannot stat './*': No such file or directory
Comment 1 Mathieu Dubois-Briand 2026-06-15 09:02:37 UTC
poky-tiny alma9-vk-2 master-next&master completed at 2026-06-11 13:49:14+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/50/builds/3936/steps/13/logs/stdio
Comment 2 Richard Purdie 2026-06-18 14:36:07 UTC
This was a broken shell=True change and wasn't merged.