1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

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>
This commit is contained in:
Paul Eggleton
2012-08-15 17:44:33 +01:00
committed by Richard Purdie
parent 0c6ac62a9f
commit 70b874019c
+3 -1
View File
@@ -74,7 +74,9 @@ def process_dir (directory, d):
if len(new_rpaths): if len(new_rpaths):
args = ":".join(new_rpaths) args = ":".join(new_rpaths)
#bb.note("Setting rpath for %s to %s" %(fpath, args)) #bb.note("Setting rpath for %s to %s" %(fpath, args))
sub.call([cmd, '-r', args, fpath]) ret = sub.call([cmd, '-r', args, fpath])
if ret != 0:
bb.error("chrpath command failed with exit code %d" % ret)
if perms: if perms:
os.chmod(fpath, perms) os.chmod(fpath, perms)