Skip to contentSkip to conversation

lttng-tools: not rrecommend on lttng-modules

PATCH In review [email protected] 3 participants 6 messages Mar 18 – Mar 20

lore
Share & tools
lore
#0 lore raw

v2 cover lttng-tools: not rrecommend on lttng-modules

From: Kai Kang <[email protected]>

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(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/2 lttng-tools: not rrecommend on lttng-modules

From: Kai Kang <[email protected]>

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

---
 meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-kernel/lttng/lttng-tools_2.14.1.bb +0 -1
index 620ddfb1cf..3a3f2cff2c 100644
@@ -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"
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/2 packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS

In reply to [email protected]

From: Kai Kang <[email protected]>

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.

---
 .../packagegroups/packagegroup-core-tools-profile.bb            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +1 -1
index 9c09f5ab44..42c15772a0 100644
@@ -31,7 +31,7 @@ SYSTEMTAP:libc-musl = ""
 SYSTEMTAP:nios2 = ""
 SYSTEMTAP:riscv32 = ""
 
-LTTNGTOOLS = "lttng-tools"
+LTTNGTOOLS = "lttng-tools lttng-modules"
 LTTNGTOOLS:arc = ""
 LTTNGTOOLS:riscv32 = ""
 
Signature · 1 line
2.34.1
#3 lore raw

Re: [OE-core] [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS

Quoted 8 lines · Kai Kang via lists.openembedded.org

From: Kai Kang <[email protected]>

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.

---

Hi,

Thanks for your patch.

meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb SYSTEMTAP:libc-musl = "" · line 34

Quoted 13 lines
 .../packagegroups/packagegroup-core-tools-profile.bb            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +1 -1
index 9c09f5ab44..42c15772a0 100644
@@ -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

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

Re: [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS

In reply to [email protected]
Quoted 26 lines · On Wed, 2026-03-18 at 18:10 +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

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.

---
 .../packagegroups/packagegroup-core-tools-profile.bb            | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

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

(quoted diff) +0 -0
@@ -31,7 +31,7 @@ SYSTEMTAP:libc-musl = ""

 SYSTEMTAP:nios2 = ""
 SYSTEMTAP:riscv32 = ""

meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +1 -1
-LTTNGTOOLS = "lttng-tools"
+LTTNGTOOLS = "lttng-tools lttng-modules"
Quoted 2 lines

 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

author
#5 lore raw

Re: [PATCH v2 2/2] packagegroup-core-tools-profile: add lttng-modules to LTTNGTOOLS

Quoted 31 lines · Richard Purdie
Quoted 21 lines · On Wed, 2026-03-18 at 18:10 +0800, [email protected] wrote:

From: Kai Kang <[email protected]>

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.

---
  .../packagegroups/packagegroup-core-tools-profile.bb            | 2
+-
  1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

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

meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb SYSTEMTAP:libc-musl = "" · line 36

Quoted 7 lines
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +1 -1
@@ -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:

Quoted 3 lines

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

Quoted 4 lines

Cheers,

Richard

Signature · 2 lines
Kai Kang
Wind River Linux