On 09/19/2014 12:06 PM, Fahad Usman wrote:
We need to set INHIBIT_UPDATERCD_BBCLASS to "1" if 'sysvinit' is not
present in DISTRO_FEATURES so that any un-necessary package dependencies
are not added by update-rc.d.bbclass

Signed-off-by: Fahad Usman <fahad.us...@gmail.com>
---
  meta/recipes-extended/sysklogd/sysklogd.inc |    5 +++++
  1 file changed, 5 insertions(+)

diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc 
b/meta/recipes-extended/sysklogd/sysklogd.inc
index bcf8aa7..3cbbdfd 100644
--- a/meta/recipes-extended/sysklogd/sysklogd.inc
+++ b/meta/recipes-extended/sysklogd/sysklogd.inc
@@ -56,3 +56,8 @@ pkg_prerm_${PN} () {
        fi
        fi
  }
+
+python __anonymous() {
+    if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
+        d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
+}

I'm now adding systemd support for sysklogd.
This recipe will then inherit systemd.bbclass.
And the task of setting INHIBIT_UPDATERCD_BBCLASS is automatically done.

The patches will be sent out in one day or two.

Best Regards,
Chen Qi
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to