]> code.ossystems Code Review - openembedded-core.git/commit
archiver.bbclass: ignore unpack sub-directories in do_ar_original
authorPatrick Ohly <patrick.ohly@intel.com>
Mon, 26 Sep 2016 09:55:15 +0000 (11:55 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Sep 2016 09:15:53 +0000 (10:15 +0100)
commitc27c464e267db3f4b08cbd966412d19b0e756d28
treec0b4dd5705f3974105af6303d3a9a3d50712af6a
parenta0bc732976670810505286ba43feee70e2c812ce
archiver.bbclass: ignore unpack sub-directories in do_ar_original

Support for absolute paths in the "subdir" parameter was recently
added (bitbake rev: c3873346c6fa). The git fetcher has supported
absolute paths in "destsuffix" already before.

When the path is absolute as in destsuffix=${S}/foobar, the tmpdir
used by do_ar_original gets ignored, which breaks:
- source code archiving (tmpdir is empty)
- compilation due to race conditions (for example, ${S} getting
  modified by do_ar_original while do_compile runs)

To solve this, these parameters get removed from URLs before
instantiating the fetcher for them.

This is done unconditionally also for relative paths, because these
paths are not useful when archiving the original source (upstream
source does not have them, they only get used by the recipe during
compilation).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archiver.bbclass