> -----Original Message----- > From: openembedded-devel@lists.openembedded.org > <openembedded-devel@lists.openembedded.org> On Behalf Of Peter Kjellerstedt > Sent: den 13 september 2024 02:40 > To: openembedded-devel@lists.openembedded.org > 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 > > Signed-off-by: Peter Kjellerstedt <peter.kjellerst...@axis.com> > --- > .../recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git > a/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb > b/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb > index d2fbc3a34c..f0ad76762b 100644 > --- a/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb > +++ b/meta-oe/recipes-connectivity/paho-mqtt-cpp/paho-mqtt-cpp_1.4.1.bb > @@ -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
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#112259): https://lists.openembedded.org/g/openembedded-devel/message/112259 Mute This Topic: https://lists.openembedded.org/mt/108424369/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-