Bug 6128 - Incorrect wildcard unpack behaviour in fetcher
Summary: Incorrect wildcard unpack behaviour in fetcher
Status: RESOLVED OBSOLETE
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.6
Hardware: All Multiple
: Medium normal
Target Milestone: 2.3 M4
Assignee: Aníbal Limón
QA Contact:
URL:
Whiteboard:
Depends on: 6129
Blocks:
  Show dependency tree
 
Reported: 2014-04-08 12:59 UTC by Paul Eggleton
Modified: 2017-04-10 21:15 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

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