Patchwork udpated-rc.d: Track postinst/prerm/postrm in task checksum

login
register
mail settings
Submitter Richard Purdie
Date Oct. 4, 2013, 11:29 a.m.
Message ID <1380886148.18603.597.camel@ted>
Download mbox | patch
Permalink /patch/59245/
State Accepted
Commit 4003218f774c38bb5de0d95a43153f8b8d7fc4ce
Headers show

Comments

Richard Purdie - Oct. 4, 2013, 11:29 a.m.
When these functions change, the package should rebuild but currently it
does not. We need to add the dependencies manually as the dependency
code can't track dynamically created variables.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 5588569..f726f2f 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -54,6 +54,8 @@  python __anonymous() {
 
 PACKAGESPLITFUNCS_prepend = "populate_packages_updatercd "
 
+populate_packages_updatercd[vardeps] += "updatercd_prerm updatercd_postrm updatercd_postinst"
+
 python populate_packages_updatercd () {
     def update_rcd_package(pkg):
         bb.debug(1, 'adding update-rc.d calls to postinst/postrm for %s' % pkg)