Skip to contentSkip to conversation

libsolv: Enable rpm packageconfig by default only if rpm O_P_M is enabled

PATCH New Khem Raj 1 participant 1 message Feb 12, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 libsolv: Enable rpm packageconfig by default only if rpm O_P_M is enabled

opkg also depends on libsolv and can needlessly pull in rpm even if the O_P_M does not desire to use rpm

---
 meta/recipes-extended/libsolv/libsolv_0.7.10.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/libsolv/libsolv_0.7.10.bb +1 -1
index 502f4e0e85..265a27c00d 100644
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git"
 
 inherit cmake
 
-PACKAGECONFIG ??= "rpm"
+PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGE_CLASSES','package_rpm','rpm','',d)}"
 PACKAGECONFIG[rpm] = "-DENABLE_RPMMD=ON -DENABLE_RPMDB=ON,,rpm"
 
 EXTRA_OECMAKE = "-DMULTI_SEMANTICS=ON -DENABLE_COMPLEX_DEPS=ON"
Signature · 1 line
2.25.0