[OE-core] [PATCH] systemd/update-rc.d: set UPDATERCD to empty if systemd is used

Rongqing Li rongqing.li at windriver.com
Mon Jan 26 03:29:30 UTC 2015


Please ignore it.
Thanks

-Roy

On 2015年01月26日 11:06, rongqing.li at windriver.com wrote:
> From: Roy Li <rongqing.li at windriver.com>
>
> if a package is using systemd to manager its start/stop, it does not need
> UPDATERCD, so not need to add update-rc.d into its RRECOMMENDS
>
> Signed-off-by: Roy Li <rongqing.li at windriver.com>
> ---
>   meta/classes/systemd.bbclass     | 2 ++
>   meta/classes/update-rc.d.bbclass | 2 +-
>   2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
> index 708ba89..58791fa 100644
> --- a/meta/classes/systemd.bbclass
> +++ b/meta/classes/systemd.bbclass
> @@ -8,6 +8,8 @@ SYSTEMD_PACKAGES_class-nativesdk ?= ""
>   # Whether to enable or disable the services on installation.
>   SYSTEMD_AUTO_ENABLE ??= "enable"
>
> +UPDATERCD = ""
> +
>   # This class will be included in any recipe that supports systemd init scripts,
>   # even if systemd is not in DISTRO_FEATURES.  As such don't make any changes
>   # directly but check the DISTRO_FEATURES first.
> diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
> index bc1aa7d..81e96ea 100644
> --- a/meta/classes/update-rc.d.bbclass
> +++ b/meta/classes/update-rc.d.bbclass
> @@ -3,7 +3,7 @@ UPDATERCPN ?= "${PN}"
>   DEPENDS_append = " update-rc.d-native"
>   VIRTUAL-RUNTIME_initscripts ?= "initscripts"
>   DEPENDS_append_class-target = " ${VIRTUAL-RUNTIME_initscripts}"
> -UPDATERCD = "update-rc.d"
> +UPDATERCD ?= "update-rc.d"
>   UPDATERCD_class-cross = ""
>   UPDATERCD_class-native = ""
>   UPDATERCD_class-nativesdk = ""
>

-- 
Best Reagrds,
Roy | RongQing Li



More information about the Openembedded-core mailing list