From 24babf9316da50c8a4d2f328c4336cb8cd6cf667 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 15 Aug 2012 17:44:33 +0100 Subject: classes/chrpath: trigger an error if chrpath fails If chrpath failed here we were just silently ignoring it. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- meta/classes/chrpath.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/classes') 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): if len(new_rpaths): args = ":".join(new_rpaths) #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: os.chmod(fpath, perms) -- cgit 1.2.3-korg