diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-10-10 13:22:37 +0200 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-10-13 13:22:08 -0700 |
commit | 400eade386986d55e6e751f85bc4faaa4e5cf89e (patch) | |
tree | f05ed40ab2a76bc8a615bad1d0ab28ed22bb1ed7 | |
parent | e2612dd58dd401231d5407449e67a9a3571fffcf (diff) | |
download | meta-security-400eade386986d55e6e751f85bc4faaa4e5cf89e.tar.gz |
apparmor: make bash dependency optional
Bash is only needed by one not particularly important script,
so not requiring bash is a useful option for builds that
cannot have gpl3 components.
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.3.bb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes-mac/AppArmor/apparmor_2.13.3.bb b/recipes-mac/AppArmor/apparmor_2.13.3.bb index 990d870..6183064 100644 --- a/recipes-mac/AppArmor/apparmor_2.13.3.bb +++ b/recipes-mac/AppArmor/apparmor_2.13.3.bb | |||
@@ -32,11 +32,12 @@ PARALLEL_MAKE = "" | |||
32 | 32 | ||
33 | inherit pkgconfig autotools-brokensep update-rc.d python3native perlnative ptest cpan manpages systemd | 33 | inherit pkgconfig autotools-brokensep update-rc.d python3native perlnative ptest cpan manpages systemd |
34 | 34 | ||
35 | PACKAGECONFIG ??= "python perl" | 35 | PACKAGECONFIG ??= "python perl aa-decode" |
36 | PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages" | 36 | PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages" |
37 | PACKAGECONFIG[python] = "--with-python, --without-python, python3 swig-native" | 37 | PACKAGECONFIG[python] = "--with-python, --without-python, python3 swig-native" |
38 | PACKAGECONFIG[perl] = "--with-perl, --without-perl, perl perl-native swig-native" | 38 | PACKAGECONFIG[perl] = "--with-perl, --without-perl, perl perl-native swig-native" |
39 | PACKAGECONFIG[apache2] = ",,apache2," | 39 | PACKAGECONFIG[apache2] = ",,apache2," |
40 | PACKAGECONFIG[aa-decode] = ",,,bash" | ||
40 | 41 | ||
41 | PAMLIB="${@bb.utils.contains('DISTRO_FEATURES', 'pam', '1', '0', d)}" | 42 | PAMLIB="${@bb.utils.contains('DISTRO_FEATURES', 'pam', '1', '0', d)}" |
42 | HTTPD="${@bb.utils.contains('PACKAGECONFIG', 'apache2', '1', '0', d)}" | 43 | HTTPD="${@bb.utils.contains('PACKAGECONFIG', 'apache2', '1', '0', d)}" |
@@ -97,6 +98,10 @@ do_install () { | |||
97 | rm -f ${D}${sbindir}/aa-notify | 98 | rm -f ${D}${sbindir}/aa-notify |
98 | fi | 99 | fi |
99 | 100 | ||
101 | if ! ${@bb.utils.contains('PACKAGECONFIG','aa-decode','true','false', d)}; then | ||
102 | rm -f ${D}${sbindir}/aa-decode | ||
103 | fi | ||
104 | |||
100 | if test -z "${HTTPD}" ; then | 105 | if test -z "${HTTPD}" ; then |
101 | oe_runmake -C ${B}/changehat/mod_apparmor DESTDIR="${D}" install | 106 | oe_runmake -C ${B}/changehat/mod_apparmor DESTDIR="${D}" install |
102 | fi | 107 | fi |
@@ -161,7 +166,6 @@ PACKAGES += "mod-${PN}" | |||
161 | FILES_${PN} += "/lib/apparmor/ ${sysconfdir}/apparmor ${PYTHON_SITEPACKAGES_DIR}" | 166 | FILES_${PN} += "/lib/apparmor/ ${sysconfdir}/apparmor ${PYTHON_SITEPACKAGES_DIR}" |
162 | FILES_mod-${PN} = "${libdir}/apache2/modules/*" | 167 | FILES_mod-${PN} = "${libdir}/apache2/modules/*" |
163 | 168 | ||
164 | RDEPENDS_${PN} += "bash" | ||
165 | RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG','python','python3-core python3-modules','', d)}" | 169 | RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG','python','python3-core python3-modules','', d)}" |
166 | RDEPENDS_${PN}_remove += "${@bb.utils.contains('PACKAGECONFIG','perl','','perl', d)}" | 170 | RDEPENDS_${PN}_remove += "${@bb.utils.contains('PACKAGECONFIG','perl','','perl', d)}" |
167 | RDEPENDS_${PN}-ptest += "perl coreutils dbus-lib bash" | 171 | RDEPENDS_${PN}-ptest += "perl coreutils dbus-lib bash" |