<?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>16367</bug_id>
          
          <creation_ts>2026-07-20 23:39:56 +0000</creation_ts>
          <short_desc>Scarthgap: update_crates fails with non-crates.io dependencies</short_desc>
          <delta_ts>2026-07-23 14:39:47 +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>core</component>
          <version>5.0.22</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>5.0.22</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gyorgy Sarvari">skandigraun</reporter>
          <assigned_to name="Yoann Congal">yoann.congal</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>106228</commentid>
    <comment_count>0</comment_count>
    <who name="Gyorgy Sarvari">skandigraun</who>
    <bug_when>2026-07-20 23:39:56 +0000</bug_when>
    <thetext>In case a Cargo.lock file has packages that are not present in crates.io, the update_crates task fails with Scarthgap. One example crate is cbindgen (after updating to version 0.29.4: https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/cbindgen/cbindgen_0.29.2.bb)

The issue is present in oe-core, and separately also in meta-lts-mixins (scarthgap/rust branch).

The following commit fixes it: https://git.openembedded.org/openembedded-core/commit/meta/classes-recipe/cargo-update-recipe-crates.bbclass?id=1ef39b3fa731fb121d338aea2b1ac004620063e0


Error:

```
ERROR: cbindgen-0.29.4-r0 do_update_crates: ExecutionError(&apos;/yocto/scarthgap/build/tmp/work/cortexa57-poky-linux/cbindgen/0.29.4/temp/run.do_update_crates.3587093&apos;, 1, None, None)
ERROR: Logfile of failure stored in: /yocto/scarthgap/build/tmp/work/cortexa57-poky-linux/cbindgen/0.29.4/temp/log.do_update_crates.3587093
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are [&apos;/yocto/scarthgap/build/../poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot&apos;, &apos;virtual:native:/yocto/scarthgap/build/../poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot&apos;, &apos;virtual:native:/yocto/scarthgap/build/../poky/meta/recipes-devtools/python/python3_3.12.13.bb:do_populate_sysroot&apos;]
| NOTE: Installed into sysroot: [&apos;cmake-native&apos;, &apos;openssl-native&apos;, &apos;expat-native&apos;, &apos;ncurses-native&apos;, &apos;util-linux-libuuid-native&apos;, &apos;zlib-native&apos;, &apos;libedit-native&apos;, &apos;make-native&apos;, &apos;perl-native&apos;, &apos;python3-native&apos;, &apos;bzip2-native&apos;, &apos;libnsl2-native&apos;, &apos;libtirpc-native&apos;, &apos;xz-native&apos;, &apos;zstd-native&apos;, &apos;gdbm-native&apos;, &apos;libffi-native&apos;, &apos;sqlite3-native&apos;]
| NOTE: Skipping as already exists in sysroot: [&apos;gettext-minimal-native&apos;, &apos;libtool-native&apos;, &apos;quilt-native&apos;, &apos;texinfo-dummy-native&apos;, &apos;patch-native&apos;, &apos;attr-native&apos;]
| DEBUG: sed -e &apos;s:^[^/]*/:/yocto/scarthgap/build/tmp/work/cortexa57-poky-linux/cbindgen/0.29.4/recipe-sysroot-native/:g&apos; /yocto/scarthgap/build/tmp/sysroots-components/x86_64/openssl-native/fixmepath /yocto/scarthgap/build/tmp/sysroots-components/x86_64/ncurses-native/fixmepath /yocto/scarthgap/build/tmp/sysroots-components/x86_64/perl-native/fixmepath /yocto/scarthgap/build/tmp/sysroots-components/x86_64/python3-native/fixmepath | xargs sed -i -e &apos;s:FIXMESTAGINGDIRTARGET:/yocto/scarthgap/build/tmp/work/cortexa57-poky-linux/cbindgen/0.29.4/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/yocto/scarthgap/build/tmp/work/cortexa57-poky-linux/cbindgen/0.29.4/recipe-sysroot-native:g&apos; -e &apos;s:FIXME_PSEUDO_SYSROOT:/yocto/scarthgap/build/tmp/sysroots-components/x86_64/pseudo-native:g&apos; -e &apos;s:FIXME_HOSTTOOLS_DIR:/yocto/scarthgap/build/tmp/hosttools:g&apos; -e &apos;s:FIXME_PKGDATA_DIR:/yocto/scarthgap/build/tmp/pkgdata/qemuarm64:g&apos; -e &apos;s:FIXME_PSEUDO_LOCALSTATEDIR:/yocto/scarthgap/build/tmp/work/cortexa57-poky-linux/cbindgen/0.29.4/pseudo/:g&apos; -e &apos;s:FIXME_LOGFIFO:/yocto/scarthgap/build/tmp/work/cortexa57-poky-linux/cbindgen/0.29.4/temp/fifo.3587093:g&apos;
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_update_crates
| Traceback (most recent call last):
|   File &quot;&lt;stdin&gt;&quot;, line 41, in &lt;module&gt;
|   File &quot;&lt;stdin&gt;&quot;, line 12, in get_crates
| ValueError: Unable to find any candidate crates that use crates.io
| 
| The above exception was the direct cause of the following exception:
| 
| Traceback (most recent call last):
|   File &quot;&lt;stdin&gt;&quot;, line 43, in &lt;module&gt;
| ValueError: Cannot parse &apos;/yocto/scarthgap/build/tmp/work/cortexa57-poky-linux/cbindgen/0.29.4/git/tests/rust/workspace/Cargo.lock&apos;
| WARNING: exit code 1 from a shell command.
```</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>