mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-08-25 17:32:06 +00:00
e81e09258389cec07efe73414d29a78e3743ee1d
With the current version, I had the QA issues below: WARNING: bpftrace-0.25.1-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/.debug/bpftrace_test in package bpftrace-dbg contains reference to TMPDIR [buildpaths] WARNING: bpftrace-0.25.1-r0 do_package_qa: QA Issue: File /usr/lib/bpftrace/ptest/tests/bpftrace_test in package bpftrace-ptest contains reference to TMPDIR [buildpaths] A bit of find + grep + strings show that this originally comes from: field_analyser.cpp.o: [my tmpdir...]/bpftrace/0.25.1/build/tests/data field_analyser.cpp.o: [my tmpdir...]/bpftrace/0.25.1/sources/bpftrace-0.25.1/tests/data/data_source.c field_analyser.cpp.o: [my tmpdir...]/bpftrace/0.25.1/sources/bpftrace-0.25.1/tests/data The .rodata section is infected with these, and after some more digging, the paths come from debug symbols (i.e., .debug_line_str) in data_source.o: build/tests/data/data_source.o: /src/update-2026.01/build/tmp/work/riscv64.../bpftrace/0.25.1/build/tests/data build/tests/data/data_source.o: /src/update-2026.01/build/tmp/work/riscv64.../bpftrace/0.25.1/sources/bpftrace-0.25.1/tests/data/data_source.c build/tests/data/data_source.o: /src/update-2026.01/build/tmp/work/riscv64.../bpftrace/0.25.1/build/tests/data build/tests/data/data_source.o: /src/update-2026.01/build/tmp/work/riscv64.../bpftrace/0.25.1/sources/bpftrace-0.25.1/tests/data I'm not familiar with the magic performed by BuildBPF.cmake, but as far as I can tell, gcc is being invoked with "-g" and no prefix mapping, so there is no way of stopping the source path(s) from ending in data_source.o. This patch adds a "bridge" between this .cmake file and bpftrace's recipe, where I export DEBUG_PREFIX_MAP, so gcc is invoked with the -ffile-prefix-map flags from OE Core. The end result is: $ strings ./build/tests/data/data_source.o | grep "debug\/bpftrace" /usr/src/debug/bpftrace/0.25.1/tests/data/data_source.c /usr/src/debug/bpftrace/0.25.1/tests/data /usr/src/debug/bpftrace/0.25.1/tests/data /usr/src/debug/bpftrace/0.25.1/tests/data Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Collection of layers for the OE-core universe
Main layer maintainer: Khem Raj raj.khem@gmail.com
This repository is a collection of layers to supplement OE-Core with additional packages, Each layer have designated maintainer Please see the respective READMEs in the layer subdirectories
Description
Languages
BitBake
86.2%
Shell
5.9%
C
2.8%
Roff
1.9%
NASL
1.7%
Other
1.3%