<?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>13127</bug_id>
          
          <creation_ts>2019-01-07 17:49:15 +0000</creation_ts>
          <short_desc>changes in bbappend do not trigger a rebuild</short_desc>
          <delta_ts>2019-01-28 10:50:10 +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>BitBake</product>
          <component>bitbake</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>2.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jin">jin</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</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>82702</commentid>
    <comment_count>0</comment_count>
    <who name="Jin">jin</who>
    <bug_when>2019-01-07 17:49:15 +0000</bug_when>
    <thetext>We&apos;re using poky 2.5.1, bitbake version reports:

bitbake --version
BitBake Build Tool Core version 1.38.0

We have a msmtp_%.bbappend where we modify pkg_postinst_ontarget by appending to it:

pkg_postinst_ontarget_${PN}_append() {
    killall -9 inotifyd || true
}

I am observing that changes in pkg_postinst_ontarget_${PN}_append() are not being picked up in incremental builds, i.e. I can change the line in the ontarget append function and the package is not being rebuilt.

If I cleanall the package and build it again, then my changes are there.

We are using prserv in our setup and for instance, changes in do_install_append() cause a rebuild an a prserv initiated pr bump, but changes in pkg_postinst_ontarget_${PN}_append() seem to be ignored. I can easily and consistently reproduce it in my setup.

It&apos;s worth mentioning, that when I run bitbake -e msmtp and look for pkg_postinst_ontarget_msmtp= in the output, then I do see my changes there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82726</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-01-10 15:29:18 +0000</bug_when>
    <thetext>At a guess pkg_postinst_ontarget needs to be listed in PACKAGEVARS in package.bbclass for this to work properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82879</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-01-27 13:14:04 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=55ab45436d2bcaedb0bee6054ce829afab7a9073</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82882</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2019-01-28 10:50:10 +0000</bug_when>
    <thetext>*** Bug 13151 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>