Bug 7875 - File not found error seems to be caused by the name of a recipe
Summary: File not found error seems to be caused by the name of a recipe
Status: RESOLVED INVALID
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-06-11 08:37 UTC by Igor Stoppa
Modified: 2015-06-11 09:30 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Stoppa 2015-06-11 08:37:07 UTC
Premise:

* I have created a custom layer
* Inside this layer, I have a recipe named baseos_initrd.bb
* This recipe pulls in another one, located in the same place, through PACKAGE_INSTALL.
* The 2nd recipe contains:
   FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
   SRC_URI = "file://init.sh"
* In the same location where the 2 recipes are, there is also a folder, named after the 2nd recipe (wihtout the .bb), which contains the file init.sh

Expectation:

* this should work regardless of the name of the 2nd recipe


Finding:

* if the name of the 2nd recipe is a subset of the name of the first (I had tried baseos_init.bb), the init.sh file is not found (the directory containing it, was named baseos_init)

* if the 2nd recipe has a totally different name (myinitrd.bb), then the init.sh file is found and used without any problem (in this case the directory containing init.sh was named myinitrd)
Comment 1 Igor Stoppa 2015-06-11 09:30:18 UTC
I think I can describe it better, trashing this and creating a new report.