mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
classes: drop redundant classes
There are some redundant classes: enable-selinux.bbclass, with-selinux.bbclass, meson-enable-selinux.bbclass, meson-selinux.bbclass, enable-audit.bbclass, with-audit.bbclass. These classes only add PACKAGEOCNFIG[selinux]/[audit] to recipes. But currently most recipes have added PACKAGECONFIG[selinux]/[audit] in their bb files. We don't need these anymore. Only keep enable-selinux.class and enable-audit.class to append PACKAGECONFIG[selinux]/[audit] for recipes. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
parent
a101ac3dce
commit
31325005e4
|
|
@ -1,4 +1,3 @@
|
|||
inherit selinux
|
||||
|
||||
PACKAGECONFIG:append = " ${@target_selinux(d)}"
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
|
||||
PACKAGECONFIG:append = " ${@target_selinux(d, 'selinux')}"
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
inherit selinux
|
||||
|
||||
PACKAGECONFIG:append = " ${@target_selinux(d)}"
|
||||
PACKAGECONFIG[selinux] = "-Dselinux=enabled,-Dselinux=disabled,libselinux,"
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
inherit selinux
|
||||
|
||||
PACKAGECONFIG:append = " ${@target_selinux(d)}"
|
||||
PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux,"
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
# There is still no audit DISTRO_FEATURE, so enable audit when selinux feature enabled.
|
||||
inherit selinux
|
||||
|
||||
PACKAGECONFIG:append = " ${@target_selinux(d, 'audit')}"
|
||||
PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit,"
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
inherit selinux
|
||||
|
||||
PACKAGECONFIG:append = " ${@target_selinux(d)}"
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux,"
|
||||
|
|
@ -1 +1,2 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
PACKAGECONFIG[selinux] = ",,libselinux"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
inherit with-selinux
|
||||
inherit enable-selinux enable-audit
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
# There is no distro feature just for audit.
|
||||
PACKAGECONFIG:append = " audit"
|
||||
|
||||
PACKAGECONFIG[audit] = "--with-audit=linux,--without-audit,audit,"
|
||||
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
PACKAGECONFIG[audit] = "--with-audit=linux,--without-audit,audit"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-selinux', '', d)}
|
||||
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux enable-audit', '', d)}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
inherit enable-selinux
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'meson-enable-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-audit', '', d)}
|
||||
inherit enable-selinux enable-audit
|
||||
|
||||
do_install:append() {
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'backlight', 'true', 'false', d)}; then
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
inherit with-selinux
|
||||
PACKAGECONFIG[selinux] = "${WITH_SELINUX},${WITHOUT_SELINUX},libsemanage,"
|
||||
inherit enable-selinux
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-audit', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux enable-audit', '', d)}
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
inherit enable-selinux
|
||||
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|
||||
RDEPENDS:${PN}-runtime += "${@target_selinux(d, 'pam-plugin-selinux')}"
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
inherit with-selinux with-audit
|
||||
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux libsemanage,"
|
||||
|
||||
inherit enable-selinux enable-audit
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'with-selinux', '', d)}
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux enable-audit', '', d)}
|
||||
|
||||
PACKAGECONFIG[audit] = "--with-linux-audit,--without-linux-audit,audit"
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
inherit with-selinux
|
||||
inherit enable-selinux
|
||||
|
||||
PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'acl', ' acl', '', d)}"
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'meson-selinux', '', d)}
|
||||
|
||||
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'enable-selinux', '', d)}
|
||||
PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux"
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
inherit enable-selinux
|
||||
# libxcb-xselinux will not build with libselinux, so remove the depend
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,,"
|
||||
|
||||
PACKAGES += "${PN}-xselinux"
|
||||
FILES:${PN}-xselinux += "${libdir}/libxcb-xselinux.so.*"
|
||||
5
recipes-graphics/xorg-lib/libxcb_selinux.inc
Normal file
5
recipes-graphics/xorg-lib/libxcb_selinux.inc
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
inherit enable-selinux
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|
||||
|
||||
PACKAGES += "${PN}-xselinux"
|
||||
FILES:${PN}-xselinux += "${libdir}/libxcb-xselinux.so.*"
|
||||
|
|
@ -1 +1 @@
|
|||
DEPENDS .= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', ' audit', '', d)}"
|
||||
inherit enable-audit
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
inherit selinux
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
|
||||
SRC_URI += "file://fix-ptest-failures-when-selinux-enabled.patch"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
inherit enable-selinux
|
||||
# gnupg will not build with libselinux, so remove the depend
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux-support,--disable-selinux-support,,"
|
||||
PACKAGECONFIG[selinux] = "--enable-selinux-support,--disable-selinux-support,libselinux"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user