]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/chrpath: trigger an error if chrpath fails
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 15 Aug 2012 16:44:33 +0000 (17:44 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2012 16:51:04 +0000 (17:51 +0100)
If chrpath failed here we were just silently ignoring it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/chrpath.bbclass

index 10b5ca0180a7f77e8132c2827442ea89d77b4c5b..ad61fe09eabc1209b6c2b6b46d1194cc0762ee23 100644 (file)
@@ -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)