<?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>15403</bug_id>
          
          <creation_ts>2024-02-15 23:10:30 +0000</creation_ts>
          <short_desc>devtool sync does not work</short_desc>
          <delta_ts>2024-11-28 08:56:01 +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>Scripts and Tools</component>
          <version>5.0</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>normal</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kjellerstedt">peter.kjellerstedt</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>raitosyo</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>vincent</cc>
    
    <cc>yoann.congal</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>98220</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2024-02-15 23:10:30 +0000</bug_when>
    <thetext>Running the following two commands:

devtool extract netbase netbase-src
devtool sync netbase netbase-src

results in the following error:

Traceback (most recent call last):
  File &quot;/home/pkj/dists/poky-master/scripts/devtool&quot;, line 350, in &lt;module&gt;
    ret = main()
  File &quot;/home/pkj/dists/poky-master/scripts/devtool&quot;, line 337, in main
    ret = args.func(args, config, basepath, workspace)
  File &quot;/home/pkj/dists/poky-master/poky/scripts/lib/devtool/standard.py&quot;, line 453, in sync
    initial_rev, _ = _extract_source(srctree, args.keep_temp, args.branch, True, config, basepath, workspace, args.fixed_setup, rd, tinfoil, no_overrides=True)
  File &quot;/home/pkj/dists/poky-master/poky/scripts/lib/devtool/standard.py&quot;, line 668, in _extract_source
    bb.process.run(&apos;git fetch file://&apos; + srcsubdir + &apos; &apos; + devbranch + &apos;:&apos; + devbranch, cwd=srctree)
  File &quot;/home/pkj/dists/poky-master/poky/bitbake/lib/bb/process.py&quot;, line 189, in run
    raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
bb.process.ExecutionError: Execution of &apos;git fetch file:///home/pkj/dists/poky-master/builds/qemux86-64/tmp/work/all-poky-linux/netbase/6.4/devtooltmp-gyqm88u7/workdir/netbase devtool:devtool&apos; failed with exit code 128:
fatal: refusing to fetch into branch &apos;refs/heads/devtool&apos; checked out at &apos;/home/pkj/dists/poky-master/builds/qemux86-64/netbase-src&apos;

The result is the same for a recipe that fetches from Git, e.g.:

devtool extract update-rc.d update-rc.d-src
devtool sync update-rc.d update-rc.d-src</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98747</commentid>
    <comment_count>1</comment_count>
    <who name="Vincent Kriek">vincent</who>
    <bug_when>2024-04-12 19:50:37 +0000</bug_when>
    <thetext>I took a shot to fix this issue. To which mailing list do I sent a patch for review: the bitbake-devel or general yocto mailing list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98748</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2024-04-13 00:30:02 +0000</bug_when>
    <thetext>devtool is part of OE-Core so patches for it are sent to openembedded-core@lists.openembedded.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100294</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Saito">raitosyo</who>
    <bug_when>2024-11-28 06:44:58 +0000</bug_when>
    <thetext>So, can I think this has been fixed by the patch &quot;devtool: sync: Fix Execution error&quot;?
https://lists.openembedded.org/g/openembedded-core/topic/105521540</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100295</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-11-28 08:56:01 +0000</bug_when>
    <thetext>Looks so, thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>