If libmalcontent-ui links with libmalcontent, then the malcontent-ui recipe 
should have a DEPENDS on malcontent, and you should not need to add an explicit 
RDEPENDS:${PN} for it (just as Martin wrote).

The reason I guess that you get that error is because I believe the 
malcontent-ui recipe has actually built libmalcontent itself (given that both 
recipes use the same source code) rather than using the one produced by the 
malcontent recipe (which malcontent-ui doesn't depend on...) Would it be an 
option to just have one recipe that builds both libraries and then packages 
them in different packages?

Also (since I now looked at the recipes), I would strongly recommend not to do:

FILES:${PN} = "${bindir} ${libdir} ${datadir}"

as you do in the malcontent-ui recipe, or:

FILES:${PN} += "${libdir} ${datadir}"

as you do in the malcontent recipe. Resetting FILES:${PN} (as in the first 
case) is always a source of problems and can easily lead to incorrect packaging 
of files. And for ${libdir} and ${datadir}, be more specific with what paths 
you are actually adding.

//Peter

From: [email protected] 
<[email protected]> On Behalf Of Markus Volk
Sent: den 13 maj 2024 23:04
To: Martin Jansa <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS

On Mon, May 13 2024 at 10:30:31 PM +02:00:00, Martin Jansa 
<[email protected]<mailto:[email protected]>> wrote:

If libmalcontent-ui-1.so.1 links with libmalcontent-0.so.0 then this should be 
build-time DEPENDS (and then shlibs code in do_package will automatically add 
malcontent to RDEPENDS.

This error is caused by adding malcontent to the DEPENDS field in PACKAGECONFIG 
like I did in gnome-control-center. After enabling this  in my build the error 
occurred.
But in the end this RDPEND is not wrong I guess? I've split the package in two 
and without this RDEPEND it would be possible to install libmalcontent-ui 
without libmalcontent which would then be broken
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110405): 
https://lists.openembedded.org/g/openembedded-devel/message/110405
Mute This Topic: https://lists.openembedded.org/mt/106081394/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to