Openembedded Core Discussions
 help / color / mirror / Atom feed
From: <Qi.Chen@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 0/2] Split the functions script into a separate package in initscripts
Date: Wed, 25 Dec 2013 16:36:00 +0800	[thread overview]
Message-ID: <cover.1387959755.git.Qi.Chen@windriver.com> (raw)

From: Chen Qi <Qi.Chen@windriver.com>

This is part of the systemd integration work.

Now we have two init systems in our project -- SysV and systemd.
If we are only using the SysV based systems, everything's happy because the initscripts
package will and should be always installed. As a part of the package, the /etc/init.d/functions
script is always available. And other init scripts which source this script don't have any problem.
Things are different when we are using systemd based systems. Basically the initscripts
package is useless in systemd based images and should not be installed. We can do this
by setting VIRTUAL-RUNTIME_initscripts to "". This leads to the problem that some services
failing to start because of lack of the /etc/init.d/functions script. An example is the distcc.

The above situation leads to a natural solution of splitting the functions script into a
separate package, say, initscripts-functions. As the /etc/init.d/functions script is useful
for both SysV and systemd systems, this patch also adds it to the RDEPENDS of packagegroup-core-boot.

//Chen Qi


The following changes since commit 005af45191ded6185c618c708181b31281e43092:

  bitbake: fetch2: avoid printing "no checksum" error message twice (2013-12-22 14:29:13 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/initscripts-functions
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/initscripts-functions

Chen Qi (2):
  initscripts: split the functions script into a separate package
  packagegroup-core-boot: make initscripts-functions a basic element of
    RDEPENDS

 meta/recipes-core/initscripts/initscripts_1.0.bb   |    8 ++++++--
 .../packagegroups/packagegroup-core-boot.bb        |    1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
1.7.9.5



             reply	other threads:[~2013-12-25  8:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-25  8:36 Qi.Chen [this message]
2013-12-25  8:36 ` [PATCH 1/2] initscripts: split the functions script into a separate package Qi.Chen
2013-12-25  8:36 ` [PATCH 2/2] packagegroup-core-boot: make initscripts-functions a basic element of RDEPENDS Qi.Chen
2013-12-26 17:23   ` Saul Wold

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=cover.1387959755.git.Qi.Chen@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