]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
scriptutils: fix fetch_uri() to work with RSS paule/devtool-fetch-fix
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 8 May 2017 04:45:21 +0000 (16:45 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 19 May 2017 04:09:07 +0000 (16:09 +1200)
commit4710aaeee33c358de374139434e23ba2a88d6317
treef838e581002a1f81c0cfa8f926f3fcb44053b694
parentee55b5685aaa4be92d6d51f8641a559d4e34ce64
scriptutils: fix fetch_uri() to work with RSS

Since recipe-specific sysroots were implemented, devtool add and devtool
upgrade operations that fetch from a URL that requires native sysroot
dependencies will fail to work as there is no recipe-specific sysroot
set up for them during fetching. An example was any URL pointing to a
tarball compressed with xz, e.g. devtool upgrade on gnutls.

The most expedient way to fix this is to set up a dummy recipe-specific
sysroot to use for the fetch/unpack operations. We do this in the same
manner as bitbake -b does, so we're just taking all of the sysroot
components available and creating a sysroot from those rather than
ensuring the correct dependencies are there - this means that we're
still going to have problems if e.g. xz-native hasn't been built yet,
but that issue will be trickier to solve and is tracked separately.

Fixes [YOCTO #11474].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/lib/scriptutils.py