Patchwork multilib: Ensure we map the SYSTEMD_PACKAGES variable

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Dec. 10, 2013, 5:46 a.m.
Message ID <1386654376-13042-1-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/63111/
State Accepted
Commit 209eba7067a93ed7fc87c6810a710c2b1b9a031d
Headers show

Comments

rongqing.li@windriver.com - Dec. 10, 2013, 5:46 a.m.
From: Roy Li <rongqing.li@windriver.com>

If we don't do this, systemd.bbclase will complain to unable to find multilib
packages since PACKAGES is expand with mlprefix, but SYSTEMD_PACKAGES is not,
like in ntp.inc:

    $grep PACKAGES meta-oe/meta-networking/recipes-support/ntp/ntp.inc
    PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
    SYSTEMD_PACKAGES = "${PN} ntpdate sntp"
    $

    $bitbake ntp
    ERROR: ntpdate does not appear in package list, please add it
    ERROR: sntp does not appear in package list, please add it
    $

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 meta/classes/multilib.bbclass |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index 9503096..5eb4a7b 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -105,6 +105,7 @@  python __anonymous () {
     clsextend.map_variable("PACKAGE_INSTALL")
     clsextend.map_variable("INITSCRIPT_PACKAGES")
     clsextend.map_variable("USERADD_PACKAGES")
+    clsextend.map_variable("SYSTEMD_PACKAGES")
 }
 
 PACKAGEFUNCS_append = " do_package_qa_multilib"