diff options
author | Ross Burton <ross.burton@intel.com> | 2016-07-13 15:34:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-20 10:24:52 +0100 |
commit | 1e355da3fda742c78d99ddd2ee5caa9df52f92e1 (patch) | |
tree | 2608684a791832ee10174698f4b81979c3ecda5a /meta/lib | |
parent | 2676ee77bacde03e75c2ceccfdc4c28a684569e6 (diff) | |
download | openembedded-core-1e355da3fda742c78d99ddd2ee5caa9df52f92e1.tar.gz openembedded-core-1e355da3fda742c78d99ddd2ee5caa9df52f92e1.tar.bz2 openembedded-core-1e355da3fda742c78d99ddd2ee5caa9df52f92e1.zip |
oe/lib/package: handle shlibs files disappearing
During a parallel build it's possible for unrelated shlib files to be removed if
the recipe they came from is about to be rebuilt. They can't be involved in the
dependency chains as otherwise they wouldn't be removed, so just silently handle
files disappearing.
[ YOCTO #8555 ]
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index faa0ab2edb..02642f29f0 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py @@ -114,7 +114,12 @@ def read_shlib_providers(d): m = list_re.match(file) if m: dep_pkg = m.group(1) - fd = open(os.path.join(dir, file)) + try: + fd = open(os.path.join(dir, file)) + except IOError: + # During a build unrelated shlib files may be deleted, so + # handle files disappearing between the listdirs and open. + continue lines = fd.readlines() fd.close() for l in lines: |