Skip to contentSkip to conversation

systemd: binfmt should be added to SYSTEMD_PACKAGES

PATCH In review Herve Jourdain 2 participants 3 messages Mar 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: binfmt should be added to SYSTEMD_PACKAGES

---
 meta/recipes-core/systemd/systemd_229.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-core/systemd/systemd_229.bb
index 16af0ac..a537dd3 100644

meta/recipes-core/systemd/systemd_229.bb +1 -2
@@ -298,8 +298,8 @@ PACKAGES =+ "\
     ${PN}-extra-utils \
 "
 
-SYSTEMD_PACKAGES = "${PN}-binfmt"
-SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service"
+SYSTEMD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt',

'${PN}-binfmt', '', d)}"
+SYSTEMD_SERVICE_${PN}-binfmt = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', 'systemd-binfmt.service', '', d)}"

USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'microhttpd',
'--system -d / -M --shell /bin/nologin systemd-journal-gateway;', '', d)}"

Signature · 1 line
1.9.1
#1 lore raw

First, the commit message isn't accurate (binfmt was already in SYSTEMD_PACKAGES).

Quoted 7 lines · Herve Jourdain
meta/recipes-core/systemd/systemd_229.bb +1 -2
-SYSTEMD_PACKAGES = "${PN}-binfmt"
-SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service"
+SYSTEMD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt',

'${PN}-binfmt', '', d)}"
+SYSTEMD_SERVICE_${PN}-binfmt = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', 'systemd-binfmt.service', '', d)}"

You don't need to conditionalise SYSTEDM_SERVICE_${PN}-binfmt, just SYSTEMD_PACKAGES.

Ross

#2 lore raw

Hmmm… It seems the subject line was cut… It was supposed to say "system: binfmt should be added to SYSTEMD_PACKAGES only if binfmt is enabled". Yep, the second condition was overkill, I agree.
I'll send a new version of the patch.

Thanks,

Herve

From: Burton, Ross [mailto:[email protected]]
Sent: lundi 7 mars 2016 15:39
To: Herve Jourdain <[email protected]>
Cc: OE-core <[email protected]>
Subject: Re: [OE-core] [meta-oe][PATCH] systemd: binfmt should be added to SYSTEMD_PACKAGES

First, the commit message isn't accurate (binfmt was already in SYSTEMD_PACKAGES).

On 7 March 2016 at 14:17, Herve Jourdain <[email protected]> wrote:
-SYSTEMD_PACKAGES = "${PN}-binfmt" -SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service" +SYSTEMD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', '${PN}-binfmt', '', d)}"
+SYSTEMD_SERVICE_${PN}-binfmt = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', 'systemd-binfmt.service', '', d)}"

You don't need to conditionalise SYSTEDM_SERVICE_${PN}-binfmt, just SYSTEMD_PACKAGES.

Ross