diff mbox series

[meta-oe] zram: fix RDEPENDS for systemd service

Message ID 20250425184139.1117690-1-erik@riscstar.com
State New
Headers show
Series [meta-oe] zram: fix RDEPENDS for systemd service | expand

Commit Message

Erik Schilling April 25, 2025, 6:41 p.m. UTC
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 <erik@riscstar.com>
---
 meta-oe/recipes-extended/zram/zram_0.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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
@@ -1,15 +1,15 @@ 
 SUMMARY = "Linux zram compressed in-memory swap"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
 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"
 
 
 SRC_URI = " \
            file://init \
            file://zram-swap-init \
            file://zram-swap-deinit \