Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] sysklogd: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES
@ 2014-09-19  4:06 Fahad Usman
  2014-09-19  4:50 ` ChenQi
  0 siblings, 1 reply; 3+ messages in thread
From: Fahad Usman @ 2014-09-19  4:06 UTC (permalink / raw)
  To: openembedded-core

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.usman@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")
+}
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] sysklogd: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES
  2014-09-19  4:06 [PATCH] sysklogd: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES Fahad Usman
@ 2014-09-19  4:50 ` ChenQi
  2014-09-19  6:25   ` Usman, Fahad
  0 siblings, 1 reply; 3+ messages in thread
From: ChenQi @ 2014-09-19  4:50 UTC (permalink / raw)
  To: openembedded-core

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.usman@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sysklogd: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES
  2014-09-19  4:50 ` ChenQi
@ 2014-09-19  6:25   ` Usman, Fahad
  0 siblings, 0 replies; 3+ messages in thread
From: Usman, Fahad @ 2014-09-19  6:25 UTC (permalink / raw)
  To: ChenQi, openembedded-core

On 09/19/2014 09:50 AM, ChenQi wrote:
> 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 
Okay, thanks Chen Qi

Regards,
Fahad Usman


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-19  6:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-19  4:06 [PATCH] sysklogd: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES Fahad Usman
2014-09-19  4:50 ` ChenQi
2014-09-19  6:25   ` Usman, Fahad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox