Bug 6128

Summary: Incorrect wildcard unpack behaviour in fetcher
Product: [Build System, Metadata & Runtime] BitBake Reporter: Paul Eggleton <bluelightning>
Component: bitbakeAssignee: Aníbal Limón <anibal.limon>
Status: RESOLVED OBSOLETE QA Contact:
Severity: normal    
Priority: Medium CC: jacob.kroon, jessica.zhang, kergoth, leonardo.sandoval.gonzalez, poky.bs.watcher, poky.watcher, sgw
Version: 1.6   
Target Milestone: 2.3 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)
Bug Depends on: 6129    
Bug Blocks:    

Description Paul Eggleton 2014-04-08 12:59:20 UTC
Related to bug 6127, if you have the following setup:

test-bug.bb
===========
LICENSE = "CLOSED"

SRC_URI = "\
    file://a \
    file://dir/* \
"
============

The accompaning test-bug/ folder looks like:
test-bug/a
test-bug/b
test-bug/dir
test-bug/dir/c

and you have the following structure:

Instead of unpacking just a and dir/c into the workdir, you get b as well. This is because the localdir reported by the Local fetcher returns the parent path where dir/* matches, so it copies everything under that to the workdir including b.

Fixing this may unfortunately break recipes that are unwittingly relying on the current behaviour.
Comment 1 Aníbal Limón 2017-04-10 21:15:32 UTC
Alexander Shashkevich fixed at,

http://git.openembedded.org/bitbake/commit/?id=e659a3b0c2771679057ee3e13cd42e6c62383ff2