Skip to contentSkip to conversation

zram: fix RDEPENDS for systemd service

PATCH New Erik Schilling 1 participant 1 message Apr 25, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
Hopefully this now does not go through twice... I forgot that I was not subscribed to this list yet and on first send it looks like non-subscriber post are not allowed.

 meta-oe/recipes-extended/zram/zram_0.2.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/zram/zram_0.2.bb +2 -2
index 89292118d0..e4522f89a1 100644
@@ -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 \
Signature · 1 line
2.49.0