<?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>15989</bug_id>
          
          <creation_ts>2025-10-03 19:57:43 +0000</creation_ts>
          <short_desc>Missing argument in patch.py breaks devtool modify for some recipes</short_desc>
          <delta_ts>2026-04-15 20:10:59 +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>5.0.9</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>NIR 10/31</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zach Miller">zmiller</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <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>102881</commentid>
    <comment_count>0</comment_count>
    <who name="Zach Miller">zmiller</who>
    <bug_when>2025-10-03 19:57:43 +0000</bug_when>
    <thetext>When running devtool modify for a recipe that creates changes outside of a patch file, devtool attempts to commit those changes and fails due to an exception in meta/lib/oe/patch.py in the poky repository. The output in this case also isn&apos;t great as it points to log files for tasks which don&apos;t actually indicate any failure.

Example recipe which triggers this bug: https://github.com/qualcomm-linux/meta-qcom-hwe/blob/scarthgap/recipes-kernel/linux/linux-qcom-custom_6.6.bb#L137

The copy_msm() function in that recipe directly modifies the source checkout, which triggers commitIgnored() to be called in meta/lib/oe/patch.py. commitIgnored() then calls GitApplyTree.addNote() with incorrect arguments, which triggers the exception.

I think there just needs to be an explicit None as the fourth argument, before the user name argument. If I add a try/except around the call to GitApplyTree.addNote() and print the exception, it&apos;s clear that the missing fourth argument shifts the email into the user name and leaves the email missing:

ERROR: Command Error: &apos;git -c &apos;user.name=&quot;oe.patch@oe&quot;&apos; notes --ref refs/notes/devtool append -m &apos;ignore: OpenEmbedded&apos; HEAD&apos; exited with 0  Output:
stdout:
stderr: Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email &quot;you@example.com&quot;
  git config --global user.name &quot;Your Name&quot;

to set your account&apos;s default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got &apos;user@769b18e0f79c.(none)&apos;)

I&apos;ve marked this with version 5.0.9 as that&apos;s specifically what I&apos;m using/testing with, but it appears that the same bug is present at the tips of the scarthgap, walnascar, master, and master-next branches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102893</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-10-09 14:34:35 +0000</bug_when>
    <thetext>Hi Zack,
Thanks for the bug report.
Are you able to send a patch to the oe-core list?
Is there a test case that we&apos;re missing as well? 
If so, that should be included in your commit.

FYI:
  https://docs.yoctoproject.org/contributor-guide/index.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102994</commentid>
    <comment_count>2</comment_count>
    <who name="Zach Miller">zmiller</who>
    <bug_when>2025-10-17 17:32:33 +0000</bug_when>
    <thetext>Hi Randy,

Unfortunately I don&apos;t think I or my colleagues have the bandwidth to submit a patch right now.

Regarding test cases, I&apos;m not sure; I&apos;m not familiar with Yocto&apos;s test infrastructure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103179</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-11-03 20:41:55 +0000</bug_when>
    <thetext>Thanks for the follow-up Zach, even if I don&apos;t like the answer! ;-)

Moved to unassigned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105092</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-15 20:10:59 +0000</bug_when>
    <thetext>No one available / interested in working on devtool so move to the holding area
known as 6.99.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>