summaryrefslogtreecommitdiffstats
path: root/meta/classes/chrpath.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-08-15 17:44:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-15 17:51:10 +0100
commit70b874019ca5893f0b42e96edda95f2fcee078f0 (patch)
tree8922791f5e1d145cbe77dbe41010469afcb6fc13 /meta/classes/chrpath.bbclass
parent0c6ac62a9fb81146ace64ae7493dcc56b4bed197 (diff)
downloadpoky-70b874019ca5893f0b42e96edda95f2fcee078f0.tar.gz
classes/chrpath: trigger an error if chrpath fails
If chrpath failed here we were just silently ignoring it. (From OE-Core rev: 24babf9316da50c8a4d2f328c4336cb8cd6cf667) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/chrpath.bbclass')
-rw-r--r--meta/classes/chrpath.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/chrpath.bbclass b/meta/classes/chrpath.bbclass
index 10b5ca0180..ad61fe09ea 100644
--- a/meta/classes/chrpath.bbclass
+++ b/meta/classes/chrpath.bbclass
@@ -74,7 +74,9 @@ def process_dir (directory, d):
74 if len(new_rpaths): 74 if len(new_rpaths):
75 args = ":".join(new_rpaths) 75 args = ":".join(new_rpaths)
76 #bb.note("Setting rpath for %s to %s" %(fpath, args)) 76 #bb.note("Setting rpath for %s to %s" %(fpath, args))
77 sub.call([cmd, '-r', args, fpath]) 77 ret = sub.call([cmd, '-r', args, fpath])
78 if ret != 0:
79 bb.error("chrpath command failed with exit code %d" % ret)
78 80
79 if perms: 81 if perms:
80 os.chmod(fpath, perms) 82 os.chmod(fpath, perms)