From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] systemd: Add systemd package to PACKAGE var
Date: Tue, 12 Feb 2013 00:22:17 -0800 [thread overview]
Message-ID: <1360657337-7154-1-git-send-email-raj.khem@gmail.com> (raw)
If someone defines SYSTEMD_PACKAGES to be different
then ${PN} then we need to make sure that they get
added to PACKAGES variable
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/classes/systemd.bbclass | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 32cc5c2..672f304 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -46,6 +46,12 @@ def systemd_populate_packages(d):
val = (d.getVar(var, True) or "").strip()
return val
+ # prepend systemd-packages not already included
+ def systemd_create_package(pkg_systemd):
+ packages = d.getVar('PACKAGES', True)
+ if not pkg_systemd in packages:
+ d.appendVar('PACKAGES', " " + pkg_systemd)
+
# Add a runtime dependency on systemd to pkg
def systemd_add_rdepends(pkg):
@@ -144,6 +150,7 @@ def systemd_populate_packages(d):
# Run all modifications once when creating package
if os.path.exists(d.getVar("D", True)):
for pkg in d.getVar('SYSTEMD_PACKAGES', True).split():
+ systemd_create_package(pkg)
if d.getVar('SYSTEMD_SERVICE_' + pkg, True):
systemd_generate_package_scripts(pkg)
systemd_add_rdepends(pkg)
--
1.7.9.5
next reply other threads:[~2013-02-12 8:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 8:22 Khem Raj [this message]
2013-02-12 9:08 ` [PATCH] systemd: Add systemd package to PACKAGE var Ross Burton
2013-02-12 15:01 ` Anders Darander
2013-02-12 15:06 ` Ross Burton
2013-02-12 16:49 ` Anders Darander
2013-02-12 17:35 ` Khem Raj
2013-02-12 21:06 ` Burton, Ross
2013-02-12 22:42 ` Khem Raj
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=1360657337-7154-1-git-send-email-raj.khem@gmail.com \
--to=raj.khem@gmail.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