public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] lttng-tools: not rrecommend on lttng-modules
@ 2026-03-18 10:10 kai.kang
  2026-03-18 10:10 ` [PATCH v2 1/2] " kai.kang
  2026-03-18 10:10 ` [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS kai.kang
  0 siblings, 2 replies; 6+ messages in thread
From: kai.kang @ 2026-03-18 10:10 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

v2:
* udpate packagegroup-core-tools-profile.bb accordingly

Test without DISTRO_FEATURE 'ptest',

$ bitbake -g packagegroup-core-tools-profile

Files pn-buildlist does not change with these 2 patches.


Kai Kang (2):
  lttng-tools: not rrecommend on lttng-modules
  packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS

 .../packagegroups/packagegroup-core-tools-profile.bb            | 2 +-
 meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb                 | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

-- 
2.34.1



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

* [PATCH v2 1/2] lttng-tools: not rrecommend on lttng-modules
  2026-03-18 10:10 [PATCH v2 0/2] lttng-tools: not rrecommend on lttng-modules kai.kang
@ 2026-03-18 10:10 ` kai.kang
  2026-03-18 10:10 ` [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS kai.kang
  1 sibling, 0 replies; 6+ messages in thread
From: kai.kang @ 2026-03-18 10:10 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

As in the lttng manual [1]:

  Most distributions mark the LTTng-modules and LTTng-UST packages as
  optional when installing LTTng-tools (which is always required). In
  the following sections, we always provide the steps to install all
  three, but note that:

  * You only need to install LTTng-modules if you intend to use the
    Linux kernel LTTng tracer.
  * You only need to install LTTng-UST if you intend to use the user
    space LTTng tracer.

there should be no force dependency between lttng-tools and
lttng-modules. When set lttng-modules in RRECOMMENDS, it always forces
to build lttng-modules whether it is required or not.

Compare to rpm spec [2] and debian conf [3], there are no any dependency
between them too.

So remove the RRECOMMENDS setting.

[1]: https://lttng.org/docs/v2.14/#doc-installing-lttng
[2]: https://rpmfind.net/linux/RPM/fedora/updates/testing/43/aarch64/Packages/l/lttng-tools-2.14.0-4.fc43.aarch64.html
[3]: https://packages.debian.org/trixie/lttng-tools

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb b/meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb
index 620ddfb1cf..3a3f2cff2c 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb
@@ -14,7 +14,6 @@ include lttng-platforms.inc
 
 DEPENDS = "liburcu popt libxml2 util-linux bison-native babeltrace2"
 RDEPENDS:${PN} = "libgcc"
-RRECOMMENDS:${PN} += "${LTTNGMODULES}"
 RDEPENDS:${PN}-ptest += "make perl bash gawk procps perl-module-overloading coreutils util-linux kmod ${LTTNGMODULES} sed python3-core grep binutils python3-multiprocessing"
 RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils"
 RDEPENDS:${PN}-ptest:append:libc-musl = " musl-utils"
-- 
2.34.1



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

* [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS
  2026-03-18 10:10 [PATCH v2 0/2] lttng-tools: not rrecommend on lttng-modules kai.kang
  2026-03-18 10:10 ` [PATCH v2 1/2] " kai.kang
@ 2026-03-18 10:10 ` kai.kang
  2026-03-20  7:08   ` [OE-core] " Mathieu Dubois-Briand
  2026-03-20  7:49   ` Richard Purdie
  1 sibling, 2 replies; 6+ messages in thread
From: kai.kang @ 2026-03-18 10:10 UTC (permalink / raw)
  To: richard.purdie; +Cc: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

It has removed lttng-modules from lttng-tools's RRECOMMENDS, so add
lttng-modules to LTTNGTOOLS in packagegroup-core-tools-profile.bb to
make its dependent packages unchanged.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 .../packagegroups/packagegroup-core-tools-profile.bb            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
index 9c09f5ab44..42c15772a0 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
@@ -31,7 +31,7 @@ SYSTEMTAP:libc-musl = ""
 SYSTEMTAP:nios2 = ""
 SYSTEMTAP:riscv32 = ""
 
-LTTNGTOOLS = "lttng-tools"
+LTTNGTOOLS = "lttng-tools lttng-modules"
 LTTNGTOOLS:arc = ""
 LTTNGTOOLS:riscv32 = ""
 
-- 
2.34.1



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

* Re: [OE-core] [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS
  2026-03-18 10:10 ` [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS kai.kang
@ 2026-03-20  7:08   ` Mathieu Dubois-Briand
  2026-03-20  7:49   ` Richard Purdie
  1 sibling, 0 replies; 6+ messages in thread
From: Mathieu Dubois-Briand @ 2026-03-20  7:08 UTC (permalink / raw)
  To: kai.kang, richard.purdie; +Cc: openembedded-core

On Wed Mar 18, 2026 at 11:10 AM CET, Kai Kang via lists.openembedded.org wrote:
> From: Kai Kang <kai.kang@windriver.com>
>
> It has removed lttng-modules from lttng-tools's RRECOMMENDS, so add
> lttng-modules to LTTNGTOOLS in packagegroup-core-tools-profile.bb to
> make its dependent packages unchanged.
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---

Hi,

Thanks for your patch.

>  .../packagegroups/packagegroup-core-tools-profile.bb            | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
> index 9c09f5ab44..42c15772a0 100644
> --- a/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
> +++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb
> @@ -31,7 +31,7 @@ SYSTEMTAP:libc-musl = ""
>  SYSTEMTAP:nios2 = ""
>  SYSTEMTAP:riscv32 = ""
>  
> -LTTNGTOOLS = "lttng-tools"
> +LTTNGTOOLS = "lttng-tools lttng-modules"

This won't work for riscv64, as lttng-modules is marked as not
compatible:

ERROR: Nothing RPROVIDES 'lttng-modules' (but /srv/pokybuild/yocto-worker/qemuriscv64/build/layers/openembedded-core/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb RDEPENDS on or otherwise requires it)
lttng-modules was skipped: incompatible with host riscv64-poky-linux (not in COMPATIBLE_HOST)
lttng-modules was skipped: incompatible with host riscv64-poky-linux (not in COMPATIBLE_HOST)
NOTE: Runtime target 'lttng-modules' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['lttng-modules']

https://autobuilder.yoctoproject.org/valkyrie/#/builders/45/builds/1252

Can you look for a solution working on all platforms?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS
  2026-03-18 10:10 ` [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS kai.kang
  2026-03-20  7:08   ` [OE-core] " Mathieu Dubois-Briand
@ 2026-03-20  7:49   ` Richard Purdie
  2026-03-20 13:51     ` Kai
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2026-03-20  7:49 UTC (permalink / raw)
  To: kai.kang; +Cc: openembedded-core

On Wed, 2026-03-18 at 18:10 +0800, kai.kang@windriver.com wrote:
> From: Kai Kang <kai.kang@windriver.com>
> 
> It has removed lttng-modules from lttng-tools's RRECOMMENDS, so add
> lttng-modules to LTTNGTOOLS in packagegroup-core-tools-profile.bb to
> make its dependent packages unchanged.
> 
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>  .../packagegroups/packagegroup-core-tools-profile.bb            | 2
> +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-
> profile.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-
> profile.bb
> index 9c09f5ab44..42c15772a0 100644
> --- a/meta/recipes-core/packagegroups/packagegroup-core-tools-
> profile.bb
> +++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-
> profile.bb
> @@ -31,7 +31,7 @@ SYSTEMTAP:libc-musl = ""
>  SYSTEMTAP:nios2 = ""
>  SYSTEMTAP:riscv32 = ""
>  
> -LTTNGTOOLS = "lttng-tools"
> +LTTNGTOOLS = "lttng-tools lttng-modules"
>  LTTNGTOOLS:arc = ""
>  LTTNGTOOLS:riscv32 = ""

We probably need a:

LTTNGTOOLS:riscv64 = "lttng-tools"

here since LLTNGMODULES in the other file doesn't support riscv64.

Cheers,

Richard


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

* Re: [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS
  2026-03-20  7:49   ` Richard Purdie
@ 2026-03-20 13:51     ` Kai
  0 siblings, 0 replies; 6+ messages in thread
From: Kai @ 2026-03-20 13:51 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On 3/20/26 15:49, Richard Purdie wrote:
> On Wed, 2026-03-18 at 18:10 +0800, kai.kang@windriver.com wrote:
>> From: Kai Kang <kai.kang@windriver.com>
>>
>> It has removed lttng-modules from lttng-tools's RRECOMMENDS, so add
>> lttng-modules to LTTNGTOOLS in packagegroup-core-tools-profile.bb to
>> make its dependent packages unchanged.
>>
>> Signed-off-by: Kai Kang <kai.kang@windriver.com>
>> ---
>>   .../packagegroups/packagegroup-core-tools-profile.bb            | 2
>> +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-core/packagegroups/packagegroup-core-tools-
>> profile.bb b/meta/recipes-core/packagegroups/packagegroup-core-tools-
>> profile.bb
>> index 9c09f5ab44..42c15772a0 100644
>> --- a/meta/recipes-core/packagegroups/packagegroup-core-tools-
>> profile.bb
>> +++ b/meta/recipes-core/packagegroups/packagegroup-core-tools-
>> profile.bb
>> @@ -31,7 +31,7 @@ SYSTEMTAP:libc-musl = ""
>>   SYSTEMTAP:nios2 = ""
>>   SYSTEMTAP:riscv32 = ""
>>   
>> -LTTNGTOOLS = "lttng-tools"
>> +LTTNGTOOLS = "lttng-tools lttng-modules"
>>   LTTNGTOOLS:arc = ""
>>   LTTNGTOOLS:riscv32 = ""
> We probably need a:
>
> LTTNGTOOLS:riscv64 = "lttng-tools"
>
> here since LLTNGMODULES in the other file doesn't support riscv64.

Hi Richard,

Just see your v2 patch. Thanks a lot.

Kai

>
> Cheers,
>
> Richard


-- 
Kai Kang
Wind River Linux



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

end of thread, other threads:[~2026-03-20 13:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18 10:10 [PATCH v2 0/2] lttng-tools: not rrecommend on lttng-modules kai.kang
2026-03-18 10:10 ` [PATCH v2 1/2] " kai.kang
2026-03-18 10:10 ` [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS kai.kang
2026-03-20  7:08   ` [OE-core] " Mathieu Dubois-Briand
2026-03-20  7:49   ` Richard Purdie
2026-03-20 13:51     ` Kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox