Bug 15403 - devtool sync does not work
Summary: devtool sync does not work
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 5.0
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-02-15 23:10 UTC by Peter Kjellerstedt
Modified: 2024-11-28 08:56 UTC (History)
6 users (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 Peter Kjellerstedt 2024-02-15 23:10:30 UTC
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 "/home/pkj/dists/poky-master/scripts/devtool", line 350, in <module>
    ret = main()
  File "/home/pkj/dists/poky-master/scripts/devtool", line 337, in main
    ret = args.func(args, config, basepath, workspace)
  File "/home/pkj/dists/poky-master/poky/scripts/lib/devtool/standard.py", 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 "/home/pkj/dists/poky-master/poky/scripts/lib/devtool/standard.py", line 668, in _extract_source
    bb.process.run('git fetch file://' + srcsubdir + ' ' + devbranch + ':' + devbranch, cwd=srctree)
  File "/home/pkj/dists/poky-master/poky/bitbake/lib/bb/process.py", line 189, in run
    raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
bb.process.ExecutionError: Execution of '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' failed with exit code 128:
fatal: refusing to fetch into branch 'refs/heads/devtool' checked out at '/home/pkj/dists/poky-master/builds/qemux86-64/netbase-src'

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
Comment 1 Vincent Kriek 2024-04-12 19:50:37 UTC
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?
Comment 2 Peter Kjellerstedt 2024-04-13 00:30:02 UTC
devtool is part of OE-Core so patches for it are sent to openembedded-core@lists.openembedded.org
Comment 3 Ryosuke Saito 2024-11-28 06:44:58 UTC
So, can I think this has been fixed by the patch "devtool: sync: Fix Execution error"?
https://lists.openembedded.org/g/openembedded-core/topic/105521540
Comment 4 Ross Burton 2024-11-28 08:56:01 UTC
Looks so, thanks.