All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS
@ 2024-05-13 20:08 Markus Volk
  2024-05-13 20:08 ` [meta-oe][PATCH 2/2] gnome-control-center: add PACKAGECONFIG for malcontent Markus Volk
  2024-05-13 20:30 ` [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS Martin Jansa
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Volk @ 2024-05-13 20:08 UTC (permalink / raw)
  To: openembedded-devel

This fixes:
ERROR: malcontent-ui-0.12.0-r0 do_package_qa: QA Issue: /usr/lib/libmalcontent-ui-1.so.1
contained in package malcontent-ui requires libmalcontent-0.so.0()(64bit), but no providers
found in RDEPENDS:malcontent-ui? [file-rdeps]

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb b/meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb
index 4ff16a82d..f64f69a78 100644
--- a/meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb
+++ b/meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb
@@ -48,3 +48,5 @@ do_install() {
 
 FILES:${PN} = "${bindir} ${libdir} ${datadir}"
 
+RDEPENDS:${PN} = "malcontent"
+
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-oe][PATCH 2/2] gnome-control-center: add PACKAGECONFIG for malcontent
  2024-05-13 20:08 [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS Markus Volk
@ 2024-05-13 20:08 ` Markus Volk
  2024-05-13 20:30 ` [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS Martin Jansa
  1 sibling, 0 replies; 6+ messages in thread
From: Markus Volk @ 2024-05-13 20:08 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 .../gnome-control-center/gnome-control-center_46.1.bb            | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.1.bb b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.1.bb
index 9b54a00e6..d88c42531 100644
--- a/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.1.bb
+++ b/meta-gnome/recipes-gnome/gnome-control-center/gnome-control-center_46.1.bb
@@ -46,6 +46,7 @@ PACKAGECONFIG[ibus] = "-Dibus=true, -Dibus=false, ibus"
 PACKAGECONFIG[wayland] = "-Dwayland=true, -Dwayland=false, wayland"
 PACKAGECONFIG[file-share] = ",,,gnome-user-share"
 PACKAGECONFIG[media-share] = ",,,rygel-meta tumbler"
+PACKAGECONFIG[malcontent] = "-Dmalcontent=true,-Dmalcontent=false,malcontent,malcontent-ui"
 
 EXTRA_OEMESON += "-Doe_sysroot=${STAGING_DIR_HOST}"
 
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS
  2024-05-13 20:08 [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS Markus Volk
  2024-05-13 20:08 ` [meta-oe][PATCH 2/2] gnome-control-center: add PACKAGECONFIG for malcontent Markus Volk
@ 2024-05-13 20:30 ` Martin Jansa
  2024-05-13 21:03   ` Markus Volk
  1 sibling, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2024-05-13 20:30 UTC (permalink / raw)
  To: f_l_k; +Cc: openembedded-devel

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.

On Mon, May 13, 2024 at 10:07 PM Markus Volk via
lists.openembedded.org <f_l_k=t-online.de@lists.openembedded.org>
wrote:
>
> This fixes:
> ERROR: malcontent-ui-0.12.0-r0 do_package_qa: QA Issue: /usr/lib/libmalcontent-ui-1.so.1
> contained in package malcontent-ui requires libmalcontent-0.so.0()(64bit), but no providers
> found in RDEPENDS:malcontent-ui? [file-rdeps]
>
> Signed-off-by: Markus Volk <f_l_k@t-online.de>
> ---
>  meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb b/meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb
> index 4ff16a82d..f64f69a78 100644
> --- a/meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb
> +++ b/meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb
> @@ -48,3 +48,5 @@ do_install() {
>
>  FILES:${PN} = "${bindir} ${libdir} ${datadir}"
>
> +RDEPENDS:${PN} = "malcontent"
> +
> --
> 2.44.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#110341): https://lists.openembedded.org/g/openembedded-devel/message/110341
> Mute This Topic: https://lists.openembedded.org/mt/106081394/3617156
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS
  2024-05-13 20:30 ` [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS Martin Jansa
@ 2024-05-13 21:03   ` Markus Volk
  2024-05-15 15:44     ` Peter Kjellerstedt
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Volk @ 2024-05-13 21:03 UTC (permalink / raw)
  To: Martin Jansa; +Cc: f_l_k, openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

On Mon, May 13 2024 at 10:30:31 PM +02:00:00, Martin Jansa 
<martin.jansa@gmail.com> 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


[-- Attachment #2: Type: text/html, Size: 837 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS
  2024-05-13 21:03   ` Markus Volk
@ 2024-05-15 15:44     ` Peter Kjellerstedt
  2024-05-16 17:58       ` Markus Volk
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Kjellerstedt @ 2024-05-15 15:44 UTC (permalink / raw)
  To: Markus Volk, Martin Jansa; +Cc: openembedded-devel@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 2123 bytes --]

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: openembedded-devel@lists.openembedded.org <openembedded-devel@lists.openembedded.org> On Behalf Of Markus Volk
Sent: den 13 maj 2024 23:04
To: Martin Jansa <martin.jansa@gmail.com>
Cc: f_l_k@t-online.de; openembedded-devel@lists.openembedded.org
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 <martin.jansa@gmail.com<mailto:martin.jansa@gmail.com>> 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

[-- Attachment #2: Type: text/html, Size: 8863 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS
  2024-05-15 15:44     ` Peter Kjellerstedt
@ 2024-05-16 17:58       ` Markus Volk
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Volk @ 2024-05-16 17:58 UTC (permalink / raw)
  To: Peter Kjellerstedt; +Cc: Markus Volk, Martin Jansa, openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 3603 bytes --]



On Wed, May 15 2024 at 03:44:46 PM +00:00:00, Peter Kjellerstedt 
<peter.kjellerstedt@axis.com> wrote:
> Iflibmalcontent-uilinks withlibmalcontent, then 
> themalcontent-uirecipe should have aDEPENDSonmalcontent, and you 
> should not need to add an explicitRDEPENDS:${PN}for it (just as 
> Martin wrote).
> 
> 
> 
> The reason I guess that you get that error is because I believe 
> themalcontent-uirecipe has actually builtlibmalcontentitself (given 
> that both recipes use the same source code) rather than using the one 
> produced by themalcontentrecipe (whichmalcontent-uidoesn’t depend 
> on…) Would it be an option to just have one recipe that builds both 
> libraries and then packages them in different packages?
> 
> 
> 

I also suspect that this is the reason.

There have been problems with a circular dependency if built with 
-Dui=enabled.
This will therefore probably not work.

There are different approaches in malcontent to work around this 
problem.

You can use system malcontent:
https://gitlab.freedesktop.org/pwithnall/malcontent/-/blob/main/meson_options.txt?ref_type=heads#L18

But this is not suitable, and building malcontent-native does not seem 
to be a good way either, as it has quite heavy dependencies. malcontent 
still offers this way:
https://gitlab.freedesktop.org/pwithnall/malcontent/-/commit/fda2fbd33084a388effc844ab73fd4f2c297efb1

> Also (since I now looked at the recipes), I would strongly recommend 
> not to do:
> 
> 
> 
> FILES:${PN} = "${bindir} ${libdir} ${datadir}"
> 
> 
> 
> as you do in themalcontent-uirecipe, or:
> 
> 
> 
> FILES:${PN} += "${libdir} ${datadir}"
> 
> 
> 
> as you do in themalcontentrecipe. 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.
> 

I agree that in principle you have better control over which files are 
shipped if being more specific in FILES:${PN}. But in this particular 
case, we already explicitly specify each file to be installed in 
do_install to avoid multiple providers. So we already have control over 
what is installed/shipped. Duplicating this to FILES:${PN} would mean 
that we would have to make all changes twice during a recipe update if 
we additionally specified each file in FILES:${PN}?

> 
> 
> //Peter
> 
> 
> 
> *From:*openembedded-devel@lists.openembedded.org 
> <openembedded-devel@lists.openembedded.org> *On Behalf Of*Markus Volk
> *Sent:* den 13 maj 2024 23:04
> *To:* Martin Jansa <martin.jansa@gmail.com>
> *Cc:* f_l_k@t-online.de; openembedded-devel@lists.openembedded.org
> *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 
> <martin.jansa@gmail.com <mailto:martin.jansa@gmail.com>> 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
> 


[-- Attachment #2: Type: text/html, Size: 10840 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-16 17:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 20:08 [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS Markus Volk
2024-05-13 20:08 ` [meta-oe][PATCH 2/2] gnome-control-center: add PACKAGECONFIG for malcontent Markus Volk
2024-05-13 20:30 ` [oe] [meta-oe][PATCH 1/2] malcontent-ui: add malcontent to RDEPENDS Martin Jansa
2024-05-13 21:03   ` Markus Volk
2024-05-15 15:44     ` Peter Kjellerstedt
2024-05-16 17:58       ` Markus Volk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.