<?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>16539</bug_id>
          
          <creation_ts>2026-11-29 13:08:41 +0000</creation_ts>
          <short_desc>devtool finish -f adds generated files</short_desc>
          <delta_ts>2026-11-29 14:53:13 +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>devtools / tool chain</component>
          <version>6.1</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>ccasciato</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>107695</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2026-11-29 13:08:41 +0000</bug_when>
    <thetext>In the &quot;devtool hands-on lab&quot;, we try to run &quot;devtool finish nano ../layers/meta-foo&quot;:

devtool finish nano ../layers/meta-foo
NOTE: Starting bitbake server...
ERROR: Source tree is not clean:

 M INSTALL
 M Makefile.in
 M aclocal.m4
 M compile
 M config.guess
 M config.h.in
 M config.rpath
 M config.sub
 M configure
 M depcomp
 M doc/Makefile.in
 M doc/texinfo.tex
 M install-sh
 M lib/Makefile.in
 M m4/Makefile.in
 D m4/gettext.m4
 D m4/iconv.m4
 D m4/lib-ld.m4
 D m4/lib-link.m4
 D m4/lib-prefix.m4
 D m4/nls.m4
 D m4/po.m4
 D m4/progtest.m4
 M missing
 M po/Makefile.in.in
 M po/Makevars
 M src/Makefile.in
 M syntax/Makefile.in
?? autom4te.cache/
?? config.h.in~
?? po/remove-potcdate.sed

Ensure you have committed your changes or use -f/--force if you are sure there&apos;s nothing that needs to be committed

Then, if we add &quot;-f&quot; as suggested to &quot;devtool finish&quot;, the command is successful, but ends up with a recipe with the above generated files:

SRC_URI = &quot;https://www.nano-editor.org/dist/v9/nano-${PV}.tar.gz \
           file://INSTALL \
           file://Makefile.in \
           file://aclocal.m4 \
           file://compile \
           file://config.guess \
           file://config.h.in \
           file://config.rpath \
           file://config.sub \
           file://configure \
           file://depcomp \
           file://doc/Makefile.in \
           file://doc/texinfo.tex \
           file://install-sh \
           file://lib/Makefile.in \
           file://m4/Makefile.in \
           file://missing \
           file://po/Makefile.in.in \
           file://po/Makevars \
           file://src/Makefile.in \
           file://syntax/Makefile.in \
           &quot;

That&apos;s definitely wrong!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107696</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2026-11-29 13:09:08 +0000</bug_when>
    <thetext>A workaround to make &quot;devtool finish&quot; work:

pushd workspace/sources/nano/
git restore .
git clean -fdx
popd</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>