Bug 13738 - devtool modify fails with file:// fetcher
Summary: devtool modify fails with file:// fetcher
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 3.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.3 M2
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-01-16 00:51 UTC by anon2313
Modified: 2021-01-24 14:46 UTC (History)
5 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 anon2313 2020-01-16 00:51:29 UTC
I inherited a meta layer that was originally used with Jethro.  One of the recipes in this layer has all of the source code in the files sub-directory and uses file:// to point to the directories containing the source code.  

file://source
file://include

When running "devtool modify example-recipe" the following error occurs:

WARNING: No source unpacked to S - either the example-recipe recipe doesn't use any source or the correct source directory could not be determined

The workspace ends up for example:
   workspace/sources/recipe/include/header.h
   workspace/sources/recipe/oe-local-files/include/header.h
   workspace/sources/recipe/oe-local-files/source/Makefile
   workspace/sources/recipe/oe-local-files/source/source.c
   workspace/sources/recipe/oe-local-files/.gitignore
   workspace/sources/recipe/source/Makefile
   workspace/sources/recipe/source/source.c

And the files are broken symlinks that point to oe-local-files but ignore the directory structure.
workspace/sources/recipe/source/source.c -> oe-local-files/source.c

devtool is extremely useful for a quick change and using devtool deploy-target to copy the application to the target so I was hoping there was some workaround or maybe someone can point where in devtool it unpacks and moves the files to see if I can fix it.
Comment 1 Tomasz Dziendzielski 2021-01-24 14:44:01 UTC
Please check again with this commit: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13738
Comment 2 Tomasz Dziendzielski 2021-01-24 14:46:24 UTC
Sorry, I meant this link: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3a220f1e411767cbf9e7099c18d94a12171c1093