summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarta Rybczynska <marta.rybczynska@ygreky.com>2025-07-16 05:48:02 +0200
committerMarta Rybczynska <marta.rybczynska@ygreky.com>2025-07-23 18:45:56 +0200
commitaa7213378affdca6f87212929862af4d05ec789d (patch)
tree96bcefda4753300bd3a2bf6840be429a7a88a7ed
parentb82a93679781300eb4f60700a537036aacdbb28b (diff)
downloadmeta-security-aa7213378affdca6f87212929862af4d05ec789d.tar.gz
packagegroup-core-security: unify conditional adding of packages on RISCV
The package choice was using TUNE_FEATURES that doesn't work anymore with multiple sub-architectures of RISCV. Instead use the overrides and make sure to take into account also qemu versions. Only riscv32/riscv64 does not work, fail on RDEPEND for qemu targets. Signed-off-by: Marta Rybczynska <marta.rybczynska@ygreky.com>
-rw-r--r--recipes-core/packagegroup/packagegroup-core-security.bb14
1 files changed, 12 insertions, 2 deletions
diff --git a/recipes-core/packagegroup/packagegroup-core-security.bb b/recipes-core/packagegroup/packagegroup-core-security.bb
index 764ec02..77782c9 100644
--- a/recipes-core/packagegroup/packagegroup-core-security.bb
+++ b/recipes-core/packagegroup/packagegroup-core-security.bb
@@ -51,13 +51,23 @@ RDEPENDS:packagegroup-security-utils:append:x86-64 = " firejail chipsec ${have_k
51RDEPENDS:packagegroup-security-utils:append:aarch64 = " firejail ${have_krill}" 51RDEPENDS:packagegroup-security-utils:append:aarch64 = " firejail ${have_krill}"
52RDEPENDS:packagegroup-security-utils:remove:libc-musl = "krill firejail" 52RDEPENDS:packagegroup-security-utils:remove:libc-musl = "krill firejail"
53 53
54ARPWATCH = "arpwatch"
55ARPWATCH:riscv32 = ""
56ARPWATCH:riscv64 = ""
57ARPWATCH:qemuriscv64 = ""
58CLAMAV = "clamav clamav-daemon clamav-freshclam"
59CLAMAV:riscv32 = ""
60CLAMAV:riscv64 = ""
61CLAMAV:qemuriscv64 = ""
62
54SUMMARY:packagegroup-security-scanners = "Security scanners" 63SUMMARY:packagegroup-security-scanners = "Security scanners"
55RDEPENDS:packagegroup-security-scanners = "\ 64RDEPENDS:packagegroup-security-scanners = "\
56 ${@bb.utils.contains_any("TUNE_FEATURES", "riscv32 riscv64", "", " arpwatch",d)} \ 65 ${ARPWATCH} \
57 chkrootkit \ 66 chkrootkit \
58 isic \ 67 isic \
59 ${@bb.utils.contains_any("TUNE_FEATURES", "riscv32 riscv64", "", " clamav clamav-daemon clamav-freshclam",d)} \ 68 ${CLAMAV} \
60 " 69 "
70
61RDEPENDS:packagegroup-security-scanners:remove:libc-musl = "clamav clamav-daemon clamav-freshclam" 71RDEPENDS:packagegroup-security-scanners:remove:libc-musl = "clamav clamav-daemon clamav-freshclam"
62RDEPENDS:packagegroup-security-scanners:remove:libc-musl = "arpwatch" 72RDEPENDS:packagegroup-security-scanners:remove:libc-musl = "arpwatch"
63 73