Skip to contentSkip to conversation

protobuf: conditionally depend on ${PN}-compiler

PATCH New Christian Eggers 1 participant 1 message Nov 6, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 protobuf: conditionally depend on ${PN}-compiler

If ${PN}-compiler is not build due to PACKAGECONFIG, we shouldn't depend on it. Otherwise installation on -dev package fails during populate_sdk.

---
 meta-oe/recipes-devtools/protobuf/protobuf_4.25.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/protobuf/protobuf_4.25.5.bb +1 -1
index d5fd90137071..89e1071b59dc 100644
@@ -109,7 +109,7 @@ SYSROOT_DIRS += "${bindir}"
 RDEPENDS:${PN} = "abseil-cpp"
 RDEPENDS:${PN}-lite = "abseil-cpp"
 RDEPENDS:${PN}-compiler = "${PN}"
-RDEPENDS:${PN}-dev += "${PN}-compiler"
+RDEPENDS:${PN}-dev += "${@bb.utils.contains('PACKAGECONFIG', 'compiler', '${PN}-compiler', '', d)}"
 RDEPENDS:${PN}-ptest = "bash ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3-protobuf', '', d)}"
 
 MIPS_INSTRUCTION_SET = "mips"
Signature · 1 line
2.43.0