Bug 14081

Summary: Not possible to get src package in image when using PACKAGE_DEBUG_SPLIT_STYLE='debug-file-directory'
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jonathan Richardson <jon.richardson>
Component: coreAssignee: Jonathan Richardson <jon.richardson>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: Medium+ CC: kergoth, meta.mr.watcher, meta.watcher, randy.macleod
Version: 3.1.4   
Target Milestone: 4.0 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: Backport
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Jonathan Richardson 2020-10-08 11:39:37 UTC
Including src-pkgs in EXTRA_IMAGE_FEATURES when PACKAGE_DEBUG_SPLIT_STYLE = 'debug-file-directory' doesn't put the src packages into the image. debug-file-directory is useful when using the kernel perf utility. It is also useful to have source code in the image when using perf. This is documented in the perf section of the manual:

" Additionally, in order to generate the type of debuginfo that perf understands, we also need to set PACKAGE_DEBUG_SPLIT_STYLE in the local.conf file:

     PACKAGE_DEBUG_SPLIT_STYLE = 'debug-file-directory'"

It would be nice if EXTRA_IMAGE_FEATURES always put the src package into the image no matter what the value of PACKAGE_DEBUG_SPLIT_STYLE is. Right now it's impossible to use perf and also get src packages included in the image.
Comment 1 Christopher Larson 2021-03-25 16:41:14 UTC
The -src packages don't include any files when using debug-file-directory, why would they need to be installed? When debug-file-directory is in use, the /usr/src/debug path is in the -dbg package, not the -src package.
Comment 2 Randy MacLeod 2021-12-21 22:21:09 UTC
Jonathan does Chris' explanation make sense and do you agree with it? If so please resolve this defect.
Comment 3 Randy MacLeod 2022-01-20 18:55:36 UTC
Jonathan's email is no longer valid so closing. Re-open if you disagree.