* [PATCH V3 0/1] gen-lockedsig-cache: catch os.link error
@ 2017-03-19 17:32 brian avery
2017-03-19 17:32 ` [PATCH V3 1/1] " brian avery
0 siblings, 1 reply; 2+ messages in thread
From: brian avery @ 2017-03-19 17:32 UTC (permalink / raw)
To: openembedded-core
We do a hard link to speed up sdk creation but if your sstate-cache is
across a file system boundary, this tries and fails. This patch catches
that error and does a copy instead.
-brian
The following changes since commit 7e0985bab68547f946163828a16beab7542fca2e:
nativesdk-packagegroup-sdk-host.bb: add cmake (2017-03-17 16:53:06 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/gen-sigs-linkfix
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/gen-sigs-linkfix
brian avery (1):
gen-lockedsig-cache: catch os.link error
scripts/gen-lockedsig-cache | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH V3 1/1] gen-lockedsig-cache: catch os.link error
2017-03-19 17:32 [PATCH V3 0/1] gen-lockedsig-cache: catch os.link error brian avery
@ 2017-03-19 17:32 ` brian avery
0 siblings, 0 replies; 2+ messages in thread
From: brian avery @ 2017-03-19 17:32 UTC (permalink / raw)
To: openembedded-core
We do a hard link to speed up sdk creation but if your sstate-cache is
across a file system boundary, this tries and fails. This patch catches
that error and does a copy instead.
Signed-off-by: brian avery <brian.avery@intel.com>
---
scripts/gen-lockedsig-cache | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache
index 49de74ed..6765891 100755
--- a/scripts/gen-lockedsig-cache
+++ b/scripts/gen-lockedsig-cache
@@ -62,7 +62,11 @@ for f in files:
os.remove(dst)
if (os.stat(src).st_dev == os.stat(destdir).st_dev):
print('linking')
- os.link(src, dst)
+ try:
+ os.link(src, dst)
+ except OSError as e:
+ print('hard linking failed, copying')
+ shutil.copyfile(src, dst)
else:
print('copying')
shutil.copyfile(src, dst)
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-19 17:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-19 17:32 [PATCH V3 0/1] gen-lockedsig-cache: catch os.link error brian avery
2017-03-19 17:32 ` [PATCH V3 1/1] " brian avery
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.