Skip to contentSkip to conversation

paho-mqtt-cpp: Remove the dependency on paho-mqtt-c

PATCH Peter Kjellerstedt 1 participant 1 message Sep 13, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 26 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Peter Kjellerstedt
Sent: den 13 september 2024 02:40
To: [email protected]
Subject: [oe] [meta-oe][PATCH] paho-mqtt-cpp: Remove the dependency on paho-mqtt-c

paho-mqtt-cpp is built with the vendored version of paho-mqtt-c since commit d4f8a3074307982a45eea9551060424835e1cfde.

This avoids the following error when building an application that depends on paho-mqtt-cpp:

ERROR: foobar-1.2.3-r0 do_prepare_recipe_sysroot: The file /usr/lib/libpaho-mqtt3as.so.1.3.13 is installed by both paho-mqtt-cpp and paho-mqtt-c, aborting

---
 .../recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb +0 -0
index d2fbc3a34c..f0ad76762b 100644

meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb SRC_URI = "gitsm://github.com/eclipse/paho.mqtt.cpp;protocol=https;branch=v1.4.x · line 22

Quoted 8 lines
meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb +1 -1
@@ -16,7 +16,7 @@ SRC_URI = "gitsm://github.com/eclipse/paho.mqtt.cpp;protocol=https;branch=v1.4.x
 SRCREV = "ac1b023eab789e829656144f12b248602c40e37b"
 PV .= "+git"
 
-DEPENDS = "openssl paho-mqtt-c"
+DEPENDS = "openssl"
 
 S = "${WORKDIR}/git"
 

Given that the paho-mqtt-cpp and paho-mqtt-c recipes now conflict, you should probably consider removing the paho-mqtt-c recipe and making the paho-mqtt-cpp recipe have a PROVIDES = "paho-mqtt-c". Until then I expect packagegroup-meta-oe to still fail with a similar error as above since it depends on both recipes.

It might also be worth considering the packaging of the installed files since if all you want is paho-mqtt-c, the addition of paho-mqtt-cpp increases the size of the installed files by ~50% (620 kB -> 907 kB).

//Peter