Skip to contentSkip to conversation

cppzmq: Use ALLOW_EMPTY

PATCH New Khem Raj 1 participant 1 message Mar 17, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 cppzmq: Use ALLOW_EMPTY

while ALLOW_EMPTY is frowned upon, this seems to be fitting to solve the issue at hand here. When adding cppzmq to target SDK

This does not work resulting in

ERROR: Nothing RPROVIDES 'cppzmq' (but calc-server_latest.bb RDEPENDS on or otherwise requires it)

Adding cppzmq-dev dependency works for Target-SDK, but not for Target-Build:

ERROR: calc-server-latest-r0 do_package_qa: QA Issue: calc-server rdepends on cppzmq-dev [dev-deps]

---
 meta-oe/recipes-connectivity/zeromq/cppzmq_4.10.0.bb | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
meta-oe/recipes-connectivity/zeromq/cppzmq_4.10.0.bb +1 -4
index dcea339dfd..135121c5ba 100644
@@ -14,7 +14,4 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DCPPZMQ_BUILD_TESTS=OFF"
 
-PACKAGES = "${PN}-dev"
-
-RDEPENDS:${PN}-dev = "zeromq-dev zeromq-staticdev"
-DEV_PKG_DEPENDENCY = ""
+ALLOW_EMPTY:${PN} = "1"