Bug 860 - SRC_URI should use ${BPN} not ${PN}
Summary: SRC_URI should use ${BPN} not ${PN}
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-13 15:25 UTC by Gary Thomas
Modified: 2011-03-14 15:37 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
Fix SRC_URI for native build (782 bytes, patch)
2011-03-13 15:30 UTC, Gary Thomas
no flags Details | Diff

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