Openembedded Core Discussions
 help / color / mirror / Atom feed
From: ChenQi <Qi.Chen@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 08/10] v86d: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES
Date: Fri, 15 Aug 2014 09:57:31 +0800	[thread overview]
Message-ID: <53ED690B.7020700@windriver.com> (raw)
In-Reply-To: <18e2b9ecac47dcfef1b00a538a61d1f5d4fe51fd.1408005909.git.Qi.Chen@windriver.com>

On 08/14/2014 04:46 PM, Chen Qi wrote:
> Set INHIBIT_UPDATERCD_BBCLASS to "1" if 'sysvinit' is not in DISTRO_FEATURES.
>
> The functionality of the init script 'fbsetup' is implemented internally in
> systemd. So fbsetup is not installed if 'sysvinit' is in DISTRO_FEATURES.
>
> That's why we need to set INHIBIT_UPDATERCD_BBCLASS to "1" to avoid
> generation of update-rc.d related preinst/postinst scripts.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>   meta/recipes-bsp/v86d/v86d_0.1.10.bb |    7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/meta/recipes-bsp/v86d/v86d_0.1.10.bb b/meta/recipes-bsp/v86d/v86d_0.1.10.bb
> index 08438be..7ccb4ee 100644
> --- a/meta/recipes-bsp/v86d/v86d_0.1.10.bb
> +++ b/meta/recipes-bsp/v86d/v86d_0.1.10.bb
> @@ -49,4 +49,11 @@ do_install () {
>           fi
>   }
>   
> +# As the recipe doesn't inherit systemd.bbclass, we need to set this variable
> +# manually to avoid unnecessary postinst/preinst generated.
> +python __anonymous() {
> +    if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
> +        d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
> +}
> +
>   inherit update-rc.d

This recipe doesn't inherit systemd.bbclass, it doesn't have a systemd 
unit file.

There are more related information in the commit message of the 
following patch.
[OE-core] [PATCH 04/10] update-rc.d: fix logic in 
populate_packages_updatercd

Best Regards,
Chen Qi


  parent reply	other threads:[~2014-08-15  1:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-14  8:45 [PATCH 00/10] upgrade systemd to 215 and other misc fixes Chen Qi
2014-08-14  8:46 ` [PATCH 01/10] systemd: upgrade to 215 Chen Qi
2014-08-14  8:46 ` [PATCH 02/10] systemd: add libdw to RDEPENDS Chen Qi
2014-08-14  8:54   ` Martin Jansa
2014-08-14  9:39     ` Richard Purdie
2014-08-14 11:32       ` Martin Jansa
2014-08-15  3:00       ` ChenQi
2014-08-15  9:09         ` Martin Jansa
2014-08-14  8:46 ` [PATCH 03/10] systemd: make runlevel work in non-runlevel targets Chen Qi
2014-08-14  8:46 ` [PATCH 04/10] update-rc.d: fix logic in populate_packages_updatercd Chen Qi
2014-08-14  8:46 ` [PATCH 05/10] alsa-state: fix pkg_postinst and set INHIBIT_UPDATERCD_BBCLASS Chen Qi
2014-08-14  8:46 ` [PATCH 06/10] keymaps: fix for systemd Chen Qi
2014-08-14  8:46 ` [PATCH 07/10] systemd: add kbd-keymaps to RRECOMMENDS of systemd-vconsole-setup Chen Qi
2014-08-14  8:46 ` [PATCH 08/10] v86d: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURES Chen Qi
2014-08-14 13:07   ` Otavio Salvador
2014-08-15  1:57   ` ChenQi [this message]
2014-08-14  8:46 ` [PATCH 09/10] systemd: add support for executing scripts under /etc/rcS.d Chen Qi
2014-08-14  8:46 ` [PATCH 10/10] dhcp: add dhcpd.service Chen Qi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53ED690B.7020700@windriver.com \
    --to=qi.chen@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox