* [PATCH] systemd/update-rc.d: set UPDATERCD to empty if systemd is used
@ 2015-01-26 3:06 rongqing.li
2015-01-26 3:29 ` Rongqing Li
0 siblings, 1 reply; 2+ messages in thread
From: rongqing.li @ 2015-01-26 3:06 UTC (permalink / raw)
To: openembedded-core
From: Roy Li <rongqing.li@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@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 = ""
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] systemd/update-rc.d: set UPDATERCD to empty if systemd is used
2015-01-26 3:06 [PATCH] systemd/update-rc.d: set UPDATERCD to empty if systemd is used rongqing.li
@ 2015-01-26 3:29 ` Rongqing Li
0 siblings, 0 replies; 2+ messages in thread
From: Rongqing Li @ 2015-01-26 3:29 UTC (permalink / raw)
To: openembedded-core
Please ignore it.
Thanks
-Roy
On 2015年01月26日 11:06, rongqing.li@windriver.com wrote:
> From: Roy Li <rongqing.li@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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-26 3:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-26 3:06 [PATCH] systemd/update-rc.d: set UPDATERCD to empty if systemd is used rongqing.li
2015-01-26 3:29 ` Rongqing Li
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.