Bug 14081 - Not possible to get src package in image when using PACKAGE_DEBUG_SPLIT_STYLE='debug-file-directory'
Summary: Not possible to get src package in image when using PACKAGE_DEBUG_SPLIT_STYLE...
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 3.1.4
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 4.0 M2
Assignee: Jonathan Richardson
QA Contact:
URL:
Whiteboard: Backport
Depends on:
Blocks:
 
Reported: 2020-10-08 11:39 UTC by Jonathan Richardson
Modified: 2022-01-20 18:55 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.