Bug 860

Summary: SRC_URI should use ${BPN} not ${PN}
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Gary Thomas <gary>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Fix SRC_URI for native build none

Description Gary Thomas 2011-03-13 15:25:02 UTC
Use of ${PN} in source file names will lead to failure if the recipe is extended to build for native using BBCLASSEXTEND.  A cursory look of the Poky repository reveals more than 60 recipes using this incorrectly.
Comment 1 Gary Thomas 2011-03-13 15:30:43 UTC
Created attachment 109 [details]
Fix SRC_URI for native build

To be clear, the problem is with the use of ${PN} in SRC_URI lists.  An example is atk which currently fails if you try to build atk-native.  The attached patch shows how to fix this particular recipe.
Comment 2 Richard Purdie 2011-03-14 15:37:16 UTC
Fixed in 257a9edb4b6a12cc1c990f6bb2d8e5a6fb560823 in Poky master.