[oe-commits] [openembedded-core] 55/118: oe/lib/package: handle shlibs files disappearing
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 20 09:30:29 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 1e355da3fda742c78d99ddd2ee5caa9df52f92e1
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Wed Jul 13 15:34:53 2016 +0100
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 at intel.com>
---
meta/lib/oe/package.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index faa0ab2..02642f2 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:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list