<?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>13748</bug_id>
          
          <creation_ts>2020-01-23 21:21:02 +0000</creation_ts>
          <short_desc>bitbake doesn&apos;t detect changes in code to run do_compile when using devtool modify on recipe with destsuffix</short_desc>
          <delta_ts>2021-02-11 17:12:08 +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>unspecified</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>3.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Branden">scott.branden</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>jon.richardson</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86109</commentid>
    <comment_count>0</comment_count>
      <attachid>4616</attachid>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2020-01-23 21:21:02 +0000</bug_when>
    <thetext>Created attachment 4616
rwmem recipe modified to demonstrate bitbake task do_compile not working

bitbake does not detect changes in code that has been modified if destsuffix is specified in the SRC_URI of the recipe.  I have simplified the rwmem recipe from the meta-openembedded layer to demonstrate.

To reproduce:

devtool modify rwmem
bitbake rwmem
(do_configure, do_compile, do_install as expected)

bitbake rwmem
(nothing changed - expected)

touch workspace/sources/rwmem/ext/inih/test
bitbake rwmem
(BUG - nothing run do_compile and do_install should run)

touch workspace/sources/rwmem/test
bitbake rwmem
(RUNS - because not in the destsuffix part of the recipe)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86110</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2020-01-23 21:21:32 +0000</bug_when>
    <thetext>Recipe placed here so you don&apos;t need to look at the attachment:

SUMMARY = &quot;rwmemTesting&quot;
DESCRIPTION = &quot;rwmemTesting&quot;
LICENSE = &quot;GPLv2+&quot;
LIC_FILES_CHKSUM = &quot;file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263&quot;

PV .= &quot;+git${SRCPV}&quot;

SRCREV_rwmem = &quot;3ec3e421211b58e766651c2e3a3a21acf14a1906&quot;
SRCREV_inih = &quot;4b10c654051a86556dfdb634c891b6c3224c4109&quot;

SRCREV_FORMAT = &quot;rwmem_inih&quot;

SRC_URI = &quot; \
    git://github.com/tomba/rwmem.git;protocol=https;name=rwmem \
    git://github.com/benhoyt/inih.git;protocol=https;name=inih;nobranch=1;destsuffix=git/ext/inih \
&quot;

S = &quot;${WORKDIR}/git&quot;

do_configure() {
  bbwarn &quot;Testing do_configure&quot;
}

do_compile() {
  bbwarn &quot;Testing do_compile&quot;
}

do_install() {
  bbwarn &quot;Testing do_install&quot;
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86581</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2020-02-24 22:13:00 +0000</bug_when>
    <thetext>Hi Robert,
Have you been able to reproduce?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87677</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2020-07-02 15:55:26 +0000</bug_when>
    <thetext>Bug still present in master branch of yocto</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89156</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2021-02-06 05:41:52 +0000</bug_when>
    <thetext>Bug seems to have been fixed by this commit:

externalsrc: Detect code changes in submodules
The srctree_hash was calculated only from main source directory ignoring
changes in submodules.

[YOCTO #13748]

Use submodule--helper to determine all submodules, and calculate hash
from all git tree objects names combined.

(From OE-Core rev: 50ff9afb3990bcf60b4fa1f937506cb84028c32d)

Signed-off-by: Tomasz Dziendzielski &lt;tomasz.dziendzielski@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89157</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2021-02-06 05:42:01 +0000</bug_when>
    <thetext>Bug seems to have been fixed by this commit:

externalsrc: Detect code changes in submodules
The srctree_hash was calculated only from main source directory ignoring
changes in submodules.

[YOCTO #13748]

Use submodule--helper to determine all submodules, and calculate hash
from all git tree objects names combined.

(From OE-Core rev: 50ff9afb3990bcf60b4fa1f937506cb84028c32d)

Signed-off-by: Tomasz Dziendzielski &lt;tomasz.dziendzielski@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89201</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2021-02-10 22:32:21 +0000</bug_when>
    <thetext>Fixed in commit &quot;externalsrc: Detect code changes in submodules&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89233</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-02-11 17:12:08 +0000</bug_when>
    <thetext>Here&apos;s the link to that commit for those interested:
http://cgit.openembedded.org/openembedded-core/commit/?id=50ff9afb3990bcf60b4fa1f937506cb84028c32d</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4616</attachid>
            <date>2020-01-23 21:21:02 +0000</date>
            <delta_ts>2020-01-23 21:21:02 +0000</delta_ts>
            <desc>rwmem recipe modified to demonstrate bitbake task do_compile not working</desc>
            <filename>rwmem_1.2.bb</filename>
            <type>application/octet-stream</type>
            <size>666</size>
            <attacher name="Scott Branden">scott.branden</attacher>
            
              <data encoding="base64">U1VNTUFSWSA9ICJyd21lbVRlc3RpbmciCkRFU0NSSVBUSU9OID0gInJ3bWVtVGVzdGluZyIKTElD
RU5TRSA9ICJHUEx2MisiCkxJQ19GSUxFU19DSEtTVU0gPSAiZmlsZTovL0xJQ0VOU0U7bWQ1PWIy
MzRlZTRkNjlmNWZjZTQ0ODZhODBmZGFmNGE0MjYzIgoKUFYgLj0gIitnaXQke1NSQ1BWfSIKClNS
Q1JFVl9yd21lbSA9ICIzZWMzZTQyMTIxMWI1OGU3NjY2NTFjMmUzYTNhMjFhY2YxNGExOTA2IgpT
UkNSRVZfaW5paCA9ICI0YjEwYzY1NDA1MWE4NjU1NmRmZGI2MzRjODkxYjZjMzIyNGM0MTA5IgoK
U1JDUkVWX0ZPUk1BVCA9ICJyd21lbV9pbmloIgoKU1JDX1VSSSA9ICIgXAogICAgZ2l0Oi8vZ2l0
aHViLmNvbS90b21iYS9yd21lbS5naXQ7cHJvdG9jb2w9aHR0cHM7bmFtZT1yd21lbSBcCiAgICBn
aXQ6Ly9naXRodWIuY29tL2JlbmhveXQvaW5paC5naXQ7cHJvdG9jb2w9aHR0cHM7bmFtZT1pbmlo
O25vYnJhbmNoPTE7ZGVzdHN1ZmZpeD1naXQvZXh0L2luaWggXAoiCgpTID0gIiR7V09SS0RJUn0v
Z2l0IgoKZG9fY29uZmlndXJlKCkgewogIGJid2FybiAiVGVzdGluZyBkb19jb25maWd1cmUiCn0K
CmRvX2NvbXBpbGUoKSB7CiAgYmJ3YXJuICJUZXN0aW5nIGRvX2NvbXBpbGUiCn0KCmRvX2luc3Rh
bGwoKSB7CiAgYmJ3YXJuICJUZXN0aW5nIGRvX2luc3RhbGwiCn0K
</data>

          </attachment>
      

    </bug>

</bugzilla>