From 4aa12df389277a583a90c0e26ff41f51060bf327 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Fri, 25 Apr 2025 20:49:37 +0200 Subject: [PATCH] zram: fix RDEPENDS for systemd service This attempted to pull in the entirety of util-linux when systemd is selected. That falls apart when building with `NO_RECOMMENDATIONS = "1"` as util-linux only weakly recommends util-linux-zramctl. Hence, we want to pull that in explicitly. Signed-off-by: Erik Schilling Signed-off-by: Khem Raj --- meta-oe/recipes-extended/zram/zram_0.2.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-extended/zram/zram_0.2.bb b/meta-oe/recipes-extended/zram/zram_0.2.bb index 89292118d0..e4522f89a1 100644 --- a/meta-oe/recipes-extended/zram/zram_0.2.bb +++ b/meta-oe/recipes-extended/zram/zram_0.2.bb @@ -4,8 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda inherit update-rc.d systemd -RDEPENDS:${PN} = "kmod \ - ${@bb.utils.contains('DISTRO_FEATURES','systemd','util-linux','util-linux-swaponoff',d)}" +RDEPENDS:${PN} = "kmod util-linux-swaponoff \ + ${@bb.utils.contains('DISTRO_FEATURES','systemd','util-linux-zramctl','',d)}" RRECOMMENDS:${PN} = "kernel-module-zram"