diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-06-08 12:00:46 +0200 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-06-19 16:03:23 -0700 |
commit | 3018714159686e0ab2e4e5e6323a76b92aedc4ca (patch) | |
tree | 7988a12541fd35be2ebbea266b430075fe6fcdab | |
parent | 9d93ad22a0edcaac6f92013ffed3b9789085a1c0 (diff) | |
download | meta-security-3018714159686e0ab2e4e5e6323a76b92aedc4ca.tar.gz |
apparmor: pull in coreutils/findutils only when not using systemd as init manager
The utilities from those packages (xargs, comm) are only used in sysvinit
scripts, and so there is no need to pull them in when systemd is in use.
Both are gpl3 licensed, so this is beneficial for builds where gpl3 is not
allowed.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-mac/AppArmor/apparmor_2.13.4.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-mac/AppArmor/apparmor_2.13.4.bb b/recipes-mac/AppArmor/apparmor_2.13.4.bb index d6f61b3..552cac7 100644 --- a/recipes-mac/AppArmor/apparmor_2.13.4.bb +++ b/recipes-mac/AppArmor/apparmor_2.13.4.bb | |||
@@ -191,7 +191,8 @@ PACKAGES += "mod-${PN}" | |||
191 | FILES_${PN} += "/lib/apparmor/ ${sysconfdir}/apparmor ${PYTHON_SITEPACKAGES_DIR}" | 191 | FILES_${PN} += "/lib/apparmor/ ${sysconfdir}/apparmor ${PYTHON_SITEPACKAGES_DIR}" |
192 | FILES_mod-${PN} = "${libdir}/apache2/modules/*" | 192 | FILES_mod-${PN} = "${libdir}/apache2/modules/*" |
193 | 193 | ||
194 | RDEPENDS_${PN} += "coreutils findutils ${@bb.utils.contains('PACKAGECONFIG','python','python3-core python3-modules','', d)}" | 194 | # Add coreutils and findutils only if sysvinit scripts are in use |
195 | RDEPENDS_${PN} += "${@["coreutils findutils", ""][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'systemd')]} ${@bb.utils.contains('PACKAGECONFIG','python','python3-core python3-modules','', d)}" | ||
195 | RDEPENDS_${PN}_remove += "${@bb.utils.contains('PACKAGECONFIG','perl','','perl', d)}" | 196 | RDEPENDS_${PN}_remove += "${@bb.utils.contains('PACKAGECONFIG','perl','','perl', d)}" |
196 | RDEPENDS_${PN}-ptest += "perl coreutils dbus-lib bash" | 197 | RDEPENDS_${PN}-ptest += "perl coreutils dbus-lib bash" |
197 | 198 | ||