Bug 13738

Summary: devtool modify fails with file:// fetcher
Product: [Build System, Metadata & Runtime] OE-Core Reporter: anon2313
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, tim.orling, tomasz.dziendzielski
Version: 3.1   
Target Milestone: 3.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

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