Skip to contentSkip to conversation

lmsensors: Fix sensord dependencies

PATCH New Paul Barker 1 participant 1 message Mar 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lmsensors: Fix sensord dependencies

If sensord is removed from PACKAGECONFIG, the recipe should not depend on rrdtool and the lmsensors package should not depend on lmsensors-sensord.

Backport of 5674b0a9e8778f7538419451e629ef0c13711123 from master branch.

---
 meta-oe/recipes-bsp/lm_sensors/lmsensors_3.5.0.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-bsp/lm_sensors/lmsensors_3.5.0.bb +1 -2
index ffafd17f8..316d066d5 100644
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
 DEPENDS = " \
     bison-native \
     flex-native \
-    rrdtool \
     virtual/libiconv \
 "
 
@@ -93,7 +92,7 @@ ALLOW_EMPTY_${PN} = "1"
 RDEPENDS_${PN} += " \
     ${PN}-libsensors \
     ${PN}-sensors \
-    ${PN}-sensord \
+    ${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-sensord', '', d)} \
     ${PN}-fancontrol \
     ${PN}-sensorsdetect \
     ${PN}-sensorsconfconvert \
Signature · 1 line
2.20.1