Skip to content

Missing S=${WORKDIR} in babeltrace recepi. #1613

@agwegsol

Description

@agwegsol

Describe the bug

I Got this error
WARNING: babeltrace-1.5.11-r0 do_populate_lic: Could not copy license file /home/ag/work/yocto-wegsol/build-wegsol/tmp/work/cortexa76-poky-linux/babeltrace/1.5.11/babeltrace-1.5.11/LICENSE to /home/ag/work/yocto-wegsol/build-wegsol/tmp/work/cortexa76-poky-linux/babeltrace/1.5.11/license-destdir/cortexa76/babeltrace/LICENSE: [Errno 2] No such file or directory: '/home/ag/work/yocto-wegsol/build-wegsol/tmp/work/cortexa76-poky-linux/babeltrace/1.5.11/babeltrace-1.5.11/LICENSE'
ERROR: babeltrace-1.5.11-r0 do_populate_lic: QA Issue: babeltrace: LIC_FILES_CHKSUM points to an invalid file: /home/ag/work/yocto-wegsol/build-wegsol/tmp/work/cortexa76-poky-linux/babeltrace/1.5.11/babeltrace-1.5.11/LICENSE [license-checksum]
ERROR: babeltrace-1.5.11-r0 do_populate_lic: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/ag/work/yocto-wegsol/build-wegsol/tmp/work/cortexa76-poky-linux/babeltrace/1.5.11/temp/log.do_populate_lic.211164
ERROR: Task (/home/ag/work/yocto-wegsol/build-wegsol/../sources/meta-ros/meta-ros2/recipes-kernel/lttng/babeltrace_1.5.11.bb:do_populate_lic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1199 tasks of which 1145 didn't need to be rerun and 1 failed.

To Reproduce
I used the scartgath branch for both poky and ros2
ros2 SHA=76985779bb896e6b993da1a30251d07d07e9f7fe
poky SHA=7e8674996b0164b07e56bc066d0fba790e627061

Expected behavior
It should not emit the lic file error

But I also fixed this issue. I tried to make a PR but failed. This is my patch

commit b92c3e0d7a7920b02eb4248489f136e886c6caf4 (HEAD)
Author: Anders Gnistrup <ag@wegsol.io>
Date:   Sat Nov 22 07:37:22 2025 +0100

    Fix missing S=${WORKDIR} in babeltrace recipe
    
    I got this error:
    babeltrace-1.5.11-r0 do_populate_lic: QA Issue: babeltrace:
    LIC_FILES_CHKSUM points to an invalid file:
    
    I compared the same babeltrace recipe in poky layer and found that a
    S=${WORKDIR} was the only difference between the two.
    I Added the S=${WORKDIR} and error was gone.
    
    BTW: IMO it seems to be a bad idea to overwrite a recepi in poke.
    A better and more safe method is to use a bbappend.

diff --git a/meta-ros2/recipes-kernel/lttng/babeltrace_1.5.11.bb b/meta-ros2/recipes-kernel/lttng/babeltrace_1.5.11.bb
index 5cfd96ca2..2ca0ad365 100644
--- a/meta-ros2/recipes-kernel/lttng/babeltrace_1.5.11.bb
+++ b/meta-ros2/recipes-kernel/lttng/babeltrace_1.5.11.bb
@@ -13,6 +13,8 @@ SRC_URI = "git://git.efficios.com/babeltrace.git;branch=stable-1.5;protocol=http
 SRCREV = "91c00f70884887ff5c4849a8e3d47e311a22ba9d"
 UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>1(\.\d+)+)$"
 
+S = "${WORKDIR}/git"
+
 inherit autotools pkgconfig ptest
 
 PACKAGECONFIG ??= "python3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions