Bug 12558

Summary: No debugsrc is collected for static libraries
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ola Nilsson <ola.x.nilsson>
Component: deploymentAssignee: Stephano Cetola <stephano>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: ross.burton, stephano
Version: 2.5   
Target Milestone: 2.5 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
Suggested patch to package.bbclass none

Description Ola Nilsson 2018-02-19 08:33:11 UTC
Created attachment 4215 [details]
Suggested patch to package.bbclass

Recipes producing static libraries will not necessarily include the source code for those libraries in their dbg packages. 

The debugsource must be added from the package providing the static
lib, because any package using that lib does not have access to the
source code.

I'm attaching a patch with a suggested solution.
Comment 1 Ross Burton 2018-02-22 15:57:45 UTC
Can you submit the patch to the oe-core mailing list?
Comment 2 Ola Nilsson 2018-02-23 07:49:51 UTC
(In reply to comment #1)
> Can you submit the patch to the oe-core mailing list?

Done.
Comment 3 Stephano Cetola 2018-02-23 23:17:27 UTC
(In reply to comment #2)
> Done.
Thank you Ola!
Comment 4 Stephano Cetola 2018-04-19 08:51:00 UTC
https://patchwork.openembedded.org/patch/150215/